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 smaller cv, or

  • new_pareto: when a best point on the pareto front of the objective value and constraint violation

    has 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 best attribute. There is also cv, min and pareto.

_autosummary/img/pareto-front.png

This is an example of how several pareto fronts progress during the optimization.#

Parameters:

@type strategy: StrategyBase

__init__(strategy)[source]#
Parameters:

@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

best

Currently best Result.

cv

The point with currently minimal constraint violation, likely 0.0.

eventbus

min

The point, with currently smallest objective function value.

name

The module's name.

pareto

pareto_front

This is the list of points building the current pareto front.

problem

results

strategy