module documentation

DEPRECATED: use rather example_experiment_complete.py

A short and simple example experiment with restarts.

The script is fully functional but also emphasises on readability. It features restarts, timings and recording termination conditions.

To benchmark a different solver, fmin must be re-assigned and another elif block added around line 119 to account for the solver-specific call.

When calling the script, previously assigned variables can be re-assigned via a name=value argument without white spaces, where value is interpreted as a single python literal. Additionally, batch is recognized as argument defining the current_batch number and the number of batches, like batch=2/8 runs batch 2 of 8.

Examples, preceeded by "python" in an OS shell and by "run" in an IPython shell:

example_experiment2.py budget_multiplier=3  # times dimension

example_experiment2.py budget_multiplier=1e4 cocopp=None  # omit post-processing

example_experiment2.py budget_multiplier=1e4 suite_name=bbob-biobj

example_experiment2.py budget_multiplier=1000 batch=1/16

Post-processing with cocopp is only invoked in the single-batch case.

Details: batch=9/8 is equivalent to batch=1/8. The first number is taken modulo to the second.

See the code: https://github.com/numbbo/coco/blob/master/code-experiments/build/python/example_experiment2.py

See a beginners example experiment: https://github.com/numbbo/coco/blob/master/code-experiments/build/python/example_experiment_for_beginners.py

Function random_search Won't work (well or at all) for evals much larger than 1e5
Function set_num_threads see https://github.com/numbbo/coco/issues/1919 and https://github.com/CMA-ES/pycma/issues/238 and https://twitter.com/jeremyphoward/status/1185044752753815552
Variable __author__ Undocumented
Variable batches Undocumented
Variable budget_multiplier Undocumented
Variable current_batch Undocumented
Variable evalsleft Undocumented
Variable irestart Undocumented
Variable minimal_print Undocumented
Variable observer Undocumented
Variable output_folder Undocumented
Variable stoppings Undocumented
Variable suite Undocumented
Variable suite_filter_options Undocumented
Variable suite_name Undocumented
Variable suite_year_option Undocumented
Variable time0 Undocumented
Variable time1 Undocumented
Variable timings Undocumented
def random_search(f, lbounds, ubounds, evals):

Won't work (well or at all) for evals much larger than 1e5

__author__: str =

Undocumented

batches: int =

Undocumented

budget_multiplier: int =

Undocumented

current_batch: int =

Undocumented

evalsleft =

Undocumented

irestart =

Undocumented

minimal_print =

Undocumented

observer =

Undocumented

output_folder =

Undocumented

stoppings =

Undocumented

suite =

Undocumented

suite_filter_options: str =

Undocumented

suite_name: str =

Undocumented

suite_year_option: str =

Undocumented

time0 =

Undocumented

time1 =

Undocumented

timings =

Undocumented