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// Integer between 0 and +inf
23BENDERS_OPTIONS_MACRO(NB_CUTS_PER_ITER, int, 0, asInt())
24
25// MICRO ITERATIONS activated or not
26BENDERS_OPTIONS_MACRO(MICRO_ITERATIONS, bool, false, asBool())
27
28// Path to the folder where output files should be printed
29BENDERS_OPTIONS_MACRO(OUTPUTROOT, std::string, ".", asString())
30
31// True if a trace should be built, false otherwise
32BENDERS_OPTIONS_MACRO(TRACE, bool, true, asBool())
33
34// UNIFORM (1/n), CONSTANT (to set in SLAVE_WEIGHT_VALUE), or a txt file linking
35// each slave to its weight
36BENDERS_OPTIONS_MACRO(SLAVE_WEIGHT, std::string, "CONSTANT", asString())
37
38// If SLAVE_WEIGHT is CONSTANT, set here the divisor required
39BENDERS_OPTIONS_MACRO(SLAVE_WEIGHT_VALUE, double, 1, asDouble())
40
41// Name of the master problem file, if different from 'master'
42BENDERS_OPTIONS_MACRO(MASTER_NAME, std::string, "master", asString())
43
44// Format of the problems
45BENDERS_OPTIONS_MACRO(PROBLEMS_FORMAT,
46 ProblemsFormat,
47 ProblemsFormat::MPS_FILE,
48 as<ProblemsFormat>())
49
50// Number of slaves to use to solve the problem
51BENDERS_OPTIONS_MACRO(STRUCTURE_FILE, std::string, "structure.txt", asString())
52
53// Path to the folder where input files are stored
54BENDERS_OPTIONS_MACRO(INPUTROOT, std::string, ".", asString())
55
56// Name of the csv output file
57BENDERS_OPTIONS_MACRO(CSV_NAME, std::string, "benders_output_trace", asString())
58
59// True if alpha needs to be bounded by best upper bound, false otherwise
60BENDERS_OPTIONS_MACRO(BOUND_ALPHA, bool, true, asBool())
61
62// Name of solver to use
63BENDERS_OPTIONS_MACRO(SOLVER_NAME, std::string, "COIN", asString())
64
65// json file in output/expansion/
66BENDERS_OPTIONS_MACRO(JSON_FILE, std::string, ".", asString())
67
68// last iteration json file in output/expansion/
69BENDERS_OPTIONS_MACRO(LAST_ITERATION_JSON_FILE, std::string, ".", asString())
70// TIME_LIMIT
71BENDERS_OPTIONS_MACRO(TIME_LIMIT, double, 1e12, asDouble())
72// LAST_MASTER_MPS
73BENDERS_OPTIONS_MACRO(LAST_MASTER_MPS, std::string, "master_last_iteration", asString())
74// Resume last benders
75BENDERS_OPTIONS_MACRO(RESUME, bool, false, asBool())
76
77// Name of the last master basis file
78BENDERS_OPTIONS_MACRO(LAST_MASTER_BASIS, std::string, "master_last_basis", asString())
79
80// BATCH SIZE (Benders by batch)
81BENDERS_OPTIONS_MACRO(BATCH_SIZE, size_t, 0, asUInt())
82
83// is this an outer Loop
84BENDERS_OPTIONS_MACRO(DO_OUTER_LOOP, bool, false, asBool())
85
86// Outer Loop Options file
87BENDERS_OPTIONS_MACRO(OUTER_LOOP_OPTION_FILE, std::string, "adequacy_criterion.yml", asString())
88
89// area file
90BENDERS_OPTIONS_MACRO(AREA_FILE, std::string, "area.txt", asString())
91
92// cache problems
93BENDERS_OPTIONS_MACRO(CACHE_PROBLEMS, bool, false, asBool())
94
95// Master solution tolerance
96BENDERS_OPTIONS_MACRO(MASTER_SOLUTION_TOLERANCE, double, 1e-4, asDouble())
97
98// Cut coefficient tolerance
99BENDERS_OPTIONS_MACRO(CUT_COEFFICIENT_TOLERANCE, double, 5e-3, asDouble())
100
101// Flag to store full problems after presolve
102BENDERS_OPTIONS_MACRO(KEEP_FULL, bool, false, asBool())
103
104// Full problems directory name
105BENDERS_OPTIONS_MACRO(FULL_DIR, std::string, "full", asString())