pyrepo_mcda.sensitivity_analysis_weights_values

Classes

Sensitivity_analysis_weights_values

Module Contents

class pyrepo_mcda.sensitivity_analysis_weights_values.Sensitivity_analysis_weights_values
__call__(matrix, weight_values, types, method, j)

Method for sensitivity analysis. This method determines rankings of alternatives using chosen MCDA method name mcda_name for the value of criterion j weight set as chosen weight_value.

Parameters

matrixndarray

Decision matrix with performance values of alternatives. This matrix includes data on alternatives in rows considering criteria in columns.

weight_valuesndarray

Vector with values to be set as the weight of chosen criterion in the sensitivity analysis procedure in range from 0 to 1.

typesndarray

Vector with criteria types. Types must be equal to 1 for profit criteria and -1 for cost criteria.

methodclass

Initialized object of class of chosen MCDA method

jint

Index of the column in decision matrix matrix that indicates for which criterion the weight is set with chosen value.

Returns

data_sensDataFrame

dataframe with rankings calculated for subsequent changes of criterion j weight. Particular rankings for different weight values of criterion j are included in subsequent columns of the dataframe.

Examples

>>> sensitivity_analysis = Sensitivity_analysis_weights_values()
>>> df_sens = sensitivity_analysis(matrix, weight_values, types, method, j)
_change_weights(matrix, weight_value, j)

Method for criteria weights changing in sensitivity analysis procedure.

Parameters

matrixndarray

Decision matrix with performance values of alternatives. This matrix includes data on alternatives in rows considering criteria in columns

weight_valuefloat

Value in range from 0 to 1 to be set as the weight of chosen criterion with index j.

jint

Index of the column in decision matrix matrix indicating for which criterion the weight value is changed.

Returns

new_weightsndarray

Vector with criteria weights after changing their values for sensitivity analysis

static _sensitivity_analysis_weights_values(self, matrix, weight_values, types, method, list_alt_names, j)