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 start and 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 its rng and the events it receives.

Parameters:

@type strategy: StrategyBase

__init__(strategy, cap=None, name=None)[source]#
Parameters:

@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 limit points are removed or it is empty.

on_new_split(box, children, dim)

Track the (possibly new) leaf around the best point.

on_start()

Attributes

active

This is queried by the strategy to determine, if it should still consider it.

eventbus

name

The module's name.

problem

results

strategy