utilities.preference_converters
Provides implementations that convert one type of preference information to another.
Module Contents
Functions
Convert classification type of preference (e.g. NIMBUS) to reference point |
- utilities.preference_converters.classification_to_reference_point(classification_preference: dict, ideal: numpy.ndarray, nadir: numpy.ndarray) dict [source]
Convert classification type of preference (e.g. NIMBUS) to reference point preference.
- Parameters:
classification_preference (dict) – A dict containing keys ‘current solution’, ‘levels’, and ‘classifications’. Read the NIMBUS paper for more details.
ideal (np.ndarray) – The ideal point of the problem.
nadir (np.ndarray) – The nadir point of the problem.
- Returns:
- The preference in the form of a reference point. Contains one key:
”reference point”, which maps to the preference in a numpy array structure.
- Return type:
dict