module documentation

This module contains some global variables settings for COCO.

These variables may be modified (in particular in rungeneric1, 2, and -many) and are used for producing figures and tables.

For setting variables dynamically or changing other module settings here see cocopp.config.

Variable algorithm_names dict, display algorithm names for some or all input arguments. The names are used for display and as id, instead of a name derived from the path or the archive name. The dict key is the position in main_input_args...
Variable appended_evals_minimal_trials minimum number of instances required in the appended_evals array such that DataSet.appended_evals is created to be different from DataSet.evals
Variable background algorithms to shown for comparison "in the background". Usage: background = {(color, linestyle): [path_to_data1, path_to_data2, ...], } Examples: background = {None: cocopp.archives.bbob.get_all('2009/')}...
Variable background_default_style (color, linestyle) tuple for background algorithms, by default =(3 * (0.9,), "-")
Variable balance_instances give even weight to all instances by added columns with copies of underrepresented instances in DataSet.evals
Variable count_instance_consistency_checks counter of checks done in pprldmany, avoids repeated checks and warning floods
Variable dim_related_colors Undocumented
Variable dim_related_markers Undocumented
Variable extraction_folder_prefix Undocumented
Variable figsize Undocumented
Variable figure_file_formats Undocumented
Variable filter_data_condition a callable which is used in rungenericmany to filter the list of DataSet. For example, to keep only the "effectively unimodal" functions of the 'bbob' testbed, set filter_data_condition = lambda ds: ds.funcId in [1, 2,] + list(range(5, 15))...
Variable force_assertions Undocumented
Variable foreground_algorithm_list a list of data files/folders as those specified in cocopp.main
Variable in_a_hurry Undocumented
Variable index_html_file_name Undocumented
Variable inputCrE Undocumented
Variable inputsettings Undocumented
Variable instancesOfInterest Undocumented
Variable instancesOfInterest2009 Undocumented
Variable instancesOfInterest2010 Undocumented
Variable instancesOfInterest2012 Undocumented
Variable instancesOfInterest2013 Undocumented
Variable instancesOfInterest2015 Undocumented
Variable instancesOfInterest2016 Undocumented
Variable instancesOfInterest2017 Undocumented
Variable instancesOfInterest2018 Undocumented
Variable instancesOfInterest2021 Undocumented
Variable instancesOfInterest2023 Undocumented
Variable instancesOfInterestBiobj2016 Undocumented
Variable instancesOfInterestBiobj2017 Undocumented
Variable interactive_mode Undocumented
Variable isConv Undocumented
Variable isExpensive Undocumented
Variable isFig Undocumented
Variable isLogLoss Undocumented
Variable isNoiseFree Undocumented
Variable isNoisy Undocumented
Variable isPickled Undocumented
Variable isRLDistr Undocumented
Variable isRldOnSingleFcts Undocumented
Variable isScatter Undocumented
Variable isTab Undocumented
Variable latex_commands_for_html Undocumented
Variable len_of_names_in_pprldmany_legend set the length, for example when we want to remove characters that are not fully displayed, 9 == len('best 2009')
Variable line_style_mapping map the input argument position to a line style position, by default the identity. This could be useful to get the same style for several algorithm variants. Only effective with when bool(parameter_sweep) is True...
Variable line_styles Undocumented
Variable main_input_args A list of all data path arguments to the latest call of main or load2 in an InputArguments type, this is not a user setting
Variable many_algorithm_file_name Undocumented
Variable marker_size_multiplier multiply all marker sizes in below line_styles, used in compall.pprldmany.main
Variable maxevals_fix_display Undocumented
Variable minmax_algorithm_fontsize Undocumented
Variable minor_grid_alpha_in_pprldmany used in pprldmany for empirical runtime distributions, 0 means no minor grid
Variable number_algorithm_names bool, signal whether to prepend algorithm names with a count when displaying unless parameter_sweep is True
Variable outputdir Undocumented
Variable parameter_sweep configure line styles for a parameter sweep, see also cocopp.config.config_line_styles
Variable parameter_sweep_colormaps colormap(s) for parameter sweep set from the respective input long_option.
Variable parameter_sweep_sort assign color in sweep by leading float of algorithm name
Variable ppconv_file_name Undocumented
Variable ppfigcons1_file_name Undocumented
Variable ppfigcons_file_name Undocumented
Variable ppfigdim_file_name Undocumented
Variable ppfigs_file_name Undocumented
Variable pprldistr2_file_name Undocumented
Variable pprldmany_file_name Undocumented
Variable pprldmany_group_file_name Undocumented
Variable ppscatter_file_name Undocumented
Variable pptables_file_name Undocumented
Variable pretend_initial_solution_was_evaluated pretend the initial_solution was evaluated in the first evaluation and modify the data accordingly for any larger targets that were hit only later. This increases the first loading time by 1-3s per algorithm...
Variable rcaxes Undocumented
Variable rcaxeslarger Undocumented
Variable rcfont Undocumented
Variable rcfontlarger Undocumented
Variable rclegend Undocumented
Variable rclegendlarger Undocumented
Variable rctick Undocumented
Variable rcticklarger Undocumented
Variable reference_algorithm_styles Undocumented
Variable runlength_based_targets Undocumented
Variable scaling_figures_with_boxes Undocumented
Variable scaling_plots_with_axis_labels Undocumented
Variable sequential_colormaps default color maps for a parameter sweep
Variable simulated_runlength_bootstrap_sample_size bootstrap samples, 30 is a multiple of 10 and 15. Used for tables and plots. int(1e4) would be preferable for a final camera-ready paper version.
Variable single_algorithm_file_name Undocumented
Variable single_runlength_factors Undocumented
Variable target_runlength Undocumented
Variable target_runlengths_in_scaling_figs Undocumented
Variable target_runlengths_in_single_rldistr Undocumented
Variable target_runlengths_pprldmany Undocumented
Variable target_runlengths_ppscatter Undocumented
Variable test Undocumented
Variable use_only_common_instances If True, not-common instances are removed such that the set of instance ids is the same for all data sets. By default, when use_only_common_instances is None, this is the case iff current_testbed.instances_are_uniform...
Variable use_recommendations use only recommendations data (.mdat files) for the respective algorithm where the last element is recycled for the remaining algorithms
Variable verbose Undocumented
Variable warning_level Undocumented
Variable weight_evaluations_constraints weights used to sum function evaluations and constraints evaluations in the attribute DataSet._evals when data are loaded.
Variable xlimit_expensive maximal run length multiplier in expensive setting, used in config for pprldmany and ppfigdim
Variable xlimit_pprldmany maximal run length multiplier used in pprldmany.
Variable _current_args arguments found in rungeneric.main, namely a list of folders returned by COCODataArchive.get_extended of cocopp.archives.all.
Variable _default_line_styles Undocumented
algorithm_names: dict =

