VectorObjective

class desdeo_problem.problem.VectorObjective(name, evaluator, lower_bounds=None, upper_bounds=None, maximize=None)[source]

Bases: VectorObjectiveBase

An objective function vector with one or more objective functions.

To be renamed to Objective

Attributes:

__name (List[str]): Names of the various objectives in a list __evaluator (Callable): The function that evaluates the objective values __lower_bounds (Union[List[float], np.ndarray), optional): Lower bounds

of the objective values. Defaults to None.

__upper_bounds (Union[List[float], np.ndarray), optional): Upper bounds

of the objective values. Defaults to None.

__maximize (List[bool]): List of boolean to determine whether the

objectives are to be maximized. All false by default

__n_of_objects (int): The number of objectives

Parameters:
  • name (List[str]) – Names of the various objectives in a list

  • evaluator (Callable) – The function that evaluates the objective values

  • lower_bounds (Union[List[float], np.ndarray), optional) – Lower bounds of the objective values. Defaults to None.

  • upper_bounds (Union[List[float], np.ndarray), optional) – Upper bounds of the objective values. Defaults to None.

  • maximize (Optional[List[bool]]) – List of boolean to determine whether the objectives are to be maximized. All false by default

Attributes Summary

evaluator

evaluator

lower_bounds

lower bounds

n_of_objectives

number of objectives

name

name

upper_bounds

upper bounds

values

values

Attributes Documentation

evaluator

evaluator

Returns:

Evaluator of the objective

Return type:

Callable

Type:

Property

lower_bounds

lower bounds

Returns:

lower bounds for vector valued objective.

Return type:

np.ndarray

Type:

Property

n_of_objectives

number of objectives

Returns:

the number of objectives

Return type:

int

Type:

Property

name

name

Returns:

name of the objective

Return type:

str

Type:

Property

upper_bounds

upper bounds

Returns:

upper bounds for vector valued objective.

Return type:

np.ndarray

Type:

Property

values

values

Returns:

Evaluated value and uncertainty of evaluation

Return type:

Tuple[float]

Type:

Property