Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
UnfeasibleProblemBehavior.hpp
1/*
2** Copyright 2007-2023 RTE
3** Authors: Antares_Simulator Team
4**
5** This file is part of Antares_Simulator.
6**
7** Antares_Simulator is free software: you can redistribute it and/or modify
8** it under the terms of the Mozilla Public Licence 2.0 as published by
9** the Mozilla Foundation, either version 2 of the License, or
10** (at your option) any later version.
11**
12** There are special exceptions to the terms and conditions of the
13** license as they are applied to this software. View the full text of
14** the exceptions in file COPYING.txt in the directory of this software
15** distribution
16**
17** Antares_Simulator is distributed in the hope that it will be useful,
18** but WITHOUT ANY WARRANTY; without even the implied warranty of
19** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20** Mozilla Public Licence 2.0 for more details.
21**
22** You should have received a copy of the Mozilla Public Licence 2.0
23** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
24**
25** SPDX-License-Identifier: MPL-2.0
26*/
27
28#ifndef ANTARES_DATA_UNFEASIBLEPROBLEMHAVIOR_HPP
29#define ANTARES_DATA_UNFEASIBLEPROBLEMHAVIOR_HPP
30
31namespace Antares
32{
33namespace Data
34{
36enum class UnfeasibleProblemBehavior : unsigned char
37{
38 WARNING_DRY,
39 WARNING_MPS,
40 ERROR_DRY,
41 ERROR_MPS
42};
43
50const char* getIcon(const UnfeasibleProblemBehavior& unfeasibleProblemBehavior);
51
58std::string getDisplayName(const UnfeasibleProblemBehavior& unfeasibleProblemBehavior);
59
66bool exportMPS(const UnfeasibleProblemBehavior& unfeasibleProblemBehavior);
67
74bool stopSimulation(const UnfeasibleProblemBehavior& unfeasibleProblemBehavior);
75
76} // namespace Data
77
78} // namespace Antares
79
80#endif // ANTARES_DATA_UNFEASIBLEPROBLEMHAVIOR_HPP