evo_spotis.mcda_methods.spotis

Module Contents

Classes

SPOTIS

class evo_spotis.mcda_methods.spotis.SPOTIS[source]

Bases: evo_spotis.mcda_methods.mcda_method.MCDA_method

__call__(matrix, weights, types, bounds)[source]

Score alternatives provided in decision matrix matrix using criteria weights and criteria types.

Parameters
  • matrix (ndarray) – Decision matrix with m alternatives in rows and n criteria in columns.

  • weights (ndarray) – Criteria weights. Sum of weights must be equal to 1.

  • types (ndarray) – Criteria types. Profit criteria are represented by 1 and cost by -1.

  • bounds (ndarray) – Bounds contain minimum and maximum values of each criterion. Minimum and maximum cannot be the same.

Returns

Preference values of each alternative. The best alternative has the lowest preference value.

Return type

ndrarray

Examples

>>> bounds_min = np.amin(matrix, axis = 0)
>>> bounds_max = np.amax(matrix, axis = 0)
>>> bounds = np.vstack((bounds_min, bounds_max))
>>> spotis = SPOTIS()
>>> pref = spotis(matrix, weights, types, bounds)
>>> rank = rank_preferences(pref, reverse = False)
static _spotis(matrix, weights, types, bounds)[source]