NimbusIntermediateSolutionsRequest

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

Bases: desdeo_tools.interaction.request.BaseRequest

A request to handle the computation of intermediate points between two previously computed points.

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 rest is ignored.

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 ‘indices’ and ‘number_of_solutions’.

‘indices’ should be a list of integers representing an index to the lists solutions_vectors and objective_vectors. ‘number_of_solutions’ should be an integer greater or equal to 1.

Parameters

response (Dict) – See the documentation for validator.

Raises

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