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,
43 ProblemsFormat,
44 ProblemsFormat::MPS_FILE,
45 as<ProblemsFormat>())
46
47// Number of slaves to use to solve the problem
48BENDERS_OPTIONS_MACRO(STRUCTURE_FILE, std::string, "structure.txt", asString())
49
50// Path to the folder where input files are stored
51BENDERS_OPTIONS_MACRO(INPUTROOT, std::string, ".", asString())
52
53// Name of the csv output file
54BENDERS_OPTIONS_MACRO(CSV_NAME, std::string, "benders_output_trace", asString())
55
56// True if alpha needs to be bounded by best upper bound, false otherwise
57BENDERS_OPTIONS_MACRO(BOUND_ALPHA, bool, true, asBool())
58
59// Name of solver to use
60BENDERS_OPTIONS_MACRO(SOLVER_NAME, std::string, "COIN", asString())
61
62// json file in output/expansion/
63BENDERS_OPTIONS_MACRO(JSON_FILE, std::string, ".", asString())
64
65// last iteration json file in output/expansion/
66BENDERS_OPTIONS_MACRO(LAST_ITERATION_JSON_FILE, std::string, ".", asString())
67// TIME_LIMIT
68BENDERS_OPTIONS_MACRO(TIME_LIMIT, double, 1e12, asDouble())
69// LAST_MASTER_MPS
70BENDERS_OPTIONS_MACRO(LAST_MASTER_MPS, std::string, "master_last_iteration", asString())
71// Resume last benders
72BENDERS_OPTIONS_MACRO(RESUME, bool, false, asBool())
73
74// Name of the last master basis file
75BENDERS_OPTIONS_MACRO(LAST_MASTER_BASIS, std::string, "master_last_basis", asString())
76
77// BATCH SIZE (Benders by batch)
78BENDERS_OPTIONS_MACRO(BATCH_SIZE, size_t, 0, asUInt())
79
80// is this an outer Loop
81BENDERS_OPTIONS_MACRO(DO_OUTER_LOOP, bool, false, asBool())
82
83// Outer Loop Options file
84BENDERS_OPTIONS_MACRO(OUTER_LOOP_OPTION_FILE, std::string, "adequacy_criterion.yml", asString())
85// area file
86BENDERS_OPTIONS_MACRO(AREA_FILE, std::string, "area.txt", asString())