Polarith AI
1.8

◆ Solve()

ReadOnlyCollection<int> Solve ( IProblem< T >  problem)

Solves a defined IProblem<T> and returns a Pareto optimal solution which does not violate the set Epsilons (constraints).

If there are no solutions which satisfy the constraints, the solver still picks the solution which is closest to the constraints.

Parameters
problemThe problem to be solved.
Returns
One found Pareto optimal solution value.
Exceptions
NullReferenceExceptionIf the given problem is null.
IndexOutOfRangeExceptionIf the number of Epsilons is less than the number of objectives in the given problem .

Implements ISolver< T >.

Imprint