dict, display algorithm names for some or all input arguments. The names are used for display and as id, instead of a name derived from the path or the archive name. The dict key is the position in main_input_args.

Value
{}
appended_evals_minimal_trials: int =

minimum number of instances required in the appended_evals array such that DataSet.appended_evals is created to be different from DataSet.evals

Value
6
background: dict =

algorithms to shown for comparison "in the background". Usage: background = {(color, linestyle): [path_to_data1, path_to_data2, ...], } Examples: background = {None: cocopp.archives.bbob.get_all('2009/')} for all algorithms benchmarked in 2009 on the bbob test suite show with default line style, or background = {None: cocopp.archives.bbob_mixint.get_all('')} for all algorithms benchmarked on the bbob-mixint test suite.

Value
{}
background_default_style =

(color, linestyle) tuple for background algorithms, by default =(3 * (0.9,), "-")

Value
((3*(0.9)), '-')
balance_instances: bool =

give even weight to all instances by added columns with copies of underrepresented instances in DataSet.evals

Value
True
count_instance_consistency_checks: int =

counter of checks done in pprldmany, avoids repeated checks and warning floods

Value
0
dim_related_colors: tuple[str, ...] =

Undocumented

Value
('c', 'g', 'b', 'k', 'r', 'm', 'k', 'y', 'k', 'c', 'r', 'm')
dim_related_markers: tuple[str, ...] =

Undocumented

Value
('+', 'v', '*', 'o', 's', 'D', 'x')
extraction_folder_prefix: str =

Undocumented

Value
'.extracted_'
figsize: list[float] =

Undocumented

Value
[6.4, 4.8]
figure_file_formats: list[str] =

Undocumented

Value
['svg', 'pdf']
filter_data_condition =

a callable which is used in rungenericmany to filter the list of DataSet. For example, to keep only the "effectively unimodal" functions of the 'bbob' testbed, set filter_data_condition = lambda ds: ds.funcId in [1, 2,] + list(range(5, 15))

