utilities.distance_to_reference_point
Module Contents
Functions
|
Computes the closest solution to a reference point using achievement scalarizing function. |
- utilities.distance_to_reference_point.distance_to_reference_point(obj: numpy.ndarray, reference_point: numpy.ndarray) Tuple [source]
Computes the closest solution to a reference point using achievement scalarizing function.
- Parameters:
obj (np.ndarray) – Array of the solutions. Should be 2d-array.
reference_point (np.ndarray) – The reference point array. Should be one dimensional array.
- Returns:
Returns a tuple containing the closest solution to a reference point and the index of it in obj.
- Return type:
Tuple