Antares Simulator
Power System Simulator
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 #pragma once
22 
23 #include <memory>
24 
25 #include <yuni/yuni.h>
26 #include <yuni/core/getopt.h>
27 #include <yuni/core/string.h>
28 
29 #include <antares/optimization-options/options.h>
30 #include <antares/study/study.h>
31 
35 class Settings final
36 {
37 public:
38  void reset();
39 
41  YString studyFolder;
43  Yuni::CString<150, false> simulationName;
45  std::string commentFile;
46 
48  Yuni::CString<32, false> simplexOptimRange;
49 
51  bool ignoreLoadingErrors = false;
53  bool ignoreConstraints = false;
54 
56  bool tsGeneratorsOnly = false;
57 
59  bool noOutput = false;
61  bool displayProgression = false;
62 
63  Yuni::String PID;
64  bool forceZipOutput = false;
66 }; // class Settings
67 
71 std::unique_ptr<Yuni::GetOpt::Parser> CreateParser(Settings& settings,
73 
74 void checkStudyFolder(const std::string& studyFolder);
75 std::string fixStudyFolder(const std::string& studyFolder);
76 void printPIDtoDisk(Settings& settings);
77 void checkAndCorrectSettingsAndOptions(Settings& settings, Data::StudyLoadOptions& options);
Definition: load-options.h:34
Command line settings for launching the simulation.
Definition: options.h:36
bool ignoreLoadingErrors
Ignore loading errors.
Definition: options.h:51
std::string commentFile
Comment file.
Definition: options.h:45
Yuni::CString< 150, false > simulationName
Name of the simulation.
Definition: options.h:43
Yuni::CString< 32, false > simplexOptimRange
Simplex optimizatio range.
Definition: options.h:48
bool tsGeneratorsOnly
Run the TS generator only.
Definition: options.h:56
bool noOutput
True to disable the writing in the output folder.
Definition: options.h:59
bool displayProgression
Progression.
Definition: options.h:61
YString studyFolder
Where is my study.
Definition: options.h:41
bool ignoreConstraints
Ignore constraints.
Definition: options.h:53