panobbgo.lib.Result#

class panobbgo.lib.Result(point: Point | None, fx: float | None, cv_vec: ndarray | None = None, cv_norm: int | float | str | None = None, error: float = 0.0, timed_out: bool = False)[source]#

This represents one result, wich is a mapping of a Point \(x \rightarrow f(x)\).

Additionally, there is also

  • error: estimated or calculated \(\Delta f(x)\).

  • cv_vec: a possibly empty vector listing the constraint violation for each constraint.

Args:

  • cv_vec: the constraint violation vector

  • cv_norm: the norm used to calculate cv. (see numpy.linalg.norm(), default None means 2-norm)

  • timed_out: the evaluation hit evaluation.timeout; fx is then NaN, cv_vec None and cv inf — see timed_out.

__init__(point: Point | None, fx: float | None, cv_vec: ndarray | None = None, cv_norm: int | float | str | None = None, error: float = 0.0, timed_out: bool = False) → None[source]#

Args:

  • cv_vec: the constraint violation vector

  • cv_norm: the norm used to calculate cv. (see numpy.linalg.norm(), default None means 2-norm)

  • timed_out: the evaluation hit evaluation.timeout; fx is then NaN, cv_vec None and cv inf — see timed_out.

Methods

__init__(point, fx[, cv_vec, cv_norm, ...])

Args:

Attributes

cv

Constraint Violation.

cv_vec

Vector of constraint violations for each constraint, or None.

error

Error margin of function evaluation, usually 0.0.

fx

The function value \(f(x)\) after evaluating it.

point

Returns the actual Point object.

pp

pareto point, i.e. array([cv, fx]).

who

The name of the heuristic, who did generate this point (String).

x

Point \(x\) where this result has been evaluated.