Fuzzy CoCoSo

Method object

class pyfdm.methods.f_cocoso.fCOCOSO(normalization=<function cocoso_normalization>, defuzzify=<function mean_defuzzification>)[source]

Bases: object

__call__(matrix, weights, types, d=0.5, *args, **kwargs)[source]

Calculates the alternatives preferences

Parameters:
  • matrix (ndarray) – Decision matrix / alternatives data. Alternatives are in rows and Criteria are in columns.

  • weights (ndarray) – Vector of criteria weights in a crisp form

  • types (ndarray) – Types of criteria, 1 profit, -1 cost

  • d (float, default=0.5) – Parameter included in the assessment score, determined by decision-maker

Returns:

Preference calculated for alternatives. Greater values are placed higher in ranking

Return type:

ndarray

rank()[source]

Calculates the alternatives ranking based on the obtained preferences

Returns:

Ranking of alternatives

Return type:

ndarray

Fuzzy calculations

pyfdm.methods.cocoso.fuzzy.fuzzy(matrix, weights, types, normalization, defuzzify, d=0.5)[source]

Calculates the alternatives preferences based on Triangular Fuzzy Number extension

Parameters:
  • matrix (ndarray) – Decision matrix / alternatives data. Alternatives are in rows and Criteria are in columns.

  • weights (ndarray) – Vector of criteria weights in a crisp form

  • types (ndarray) – Types of criteria, 1 profit, -1 cost

  • normalization (callable) – Function used to normalize the decision matrix

  • defuzzify (callable) – Function used to defuzzify the TFN into crisp value

  • d (float, default=0.5) – Parameter included in the assessment score, determined by decision-maker

Returns:

Crisp preferences of alternatives

Return type:

ndarray