run_algorithm.run_multiple_instances#
- run_algorithm.run_multiple_instances(ALGORITHM_PARAMETERS: dict[str, Any]) None #
Runs the SM-SPSA algorithm on multiple instances.
Includes additional code for checking and saving input parameters, applying heuristics, setting additional required variables, plotting and saving results.
- Parameters:
ALGORITHM_PARAMETERS (dict[str,Any]) – The algorithm parameters. The parameters
SAVE_OUTPUT
,NETWORK_PLOT_FILE_NAME
,MATRICES_DIRECTORY
,INSTANCE_PARAMETERS_FILE_NAME
,INSTANCE_NAME
,HEURISTIC_TYPE
,OUTPUT_DIRECTORY
,M_FILE_NAME
,C_FILE_NAME
,NR_ITERATIONS_TYPE
,NR_ITERATIONS_FIXED
,NR_ITERATIONS_FACTOR
,CRN_GENERATOR
,CENTRED_MASS_START
,SEED_VALUE
,MEMORY_OPTIMISED
andRUNNING_TIME_FILE_NAME
are at least necessary. Seemain.py
for parameter explanations. Note that methods that are called within this method may require more parameters.- Raises:
Exception –
If an invalid
NR_ITERATIONS_TYPE
is provided (not “fixed” or “variable”). (2) If an invalid value forCRN_GENERATOR
is specified (not “RandomState” or “Generator”).