calculateResultWithExistingMatrix abstract method

Future<List<WeightedDecisionResult>> calculateResultWithExistingMatrix({
  1. required TopsisRawMatrix rawMatrix,
  2. bool useIsolate = false,
})

Calculates results using an existing matrix with validation and fixing.

This method is useful when working with pre-existing matrices that may need validation, weight normalization, or ID assignment before calculation.

Parameters:

  • rawMatrix: The existing decision matrix to calculate from
  • useIsolate: Whether to run Euclidean normalization in an isolate worker (defaults to false)

Returns: A ranked list of WeightedDecisionResult objects

Throws:

  • Exception if matrix is empty or contains invalid data
  • Exception if rating values exceed criteria max values

Implementation

Future<List<WeightedDecisionResult>> calculateResultWithExistingMatrix({
  required TopsisRawMatrix rawMatrix,
  bool useIsolate = false,
});