26 #include <yuni/core/string.h>
28 #include <antares/inifile/inifile.h>
29 #include <antares/study/fwd.h>
30 #include "antares/exception/LoadingError.hpp"
32 namespace Antares::Error
54 namespace Antares::Data::AdequacyPatch
57 const double defaultThresholdToRunCurtailmentSharing = 0.0;
59 const double defaultThresholdDisplayLocalMatchingRuleViolations = 0.0;
61 const int defaultValueThresholdVarBoundsRelaxation = 3;
66 enum AdequacyPatchMode
71 physicalAreaOutsideAdqPatch = 1,
73 physicalAreaInsideAdqPatch = 2
79 enum class AdqPatchPTO
104 bool updateFromKeyValue(
const Yuni::String& key,
const Yuni::String& value);
110 void resetThresholds();
123 bool redispatch =
false;
128 void addExcludedVariables(std::vector<std::string>&)
const;
129 bool updateFromKeyValue(
const Yuni::String& key,
const Yuni::String& value);
130 void saveToINI(
IniFile& ini)
const;
131 bool checkAdqPatchParams(
const SimulationMode simulationMode,
133 const bool includeHurdleCostParameters)
const;
135 void checkAdqPatchSimulationModeEconomyOnly(
const SimulationMode simulationMode)
const;
137 void checkAdqPatchIncludeHurdleCost(
const bool includeHurdleCost)
const;
Definition: adq-patch-params.h:89
AdqPatchPTO priceTakingOrder
PTO (Price Taking Order) for adequacy patch. User can choose between DENS and Load.
Definition: adq-patch-params.h:92
double thresholdDisplayViolations
Threshold to display Local Matching Rule violations.
Definition: adq-patch-params.h:96
int thresholdVarBoundsRelaxation
CSR Variables relaxation threshold.
Definition: adq-patch-params.h:98
bool includeHurdleCost
Include hurdle cost in CSR cost function.
Definition: adq-patch-params.h:100
bool checkCsrCostFunction
Check CSR cost function prior & after CSR optimization.
Definition: adq-patch-params.h:102
double thresholdRun
Threshold to initiate curtailment sharing rule.
Definition: adq-patch-params.h:94
A list of areas.
Definition: area.h:365
Definition: adq-patch-params.h:41
Definition: adq-patch-params.h:47
Definition: LoadingError.hpp:30
Definition: adq-patch-params.h:35
A single section, with all its keys.
Definition: inifile.h:67
Data for an INI file.
Definition: inifile.h:34
Definition: adq-patch-params.h:114
bool setToZeroOutsideInsideLinks
Definition: adq-patch-params.h:119