Collection of Generalized p-Mean Models (GPMM) with classic, fuzzy and un-weighted approach. This set of outranking methods are based on the concept of weighted generalized p-mean of a sequence
In this project, we have included four different approaches:
-
Classic (WMM): The
$\mathcal{M}$ score is computed per each alternative to generate a cardinal ranking. -
Fuzzy (FWMM): The decision matrix is trapezoidal fuzzy shaped as
$(x_L, x_1, x_2, x_R)$ with LR-representation. Then, it is satisfied that$x_L \le x_1 \le x_2 \le x_R$ per each component of the matrix. The output is a fuzzy score vector$\tilde{\mathcal{M}}$ . -
Unweighted (UWMM): The weighting scheme is variable and it has attached a lower and upper bound per each component. As a result, it returns an interval
$[\mathcal{M}_L, \mathcal{M}_U]$ . -
Fuzzy Un-Weighted (FUWMM): It combines both approaches in the decision matrix and the weighting scheme, thus giving an output of
$[\tilde{\mathcal{M}}_L, \tilde{\mathcal{M}}_U]$ .
The mathematical fuzzy LR-representation of a trapezoid
You can install the GPMM library from GitHub:
git clone https://github.com/Aaron-AALG/GPMM.git
python3 -m pip install -e GPMM
You can also install it directly from PyPI:
pip install GPMM
GPMM is implemented in order to manage NumPy arrays. Here is an example in which we only use three alternatives and four criteria.
import pandas as pd
import numpy as np
from GPMM.UWMM import UWMM
data = pd.DataFrame({"c1":[173, 176, 142],
"c2":[10, 11, 5],
"c3":[11.4, 12.3, 8.2],
"c4":[10.01, 10.48, 7.3]})
directions = ["max", "max", "min", "min"]
L = np.repeat(0.1, data.shape[1])
U = np.repeat(0.4, data.shape[1])
p = 2
x = UWMM(data, directions, L, U, p=p)
This library uses the minimize function of the scipy.optimize module to carry out the optimization problems. In particular,