Section for working with fuzzy methods of multi-criteria analysis

fuzzyops.fuzzy_msa.msa_fuzzy_hierarchy.fuzzy_hierarchy_solver(criteria_weights: List[List[FuzzyNumber]], alternative_comparisons: List[List[List[FuzzyNumber]]]) List[FuzzyNumber][source]

A fuzzy hierarchy solver that uses a hierarchy analysis method to prioritize alternatives

Parameters:
  • criteria_weights (List[List[FuzzyNumber]]) – A two-dimensional list of fuzzy numbers representing the weights of the criteria

  • alternative_comparisons (List[List[List[FuzzyNumber]]]) – A three-dimensional list of fuzzy numbers representing comparative estimates of alternatives for each criterion

Returns:

A list of fuzzy numbers representing the global priorities of alternatives

Return type:

List[FuzzyNumber]

fuzzyops.fuzzy_msa.msa_fuzzy_pairwise.fuzzy_pairwise_solver(alternatives: List[str], criteria: List[str], pairwise_matrices: List[List[List[FuzzyNumber]]]) List[Tuple[str, FuzzyNumber]][source]

A solver for comparisons of paired fuzzy alternatives that uses an analysis method for evaluation and ranking

Parameters:
  • alternatives (List[str]) – A list of lines representing alternative names

  • criteria (List[str]) – A list of rows representing the names of the criteria

  • pairwise_matrices (List[List[List[FuzzyNumber]]]) – A list of pairwise comparison matrices for each alternative

  • criterion (for each)

  • numbers (containing fuzzy)

Returns:

A list of tuples, each of which contains the name of the alternative and the corresponding final fuzzy score, sorted in descending order

Return type:

List[Tuple[str, FuzzyNumber]]

Raises:

ValueError – If the number of paired comparison matrices does not match the number of criteria

fuzzyops.fuzzy_msa.msa_fuzzy_pareto.fuzzy_pareto_solver(solutions: List[List[FuzzyNumber]]) List[List[FuzzyNumber]][source]

Finds solutions that are not dominated by other solutions in a multi-criteria problem

Parameters:
  • solutions (List[List[FuzzyNumber]]) – A list of solutions, each of which is represented by a list of fuzzy numbers

  • boundary (that are located on the Pareto)

Returns:

A list of solutions that are not dominated by other solutions (there is at least one solution for which other solutions are better by all criteria)

Return type:

List[List[FuzzyNumber]]

fuzzyops.fuzzy_msa.msa_fuzzy_sum.fuzzy_sum_solver(criteria_weights: List[FuzzyNumber], alternatives_scores: List[List[FuzzyNumber]]) List[FuzzyNumber][source]

Calculates a weighted sum of estimates for alternatives based on the given weights of criteria

Parameters:
  • criteria_weights (List[FuzzyNumber]) – A list of fuzzy numbers representing the weights of the criteria

  • alternatives_scores (List[List[FuzzyNumber]]) – A two-dimensional list of fuzzy numbers representing the scores for

  • criterion (each alternative according to each)

Returns:

A list of fuzzy numbers representing the final weighted sums for each alternative

Return type:

List[FuzzyNumber]

Raises:

ValueError – If the number of ratings for one of the alternatives does not match the number of criteria