Intuitionistic Fuzzy OCRA

Method object

class pyifdm.methods.if_ocra.ifOCRA(score=<function chen_score_1>)[source]

Bases: object

__call__(matrix, weights, types)[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 or Intuitionistic Fuzzy form

  • types (ndarray) – Types of criteria, 1 profit, -1 cost. Criteria types cannot be all profit or all cost.

Returns:

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

Return type:

ndarray

__init__(score=<function chen_score_1>)[source]

Create Intuitionistic Fuzzy OCRA method object with normalization and score functions

Parameters:

score (callable, default=chen_score_1) – Function used to calculate crisp score of IFS

rank()[source]

Calculates the alternatives ranking based on the obtained preferences

Returns:

Ranking of alternatives

Return type:

ndarray

Intuitionistic Fuzzy calculations

pyifdm.methods.ocra.ifs.ifs(matrix, weights, types, score)[source]

Calculates the alternatives preferences based on Intuitionistic Fuzzy Sets

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 or Intuitionistic Fuzzy form

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

  • score (callable) – Function used to calculate crisp score of IFS

Returns:

Crisp preferences of alternatives

Return type:

ndarray