panobbgo.analyzers.best.Best#
- class panobbgo.analyzers.best.Best(strategy)[source]#
Listens on all results, does accounting for “best” results, manages a pareto front of good points and emits the following events:
new_best: when a new “best” point,new_min: a point with smallest objective function value,new_cv: one with a smallercv, ornew_pareto: when a best point on the pareto front of the objective value and constraint violationhas been found.
Note
Pareto: Once the constraint violation is zero, only the objective function value is considered and future results with a positive constraint violation are ignored.
The best point (pareto) is available via the
bestattribute. There is alsocv,minandpareto.
This is an example of how several pareto fronts progress during the optimization.#
- Parameters:
strategy (StrategyBase)
name (str)
@type strategy: StrategyBase
- __init__(strategy)[source]#
- Parameters:
strategy (StrategyBase)
name (str)
@type strategy: StrategyBase
Methods
__init__(strategy)check_dependencies(analyzers, heuristics)This method is called by the core initialization to assess, if the dependencies for the given module are met.
on_new_cv(cv)Report progress when a new constraint violation minimum is found.
on_new_min(min)Report progress when a new global minimum is found.
on_new_pareto(pareto)on_new_pareto_front(front)Report progress when a new pareto front is found.
on_new_results(results)Attributes
Currently best
Result.The point with currently minimal constraint violation, likely 0.0.
eventbusThe point, with currently smallest objective function value.
nameThe module's name.
This is the list of points building the current pareto front.
problemresultsstrategy