applyObjectiveWeightsToMatrix method

List<WeightedDecisionMatrix> applyObjectiveWeightsToMatrix({
  1. required List<WeightedDecisionMatrix> matrix,
  2. 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);
}