-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalize simulation mode Expansion, fix logs #1771
Conversation
Just a note. If user set xpansion mode "accurate" we use "expansion" in simulator, else "economy" |
//! Expansion | ||
stdmExpansion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily for that PR, but should we rename it something more generic, like "ProblemsGeneration" ? I don't know enough the specifics of this mode to find an appropriate name though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this may be renamed
@@ -110,8 +110,7 @@ bool runWeeklyOptimization(const OptimizationOptions& options, | |||
writer)) | |||
return false; | |||
|
|||
if (problemeHebdo->ExportMPS != Data::mpsExportStatus::NO_EXPORT | |||
|| problemeHebdo->Expansion) | |||
if (problemeHebdo->ExportMPS != Data::mpsExportStatus::NO_EXPORT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SimulationMode shouldn't be checked also ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is the goal of this PR. To de-correlate the MPS export & the simulation mode
Kudos, SonarCloud Quality Gate passed! |
* Fix expansion logs, clean up & refactor * Use enum class SimulationMode instead of enum StudyMode * Do not force MPS export when Expansion mode is enabled
Goal of this PR
The goal of this PR is to normalize mode Expansion. Until now, it was a sort of hack for antares-xpansion.
Simulation mode Expansion is Economy, but with a single optimization instead of 2 optimizations + thermal heuristic for Economy / Adequacy.
Functional changes
synthesis
, with suffix "exp" for the output directory (e.g 20231117-0931exp)Technical changes
Parameters::mode = stdmExpansion
(renamedSimulationMode::Expansion
)enum class
("scoped enum") instead of C-styleenum
. RemovestdmMax
bool Parameters::expansion
xpansion.h
and constantSTUDY_MODE_EXPANSION
switch..case
TODO
Generates tests results for new studies in mode expansion
AntaresSimulatorTeam/Antares_Simulator_Tests_NR#10