Antares Simulator
Power System Simulator
load-options.h
1 /*
2  * Copyright 2007-2025, RTE (https://www.rte-france.com)
3  * See AUTHORS.txt
4  * SPDX-License-Identifier: MPL-2.0
5  * This file is part of Antares-Simulator,
6  * Adequacy and Performance assessment for interconnected energy networks.
7  *
8  * Antares_Simulator is free software: you can redistribute it and/or modify
9  * it under the terms of the Mozilla Public Licence 2.0 as published by
10  * the Mozilla Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * Antares_Simulator is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * Mozilla Public Licence 2.0 for more details.
17  *
18  * You should have received a copy of the Mozilla Public Licence 2.0
19  * along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20  */
21 #ifndef __ANTARES_LIBS_SOLVER_LOAD_OPTIONS_H__
22 #define __ANTARES_LIBS_SOLVER_LOAD_OPTIONS_H__
23 
24 #include <yuni/yuni.h>
25 #include <yuni/core/string.h>
26 
27 #include <antares/optimization-options/options.h>
28 
29 #include "parameters.h"
30 
31 namespace Antares::Data
32 {
33 class StudyLoadOptions final
34 {
35 public:
37 
41 
42  void checkForceSimulationMode();
43 
44 public:
46  uint nbYears;
53 
56 
58  // This option might be useful for running old studies without upgrading
60 
62  SimplexOptimization simplexOptimizationRange;
66  bool namedProblems = false;
70  SimulationMode forceMode;
71 
74 
77  uint maxNbYearsInParallel;
78 
81 
84 
86  mutable Yuni::String logMessage;
87 
89  bool displayVersion = false;
90 
92  bool listSolvers = false;
93 
95  bool forceExpansion = false;
96  bool forceEconomy = false;
97  bool forceAdequacy = false;
98 
99  YString studyFolder;
100  YString simulationName;
101 }; // class StudyLoadOptions
102 
103 } // namespace Antares::Data
104 
105 #endif // __ANTARES_LIBS_SOLVER_LOAD_OPTIONS_H__
Definition: load-options.h:34
Antares::Solver::Optimization::CmdLineOptimOptions solverOptions
All options related to linear & quadratic optimization.
Definition: load-options.h:83
SimplexOptimization simplexOptimizationRange
Simplex optimization range.
Definition: load-options.h:62
bool listSolvers
True => display the list of OR-Tools solvers and exit.
Definition: load-options.h:92
bool forceYearByYear
Force the year-by-year flag.
Definition: load-options.h:52
bool forceParallel
Force a maximum number of MC years computed simultaneously.
Definition: load-options.h:76
bool ignoreConstraints
Ignore all constraints.
Definition: load-options.h:68
bool noTimeseriesImportIntoInput
No Timeseries import in the input.
Definition: load-options.h:59
bool forceExpansion
Simulation mode.
Definition: load-options.h:95
bool enableParallel
Enables the parallel computation of MC years.
Definition: load-options.h:73
StudyLoadOptions()
Default constructor.
Definition: load-options.cpp:29
bool prepareOutput
True to prepare the output folder.
Definition: load-options.h:48
bool forceDerated
Force the derated mode.
Definition: load-options.h:55
bool namedProblems
named problems
Definition: load-options.h:66
bool usedByTheSolver
A non-zero value if the data will be used for a simulation.
Definition: load-options.h:80
bool displayVersion
Display version number and exit.
Definition: load-options.h:89
SimulationMode forceMode
Simulation mode.
Definition: load-options.h:70
uint nbYears
The number of MC years (non-zero to force the value)
Definition: load-options.h:46
Yuni::String logMessage
Temporary string for passing log message.
Definition: load-options.h:86
bool mpsToExport
Mps files export asked.
Definition: load-options.h:64
bool loadOnlyNeeded
True to load only the strictly required data.
Definition: load-options.h:50