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)StrategyBasecalls 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_KEYanalyzersavg_time_per_taskaverage walltime per finished task,
NaNbefore the first one.bestevaluatorsCompatibility property for legacy code that references evaluators.
heuristicsnametime_cpueffective cpu time in seconds
time_start_strtime_wallwall time in seconds