Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
SimulationOptions.hxx
1// Determine the degree of detail of the output, from 1 to 3
2BENDERS_OPTIONS_MACRO(LOG_LEVEL, int, 0, asInt())
3
4// Maximum number of iterations accepted
5BENDERS_OPTIONS_MACRO(MAX_ITERATIONS, int, -1, asInt())
6
7// Absolute required level of precision
8BENDERS_OPTIONS_MACRO(ABSOLUTE_GAP, double, 1, asDouble())
9
10// Absolute required level of precision
11BENDERS_OPTIONS_MACRO(RELATIVE_GAP, double, 1e-6, asDouble())
12
13// Relative required level of precision with master relaxation
14BENDERS_OPTIONS_MACRO(RELAXED_GAP, double, 1e-5, asDouble())
15
16// In-out separation parameter
17BENDERS_OPTIONS_MACRO(SEPARATION_PARAM, double, 0.5, asDouble())
18
19// Formulation of the master problem
20BENDERS_OPTIONS_MACRO(MASTER_FORMULATION, std::string, "integer", asString())
21
22// True if cuts need to be aggregated, false otherwise
23BENDERS_OPTIONS_MACRO(AGGREGATION, bool, false, asBool())
24
25// Path to the folder where output files should be printed
26BENDERS_OPTIONS_MACRO(OUTPUTROOT, std::string, ".", asString())
27
28// True if a trace should be built, false otherwise
29BENDERS_OPTIONS_MACRO(TRACE, bool, true, asBool())
30
31// UNIFORM (1/n), CONSTANT (to set in SLAVE_WEIGHT_VALUE), or a txt file linking
32// each slave to its weight
33BENDERS_OPTIONS_MACRO(SLAVE_WEIGHT, std::string, "CONSTANT", asString())
34
35// If SLAVE_WEIGHT is CONSTANT, set here the divisor required
36BENDERS_OPTIONS_MACRO(SLAVE_WEIGHT_VALUE, double, 1, asDouble())
37
38// Name of the master problem file, if different from 'master'
39BENDERS_OPTIONS_MACRO(MASTER_NAME, std::string, "master", asString())
40
41//Format of the problems
42BENDERS_OPTIONS_MACRO(PROBLEMS_FORMAT, ProblemsFormat, ProblemsFormat::MPS_FILE, as<ProblemsFormat>())
43
44// Number of slaves to use to solve the problem
45BENDERS_OPTIONS_MACRO(STRUCTURE_FILE, std::string, "structure.txt", asString())
46
47// Path to the folder where input files are stored
48BENDERS_OPTIONS_MACRO(INPUTROOT, std::string, ".", asString())
49
50// Name of the csv output file
51BENDERS_OPTIONS_MACRO(CSV_NAME, std::string, "benders_output_trace", asString())
52
53// True if alpha needs to be bounded by best upper bound, false otherwise
54BENDERS_OPTIONS_MACRO(BOUND_ALPHA, bool, true, asBool())
55
56// Name of solver to use
57BENDERS_OPTIONS_MACRO(SOLVER_NAME, std::string, "COIN", asString())
58
59// json file in output/expansion/
60BENDERS_OPTIONS_MACRO(JSON_FILE, std::string, ".", asString())
61
62// last iteration json file in output/expansion/
63BENDERS_OPTIONS_MACRO(LAST_ITERATION_JSON_FILE, std::string, ".", asString())
64// TIME_LIMIT
65BENDERS_OPTIONS_MACRO(TIME_LIMIT, double, 1e12, asDouble())
66// LAST_MASTER_MPS
67BENDERS_OPTIONS_MACRO(LAST_MASTER_MPS, std::string, "master_last_iteration",
68 asString())
69// Resume last benders
70BENDERS_OPTIONS_MACRO(RESUME, bool, false, asBool())
71
72// Name of the last master basis file
73BENDERS_OPTIONS_MACRO(LAST_MASTER_BASIS, std::string, "master_last_basis",
74 asString())
75
76// BATCH SIZE (Benders by batch)
77BENDERS_OPTIONS_MACRO(BATCH_SIZE, size_t, 0, asUInt())
78
79// is this an outer Loop
80BENDERS_OPTIONS_MACRO(DO_OUTER_LOOP, bool, false, asBool())
81
82// Outer Loop Options file
83BENDERS_OPTIONS_MACRO(OUTER_LOOP_OPTION_FILE, std::string,
84 "adequacy_criterion.yml", asString())
85// area file
86BENDERS_OPTIONS_MACRO(AREA_FILE, std::string, "area.txt", asString())