A short yet complete example experiment script with restarts and batching.
Arguments
This script must be called with 1-3 arguments:
budget_multiplier [number_of_batches batch_to_execute]
budget_multiplier times dimension is the budget within which problem instances are run repeatedly as long as too few successes are observed.
batch_to_execute can only be omitted when number_of_batches == 1. When number_of_batches > 1, the script must be executed repeatedly (e.g., in parallel) with the different values for batch_to_execute = 0..number_of_batches-1 to get data for the full experiment.
Usage
To apply the code to a different solver/algorithm, fmin
must be
re-assigned or re-defined accordingly, and the below code must be edited at
the two places marked with "### input" around lines 40 and 80.
See also: https://coco-platform.org/getting-started#experiment
Variable | __author__ |
Undocumented |
Variable | __copyright__ |
Undocumented |
Variable | batcher |
Undocumented |
Variable | cma |
Undocumented |
Variable | dsl |
Undocumented |
Variable | final |
Undocumented |
Variable | final |
Undocumented |
Variable | minimal |
Undocumented |
Variable | observer |
Undocumented |
Variable | output |
Undocumented |
Variable | repeater |
Undocumented |
Variable | res |
Undocumented |
Variable | scipy |
Undocumented |
Variable | suite |
Undocumented |
Variable | suite |
Undocumented |
Variable | suite |
Undocumented |
Variable | time0 |
Undocumented |
Variable | time1 |
Undocumented |
Variable | timings |
Undocumented |
Variable | ts |
Undocumented |
Variable | xopt |
Undocumented |