-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 16 additions & 38 deletions
54
src/solver/optimisation/adequacy_patch_csr/adq_patch_post_process_list.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,35 @@ | ||
#include "adq_patch_post_process_list.h" | ||
#include "../post_process_commands.h" | ||
|
||
|
||
namespace Antares::Solver::Simulation | ||
{ | ||
|
||
AdqPatchPostProcessList::AdqPatchPostProcessList(const AdqPatchParams& adqPatchParams, | ||
PROBLEME_HEBDO* problemeHebdo, | ||
uint thread_number, | ||
AreaList& areas, | ||
SheddingPolicy sheddingPolicy, | ||
SimplexOptimization splxOptimization, | ||
Calendar& calendar) | ||
: interfacePostProcessList(problemeHebdo, thread_number) | ||
Calendar& calendar) : | ||
interfacePostProcessList(problemeHebdo, thread_number) | ||
{ | ||
post_process_list.push_back(std::make_unique<DispatchableMarginPostProcessCmd>( | ||
problemeHebdo_, | ||
thread_number_, | ||
areas)); | ||
post_process_list.push_back( | ||
std::make_unique<DispatchableMarginPostProcessCmd>(problemeHebdo_, thread_number_, areas)); | ||
// Here a post process particular to adq patch | ||
post_process_list.push_back(std::make_unique<CurtailmentSharingPostProcessCmd>( | ||
adqPatchParams, | ||
problemeHebdo_, | ||
areas, | ||
thread_number_)); | ||
post_process_list.push_back(std::make_unique<HydroLevelsUpdatePostProcessCmd>( | ||
problemeHebdo_, | ||
areas, | ||
false, | ||
false)); | ||
adqPatchParams, problemeHebdo_, areas, thread_number_)); | ||
post_process_list.push_back( | ||
std::make_unique<HydroLevelsUpdatePostProcessCmd>(problemeHebdo_, areas, false, false)); | ||
post_process_list.push_back(std::make_unique<RemixHydroPostProcessCmd>( | ||
problemeHebdo_, | ||
areas, | ||
sheddingPolicy, | ||
splxOptimization, | ||
thread_number)); | ||
problemeHebdo_, areas, sheddingPolicy, splxOptimization, thread_number)); | ||
// Here a post process particular to adq patch | ||
post_process_list.push_back(std::make_unique<DTGmarginForAdqPatchPostProcessCmd>( | ||
problemeHebdo_, | ||
areas, | ||
thread_number)); | ||
post_process_list.push_back(std::make_unique<HydroLevelsUpdatePostProcessCmd>( | ||
problemeHebdo_, | ||
areas, | ||
true, | ||
false)); | ||
post_process_list.push_back(std::make_unique<InterpolateWaterValuePostProcessCmd>( | ||
problemeHebdo_, | ||
areas, | ||
calendar)); | ||
post_process_list.push_back(std::make_unique<HydroLevelsFinalUpdatePostProcessCmd>( | ||
problemeHebdo_, | ||
areas)); | ||
adqPatchParams, problemeHebdo_, areas, thread_number)); | ||
post_process_list.push_back( | ||
std::make_unique<HydroLevelsUpdatePostProcessCmd>(problemeHebdo_, areas, true, false)); | ||
post_process_list.push_back( | ||
std::make_unique<InterpolateWaterValuePostProcessCmd>(problemeHebdo_, areas, calendar)); | ||
post_process_list.push_back( | ||
std::make_unique<HydroLevelsFinalUpdatePostProcessCmd>(problemeHebdo_, areas)); | ||
} | ||
|
||
} // namespace Antares::Solver::Simulation | ||
} // namespace Antares::Solver::Simulation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters