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 vectorcv_norm: the norm used to calculatecv. (seenumpy.linalg.norm(), defaultNonemeans 2-norm)timed_out: the evaluation hitevaluation.timeout;fxis thenNaN,cv_vecNoneandcvinf— seetimed_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 vectorcv_norm: the norm used to calculatecv. (seenumpy.linalg.norm(), defaultNonemeans 2-norm)timed_out: the evaluation hitevaluation.timeout;fxis thenNaN,cv_vecNoneandcvinf— seetimed_out.
Methods
__init__(point, fx[, cv_vec, cv_norm, ...])Args:
Attributes
Constraint Violation.
Vector of constraint violations for each constraint, or None.
Error margin of function evaluation, usually 0.0.
The function value \(f(x)\) after
evaluatingit.Returns the actual
Pointobject.pareto point, i.e. array([cv, fx]).
The
nameof the heuristic, who did generate this point (String).Point \(x\) where this result has been evaluated.