poli.core.multi_objective_black_box.MultiObjectiveBlackBox

poli.core.multi_objective_black_box.MultiObjectiveBlackBox#

class poli.core.multi_objective_black_box.MultiObjectiveBlackBox(objective_functions: List[AbstractBlackBox], batch_size: Optional[int] = None)#

This class implements a multi-objective black box function by concatenating the results of evaluating individual objective functions.

Parameters
  • batch_size (int, optional) – The batch size for evaluating the black box function. Defaults to None.

  • objective_functions (List[AbstractBlackBox], required) – The list of objective functions to be evaluated. Defaults to None.

objective_functions#

The list of objective functions to be evaluated.

Type

List[AbstractBlackBox]

_black_box(x, context=None)#

Evaluate the black box function for the given input.

Raises

ValueError – If objective_functions is not provided as a list of AbstractBlackBox instances or inherited classes.

__init__(objective_functions: List[AbstractBlackBox], batch_size: Optional[int] = None) None#

Initialize the MultiObjectiveBlackBox class.

Parameters
  • objective_functions (List[AbstractBlackBox]) – The list of objective functions.

  • batch_size (int, optional) – The batch size. Defaults to None.

Raises

ValueError: – If objective_functions is not provided as a list of AbstractBlackBox instances or inherited classes.

Methods

__init__(objective_functions[, batch_size])

Initialize the MultiObjectiveBlackBox class.

reset_evaluation_budget()

Resets the evaluation budget by setting the number of evaluations made to 0.

set_observer(observer)

Set the observer object for recording observations during evaluation.

terminate()

Terminate the black box optimization problem.