applyObjectiveWeightsToMatrix method
List<WeightedDecisionMatrix>
applyObjectiveWeightsToMatrix({
- required List<
WeightedDecisionMatrix> matrix, - required Map<
String, double> weights,
APPLY OBJECTIVE WEIGHTS TO SAW MATRIX
Sets weightPercent = w_j * 100 on all criteria inside matrix so it can
be passed directly to getResultWithExistingMatrix or getSawDetailedResult.
Implementation
List<WeightedDecisionMatrix> applyObjectiveWeightsToMatrix({
required List<WeightedDecisionMatrix> matrix,
required Map<String, double> weights,
}) {
return ObjectiveWeightCalculator.applyWeightsToMatrix(matrix, weights);
}