pyrepo_mcda.sensitivity_analysis_weights_values =============================================== .. py:module:: pyrepo_mcda.sensitivity_analysis_weights_values Classes ------- .. autoapisummary:: pyrepo_mcda.sensitivity_analysis_weights_values.Sensitivity_analysis_weights_values Module Contents --------------- .. py:class:: Sensitivity_analysis_weights_values .. py:method:: __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 ----------- matrix : ndarray Decision matrix with performance values of alternatives. This matrix includes data on alternatives in rows considering criteria in columns. weight_values : ndarray Vector with values to be set as the weight of chosen criterion in the sensitivity analysis procedure in range from 0 to 1. types : ndarray Vector with criteria types. Types must be equal to 1 for profit criteria and -1 for cost criteria. method : class Initialized object of class of chosen MCDA method j : int Index of the column in decision matrix `matrix` that indicates for which criterion the weight is set with chosen value. Returns -------- data_sens : DataFrame 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) .. py:method:: _change_weights(matrix, weight_value, j) Method for criteria weights changing in sensitivity analysis procedure. Parameters ----------- matrix : ndarray Decision matrix with performance values of alternatives. This matrix includes data on alternatives in rows considering criteria in columns weight_value : float Value in range from 0 to 1 to be set as the weight of chosen criterion with index `j`. j : int Index of the column in decision matrix `matrix` indicating for which criterion the weight value is changed. Returns -------- new_weights : ndarray Vector with criteria weights after changing their values for sensitivity analysis .. py:method:: _sensitivity_analysis_weights_values(self, matrix, weight_values, types, method, list_alt_names, j) :staticmethod: