NimbusClassificationRequest¶
-
class
desdeo_mcdm.interactive.
NimbusClassificationRequest
(method, ref)[source]¶ Bases:
desdeo_tools.interaction.request.BaseRequest
A request to handle the classification of objectives in the synchronous NIMBUS method.
- Parameters
method (NIMBUS) – The instance of the NIMBUS method the request should be initialized for.
ref (np.ndarray) – Objective values used as a reference the decision maker is classifying the objectives.
-
self.
_valid_classifications
¶ The valid classifications. Defaults is [‘<’, ‘<=’, ‘=’, ‘>=’, ‘0’]
- Type
List[str]
Attributes Summary
Methods Summary
validator
(response)Validates a dictionary containing the response of a decision maker.
Attributes Documentation
-
response
¶
Methods Documentation
-
validator
(response)[source]¶ Validates a dictionary containing the response of a decision maker. Should contain the keys ‘classifications’, ‘levels’, and ‘number_of_solutions’.
‘classifications’ should be a list of strings, where the number of elements is equal to the number of objectives being classified, and the elements are found in _valid_classifications. ‘levels’ should have either aspiration levels or bounds for each objective depending on that objective’s classification. ‘number_of_solutions’ should be an integer between 1 and 4 indicating the number of intermediate solutions to be computed.
- Parameters
response (Dict) – See the documentation for validator.
- Raises
NimbusException – Some discrepancy is encountered in the parsing of the response.
- Return type
None