panobbgo.strategies.round_robin.StrategyRoundRobin#

class panobbgo.strategies.round_robin.StrategyRoundRobin(problem, size=10, **kwargs)[source]#

This is a very primitive strategy for testing purposes only. It selects the heuristics based on a fixed round-robin scheme.

@type problem: panobbgo.lib.Problem @param problem: @param parse_args: @param testing_mode: @param kwargs: Additional configuration parameters (e.g. max_eval, max_evaluations)

__init__(problem, size=10, **kwargs)[source]#

@type problem: panobbgo.lib.Problem @param problem: @param parse_args: @param testing_mode: @param kwargs: Additional configuration parameters (e.g. max_eval, max_evaluations)

Methods

__init__(problem[, size])

@type problem: panobbgo.lib.Problem @param problem: @param parse_args: @param testing_mode: @param kwargs: Additional configuration parameters (e.g. max_eval, max_evaluations).

add(Heur, **kwargs)

add_analyzer(a)

Add an analyzer to the strategy.

add_heuristic(h)

Add a heuristic to the strategy.

analyzer(who)

check_dependencies()

This method is called in self.start() (and only there) for checking all the dependencies of all modules.

execute()

Overwrite this method when you extend this base strategy.

heuristic(who)

Look up a heuristic by its who tag.

info()

init_module(module)

StrategyBase calls this method.

on_converged(reason, stats)

Called when the Convergence analyzer detects convergence.

start()

validate_setup()

Validate that the framework is properly set up before starting optimization.

Attributes

PROBLEM_KEY

analyzers

avg_time_per_task

average walltime per finished task, NaN before the first one.

best

evaluators

Compatibility property for legacy code that references evaluators.

heuristics

name

time_cpu

effective cpu time in seconds

time_start_str

time_wall

wall time in seconds