DiscreteMinimizer

class desdeo_tools.solver.DiscreteMinimizer(discrete_scalarizer, constraint_evaluator=None)[source]

Bases: object

Implements a class for finding the minimum value of a discrete of scalarized vectors.

Methods Summary

minimize(vectors)

Find the index of the element in vectors which minimizes the scalar value returned by the scalarizer.

Methods Documentation

minimize(vectors)[source]

Find the index of the element in vectors which minimizes the scalar value returned by the scalarizer. If multiple minimum values are found, returns the index of the first occurrence.

Parameters
  • vectors (np.ndarray) – The vectors for which the minimum scalar

  • should be computed for. (value) –

Raises
Returns

The index of the vector in vectors which minimizes the value computed with the given scalarizer.

Return type

int