pyrepo_mcda.mcda_methods.marcos =============================== .. py:module:: pyrepo_mcda.mcda_methods.marcos Classes ------- .. autoapisummary:: pyrepo_mcda.mcda_methods.marcos.MARCOS Module Contents --------------- .. py:class:: MARCOS Bases: :py:obj:`pyrepo_mcda.mcda_methods.mcda_method.MCDA_method` Measurement Alternatives and Ranking according to Compromise Solution (MARCOS) method for ranking alternatives based on their utility degrees relative to ideal and anti-ideal solutions. .. py:method:: __call__(matrix, weights, types) 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. Returns -------- ndrarray Preference values of each alternative. The best alternative has the highest preference value. Examples ---------- >>> marcos = MARCOS() >>> pref = marcos(matrix, weights, types) >>> rank = rank_preferences(pref, reverse = True) .. py:method:: _marcos(matrix, weights, types) :staticmethod: