panobbgo.heuristics.random.Random#
- class panobbgo.heuristics.random.Random(strategy, cap=None, name=None)[source]#
Generates uniformly random points inside the box of the current “best leaf” (see
Splitter), or inside the whole problem box until the Splitter has published one.The heuristic is reactive: it fills its output queue on
startand tops it up whenever results arrive or the best leaf changes. It never sleeps or polls, so the sequence of points it produces is a pure function of itsrngand the events it receives.- Parameters:
strategy (StrategyBase)
name (str)
@type strategy: StrategyBase
- __init__(strategy, cap=None, name=None)[source]#
- Parameters:
strategy (StrategyBase)
name (str)
@type strategy: StrategyBase
Methods
__init__(strategy[, cap, name])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.on_new_split(box, children, dim)Track the (possibly new) leaf around the best point.
on_start()Attributes
activeThis is queried by the strategy to determine, if it should still consider it.
eventbusnameThe module's name.
problemresultsstrategy