Value
None
force_assertions: bool =

Undocumented

Value
False
foreground_algorithm_list: list =

a list of data files/folders as those specified in cocopp.main

Value
[]
in_a_hurry: int =

Undocumented

Value
1000
index_html_file_name: str =

Undocumented

Value
'index'
inputCrE: float =

Undocumented

Value
0.0
inputsettings: str =

Undocumented

Value
'color'
instancesOfInterest2009: dict[int, int] =

Undocumented

Value
{1: 3, 2: 3, 3: 3, 4: 3, 5: 3}
instancesOfInterest2010: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 6: 1,
 7: 1,
...
instancesOfInterest2012: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 21: 1,
 22: 1,
...
instancesOfInterest2013: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 31: 1,
 32: 1,
...
instancesOfInterest2015: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 41: 1,
 42: 1,
...
instancesOfInterest2016: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 51: 1,
 52: 1,
...
instancesOfInterest2017: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 61: 1,
 62: 1,
...
instancesOfInterest2018: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 71: 1,
 72: 1,
...
instancesOfInterest2021: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 91: 1,
 92: 1,
...
instancesOfInterest2023: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 101: 1,
 102: 1,
...
instancesOfInterestBiobj2016: dict[int, int] =

Undocumented

Value
{1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1, 10: 1}
instancesOfInterestBiobj2017: dict[int, int] =

Undocumented

