panobbgo.heuristics.nelder_mead.NelderMead#
- class panobbgo.heuristics.nelder_mead.NelderMead(strategy)[source]#
This heuristic is inspired by the Nelder Mead Method
Algorithm:
If there are enough result points available, it tries to find a subset of
dim + 1points, which are affinely independent (hence, span a simplex) and have the best (so far) function values, and are close (in the sameBox).Then, it applies the NM heuristic in a randomized fashion, i.e. it generates several promising points into the same direction as the implied search direction. See
here.
The heuristic is reactive: it recomputes its base whenever the
Splitterpublishes a new best box and tops its output queue up on every result batch. It never sleeps or polls.- 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.
clear_output()emit(points)This is used to send out new search points for evaluation.
get_points([limit])Drain the output queue until
limitpoints are removed or it is empty.gram_schmidt(dim, results[, tol])Pick
dim + 1affinely independentResultsto span a simplex, best first.nelder_mead(base[, scale, offset])Retuns a new randomized search point for the given set of results (
base), which are linearly independent enough to form a orthonormal base, using the Nelder-Mead Method.on_new_best_box(best_box)A new best box (from the
Splitter) resets the search direction: the queue is flushed and refilled from the new base.Attributes
activeThis is queried by the strategy to determine, if it should still consider it.
eventbusnameThe module's name.
problemresultsstrategy