NimbusMostPreferredRequest

class desdeo_mcdm.interactive.NimbusMostPreferredRequest(solution_vectors, objective_vectors)[source]

Bases: desdeo_tools.interaction.request.BaseRequest

A request to handle the indication of a preferred point.

Parameters
  • solution_vectors (List[np.ndarray]) – A list of numpy arrays each representing a decision variable vector.

  • objective_vectors (List[np.ndarray]) – A list of numpy arrays each representing an objective vector.

Note

The objective vector at position ‘i’ in objective_vectors should correspond to the decision variables at position ‘i’ in solution_vectors. Only the two first entries in each of the lists is relevant. The preferred solution will be selected from objective_vectors.

Attributes Summary

response

Methods Summary

validator(response)

Validates a response dictionary.

Attributes Documentation

response

Methods Documentation

validator(response)[source]

Validates a response dictionary. The dictionary should contain the keys ‘index’ and ‘continue’.

‘index’ is an integer and should indicate the index of the preferred solution is objective_vectors. ‘continue’ is a boolean and indicates whether to stop or continue the iteration of Synchronous NIMBUS.

Parameters

response (Dict) – See the documentation for validator.

Raises

NimbusException – Some discrepancy is encountered in the parsing of response.