Value
{1: 1,
 2: 1,
 3: 1,
 4: 1,
 5: 1,
 6: 1,
 7: 1,
...
interactive_mode: bool =

Undocumented

Value
True
isConv: bool =

Undocumented

Value
False
isExpensive: bool =

Undocumented

Value
False
isFig: bool =

Undocumented

Value
True
isLogLoss: bool =

Undocumented

Value
True
isNoiseFree: bool =

Undocumented

Value
False
isNoisy: bool =

Undocumented

Value
False
isPickled: bool =

Undocumented

Value
False
isRLDistr: bool =

Undocumented

Value
True
isRldOnSingleFcts: bool =

Undocumented

Value
True
isScatter: bool =

Undocumented

Value
True
isTab: bool =

Undocumented

Value
True
latex_commands_for_html: str =

Undocumented

Value
'latex_commands_for_html'
len_of_names_in_pprldmany_legend =

set the length, for example when we want to remove characters that are not fully displayed, 9 == len('best 2009')

Value
None
line_style_mapping: dict =

map the input argument position to a line style position, by default the identity. This could be useful to get the same style for several algorithm variants. Only effective with when bool(parameter_sweep) is True.

Value
{}
line_styles: list[dict] =

Undocumented

Value
[{'color': '#1874b4',
  'linestyle': '-',
  'marker': 'o',
  'markersize': 7,
  'zorder': 2},
 {'color': '#fa7009',
  'linestyle': '-',
...
main_input_args: list =

A list of all data path arguments to the latest call of main or load2 in an InputArguments type, this is not a user setting

Value
[]
many_algorithm_file_name: str =

Undocumented

Value
'index'
marker_size_multiplier: float =

multiply all marker sizes in below line_styles, used in compall.pprldmany.main

Value
1.1
maxevals_fix_display =

Undocumented

Value
None
minmax_algorithm_fontsize: list[int] =

Undocumented

Value
[9, 14]
minor_grid_alpha_in_pprldmany: float =

used in pprldmany for empirical runtime distributions, 0 means no minor grid

Value
0.15
number_algorithm_names: bool =

bool, signal whether to prepend algorithm names with a count when displaying unless parameter_sweep is True

Value
True
outputdir: str =

Undocumented

Value
'ppdata'
parameter_sweep: bool =

configure line styles for a parameter sweep, see also cocopp.config.config_line_styles

Value
False
parameter_sweep_colormaps =

colormap(s) for parameter sweep set from the respective input long_option.

colormaps can, for example, be 'plasma.0.9,viridis' indicating the map names separated by commata and optionally the range for each map.

Value
None
parameter_sweep_sort: bool =

assign color in sweep by leading float of algorithm name

Value
True
ppconv_file_name: str =

Undocumented

Value
'ppconv'
ppfigcons1_file_name: str =

Undocumented

Value
'ppfigcons1'
ppfigcons_file_name: str =

Undocumented

Value
'ppfigcons'
ppfigdim_file_name: str =

Undocumented

Value
'ppfigdim'
ppfigs_file_name: str =

Undocumented

Value
'ppfigs'
pprldistr2_file_name: str =

Undocumented

Value
'pprldistr2'
pprldmany_file_name: str =

Undocumented

Value
'pprldmany'
pprldmany_group_file_name: str =

Undocumented

Value
'pprldmany_gr'
ppscatter_file_name: str =

Undocumented

Value
'ppscatter'
pptables_file_name: str =

Undocumented

Value
'pptables'
pretend_initial_solution_was_evaluated: bool =

pretend the initial_solution was evaluated in the first evaluation and modify the data accordingly for any larger targets that were hit only later. This increases the first loading time by 1-3s per algorithm. This does currently not apply to MO suites like *-biobj as we do not have HV_normalized(f(X0)) and HV_normalized_opt.

Value
False
rcaxes: dict[str, int] =

Undocumented

Value
{'labelsize': 20, 'titlesize': 24}
rcaxeslarger: dict =

Undocumented

Value
{'labelsize': 24, 'titlesize': 28.8}
rcfont: dict[str, int] =

Undocumented

Value
{'size': 20}
rcfontlarger: dict[str, int] =

Undocumented

Value
{'size': 24}
rclegend: dict[str, int] =

Undocumented

Value
{'fontsize': 20}
rclegendlarger: dict[str, int] =

Undocumented

Value
{'fontsize': 24}
rctick: dict[str, int] =

Undocumented

Value
{'labelsize': 20}
rcticklarger: dict[str, int] =

Undocumented

Value
{'labelsize': 24}
reference_algorithm_styles =

Undocumented

Value
{'linestyle': '-',
 'linewidth': 5,
 'marker': 'D',
 'markersize': 1*0.8*11.0,
 'markeredgewidth': 1*1.5/1.5,
 'color': 'linen'}
runlength_based_targets: bool =

Undocumented

Value
False
scaling_figures_with_boxes: bool =

Undocumented

Value
True
scaling_plots_with_axis_labels: bool =

Undocumented

Value
False
sequential_colormaps: list[str] =

default color maps for a parameter sweep

Value
['plasma..9']
simulated_runlength_bootstrap_sample_size =

bootstrap samples, 30 is a multiple of 10 and 15. Used for tables and plots. int(1e4) would be preferable for a final camera-ready paper version.

Value
30+int((970/(1+10*max((0, in_a_hurry)))))
single_algorithm_file_name: str =

Undocumented

Value
'index1'
single_runlength_factors =

Undocumented

Value
[0.5, 1.2, 3, 10]+[(10 ** i) for i in range(2, 12)]
target_runlength: int =

Undocumented

Value
10
target_runlengths_in_scaling_figs: list =

Undocumented

Value
[0.5, 1.2, 3, 10, 50]
target_runlengths_in_single_rldistr: list =

Undocumented

Value
[0.5, 2, 10, 50]
target_runlengths_pprldmany =

Undocumented

Value
np.logspace(np.log10(0.5), np.log10(50), 31)
target_runlengths_ppscatter =

Undocumented

Value
np.logspace(np.log10(0.5), np.log10(50), 8)
test: bool =

Undocumented

Value
False
use_only_common_instances =

If True, not-common instances are removed such that the set of instance ids is the same for all data sets. By default, when use_only_common_instances is None, this is the case iff current_testbed.instances_are_uniform

Value
None
use_recommendations: list[bool] =

use only recommendations data (.mdat files) for the respective algorithm where the last element is recycled for the remaining algorithms

Value
[False]
verbose: bool =

Undocumented

Value
False
warning_level: int =

Undocumented

Value
1
weight_evaluations_constraints: list[int] =

weights used to sum function evaluations and constraints evaluations in the attribute DataSet._evals when data are loaded.

Value
[1, 1]
xlimit_expensive: float =

maximal run length multiplier in expensive setting, used in config for pprldmany and ppfigdim

Value
1000.0
xlimit_pprldmany: float =

maximal run length multiplier used in pprldmany.

This sets cocopp.compall.pprldmany.x_limit via calling cocopp.config.config()`.

Noisy setting should be rather 1e8? ?maybe better: 10 * genericsettings.evaluation_setting[1]?

Value
10000000.0
_current_args =

arguments found in rungeneric.main, namely a list of folders returned by COCODataArchive.get_extended of cocopp.archives.all.

Value
None
_default_line_styles =

Undocumented

Value
[dict(d) for d in line_styles]