ObjectiveBase
- class desdeo_problem.problem.ObjectiveBase[source]
Bases:
ABC
The abstract base class for objectives.
Methods Summary
evaluate
(decision_vector[, use_surrogate])Evaluates the objective according to a decision variable vector.
Methods Documentation
- evaluate(decision_vector, use_surrogate=False)[source]
Evaluates the objective according to a decision variable vector.
Uses surrogate model if use_surrogates is true. If use_surrogates is False, uses func_evaluate which evaluates using the true objective function.
- Parameters:
decision_vector (np.ndarray) – A vector of Variables to be used in the evaluation of the objective.
use_surrogate (bool) – A boolean which determines whether to use surrogates or true function evaluator. False by default.
- Return type: