Skip to content
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

Hydro final lvl (CR 25) to merge in develop [ANT-1084] #1521

Merged
merged 584 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
584 commits
Select commit Hold shift + click to select a range
b4ad703
make solveCSR private method
Milos-RTEi Aug 24, 2022
c865631
use auto instead of std::unique_ptr<PROBLEME_POINT_INTERIEUR>
Milos-RTEi Aug 24, 2022
20d0bd3
float->double
Milos-RTEi Aug 24, 2022
0164441
remove saveIntermediateResults
Milos-RTEi Aug 24, 2022
a5e6bd7
Merge pull request #70 from rte-i/feature/issue66-update
Milos-RTEi Aug 24, 2022
24981ce
Merge pull request #69 from rte-i/feature/issue66-update
Milos-RTEi Aug 24, 2022
d49872e
Merge pull request #825 from rte-i/feature/issue66-milos
flomnes Aug 24, 2022
13dfa74
code smells parameters.cpp
Milos-RTEi Aug 25, 2022
e90b8a0
critical-CodeSmell-adequacy_patch.cpp
Milos-RTEi Aug 25, 2022
3bfd490
critical-codeSmells- set_problem_cost.cpp
Milos-RTEi Aug 25, 2022
98363bc
info-CodeSmell - remove todo-s
Milos-RTEi Aug 25, 2022
9601788
CodeSmells - global var should be const
Milos-RTEi Aug 25, 2022
f9d0d2c
NULL->nullptr
Milos-RTEi Aug 25, 2022
9516295
use default destructor
Milos-RTEi Aug 25, 2022
0a39ad3
protected->private in adq-patch-area-grid.h
Milos-RTEi Aug 25, 2022
f21aa54
use default constructor in adequacy-patch-areas
Milos-RTEi Aug 25, 2022
f10f145
Add the "explicit" keyword to AdequacyPatchAreas constructor
Milos-RTEi Aug 25, 2022
a6f7980
NULL->nullptr in adequacy-patch-options.cpp
Milos-RTEi Aug 25, 2022
76bf599
= default, AdequacyPatchOptions
Milos-RTEi Aug 25, 2022
f56b69a
Add the "explicit" keyword to AdequacyPatchOptions constructor
Milos-RTEi Aug 25, 2022
2760657
Remove these useless parentheses
Milos-RTEi Aug 25, 2022
f560f72
Remove these useless parentheses
Milos-RTEi Aug 25, 2022
aecaa1f
Remove the unused parameter "weekNb",
Milos-RTEi Aug 25, 2022
122e005
Move these 4 #include directives to the top of the file
Milos-RTEi Aug 25, 2022
606a77b
declaration shadows a local variable
Milos-RTEi Aug 25, 2022
d7865c2
Value stored to 'ProblemeAResoudre' is never read
Milos-RTEi Aug 25, 2022
f334819
function should be declared "const"
Milos-RTEi Aug 25, 2022
f4ac2b9
Use "std::make_unique" to construct "std::unique_ptr
Milos-RTEi Aug 25, 2022
82b419c
Value stored to 'out' during its initialization is never read
Milos-RTEi Aug 25, 2022
49a68ec
major-CodeSmells-adequacy-patch-options.cpp
Milos-RTEi Aug 25, 2022
6dc2b06
remove "never read" variables
Milos-RTEi Aug 25, 2022
8f9f97f
const& buttonType in updateButton
Milos-RTEi Aug 25, 2022
df33116
Replace this "enum" with "enum class" AdqPatchPTO
Milos-RTEi Aug 25, 2022
d7a14c7
double*->const double* in addArray
Milos-RTEi Aug 25, 2022
3b2294c
MinorCodeSmell-s construct_LHS
Milos-RTEi Aug 25, 2022
a1ded06
MinorCodeSmell-s construct_RHS
Milos-RTEi Aug 25, 2022
7f76dfb
MinorCodeSmell-s construct_variables
Milos-RTEi Aug 25, 2022
4a4bd4d
MinorCodeSmell-s cost_function
Milos-RTEi Aug 25, 2022
3c47ac1
MinorCodeSmell-s set_var_bounds
Milos-RTEi Aug 25, 2022
9b386d5
MinorCodeSmell-s solve_problem
Milos-RTEi Aug 25, 2022
4ea6acd
MinorCodeSmell-s economy.cpp
Milos-RTEi Aug 25, 2022
53bc663
Remove redundant public access specifier
Milos-RTEi Aug 25, 2022
2d8945f
Remove this redundant access specifier
Milos-RTEi Aug 25, 2022
91761da
MinorCodeSmell-s adq-patch-unit-tests
Milos-RTEi Aug 25, 2022
a250900
Concatenate namespace with the nested ones.
Milos-RTEi Aug 25, 2022
25e193d
Use "override" or "final" instead of "virtual".
Milos-RTEi Aug 25, 2022
368f562
Remove public redundant access specifier;
Milos-RTEi Aug 25, 2022
2485781
MinorCodeSmell-s adequacy-patch-areas.h
Milos-RTEi Aug 25, 2022
32de160
Concatenate namespace with the nested ones.
Milos-RTEi Aug 25, 2022
c57dc15
Make the type of auto& study ; a reference-to-const
Milos-RTEi Aug 25, 2022
c2c2e0e
MinorCodeSmell-s AdequacyPatchOptions
Milos-RTEi Aug 25, 2022
3a59b5d
"not"-> "!" , "and"-> "&&"
Milos-RTEi Aug 25, 2022
2dbf3c9
Merge pull request #837 from rte-i/feature/code-smells-csr
Milos-RTEi Aug 26, 2022
7739155
Add adequacy-patch CSR study format changes (#817)
flomnes Aug 26, 2022
a224992
beta 7
Milos-RTEi Aug 29, 2022
81770f9
create GUI for csr var relax button
Milos-RTEi Aug 29, 2022
3dc576e
connect GUI to logic
Milos-RTEi Aug 29, 2022
10190fe
threshold e-3 >e-5
Milos-RTEi Aug 29, 2022
b003278
Merge pull request #842 from rte-i/feature/request-from-elia-for-csr-…
Milos-RTEi Aug 29, 2022
95086f0
fix (GUI wont pass smaller than 10^-6)
Milos-RTEi Aug 30, 2022
e6df7cc
Merge pull request #846 from rte-i/feature/request-from-elia-for-csr-…
Milos-RTEi Aug 30, 2022
a2ca705
Value stored to 'PaliersThermiquesDuPays' is never read
Milos-RTEi Aug 30, 2022
74cd7eb
"std::string" -> "std::string_view"
Milos-RTEi Aug 30, 2022
f55e7ba
make getHoursRequiringCurtailmentSharing const method
Milos-RTEi Aug 30, 2022
9e264f6
remove unused var
Milos-RTEi Aug 30, 2022
c1cbcb7
assign ProblemeAResoudre properly
Milos-RTEi Aug 30, 2022
fc22981
Merge pull request #847 from rte-i/feature/code-smells-csr
Milos-RTEi Aug 30, 2022
6c84b4d
Merge pull request #71 from rte-i/feature/code-smells-csr
Milos-RTEi Oct 10, 2022
75a139b
Merge pull request #77 from rte-i/feature/request-from-elia-for-csr-r…
Milos-RTEi Oct 10, 2022
60013ea
Reporting of DENS_new in GUI result for all hours
Milos-RTEi Oct 19, 2022
ec95e91
Check CSR cost-fun-value prior&after CSR-opt - GUI
Milos-RTEi Oct 19, 2022
2079685
refacto due to pre-calculating dens_new for all hours prior to csr optim
Milos-RTEi Oct 19, 2022
6a52615
add "SpilledenergyAfterCSR" column
Milos-RTEi Oct 20, 2022
3081114
TODO: densNewValues
Milos-RTEi Oct 20, 2022
f6715ac
Correction of MRG.PRICE Price Cap in hours LOLE>0.5 after CSR
Milos-RTEi Oct 20, 2022
ab1f291
refacto "DENS_new" parameter calc, same thing at the end!?
Milos-RTEi Oct 20, 2022
c82dac3
add DTG. MRG INT/FIN columns to GUI
Milos-RTEi Oct 21, 2022
806710c
copy-paste spilled Energy values into spilled Energy values after CSR…
Milos-RTEi Oct 21, 2022
161e8c6
Check CSR cost value prior to and after - UNTESTED
Milos-RTEi Oct 25, 2022
7b6f348
refacto on DTG MRG CSR columns GUI
Milos-RTEi Oct 26, 2022
ca5824f
change log to info in "Check CSR cost value"
Milos-RTEi Oct 26, 2022
d26f987
test implementation csr fun cost prior/after
Milos-RTEi Oct 26, 2022
e76202c
refacto LMR violations according to the agreement with Daniel + clean
Milos-RTEi Oct 27, 2022
94bfe5a
csr-postProcess - adjust ENS value and calc dtgMrgCsr
Milos-RTEi Oct 31, 2022
c1a4d05
small refacto
Milos-RTEi Oct 31, 2022
4ec4939
refacto - adjust mrgPrice after caclulating dtgMrgCsr and new Ens
Milos-RTEi Nov 1, 2022
4f992f5
log update
Milos-RTEi Nov 1, 2022
48e1888
refacto setToZeroIfBelowThreshold
Milos-RTEi Nov 1, 2022
aab53fb
update/refacto log csr-solver
Milos-RTEi Nov 1, 2022
593de28
refacto logs @ solve_problem.cpp
Milos-RTEi Nov 2, 2022
283b7a6
typo
Milos-RTEi Nov 2, 2022
1ce0a65
beta7 -> beta8
Milos-RTEi Nov 3, 2022
3a7c5ab
Merge pull request #931 from rte-i/feature/adq-patch-sequel
Milos-RTEi Nov 3, 2022
45baf97
add prefix [adq-patch] to info logs
Milos-RTEi Nov 3, 2022
8da034e
Merge pull request #933 from rte-i/feature/adq-patch-sequel
Milos-RTEi Nov 3, 2022
8369d65
move adqPatchPostProcess after HydroRemix
Milos-RTEi Nov 9, 2022
4edb924
refactor + change - storeOrDisregardInteriorPointResults
Milos-RTEi Nov 16, 2022
424b882
beta 9.1
Milos-RTEi Nov 16, 2022
af435f6
Merge pull request #953 from rte-i/feature/adq-patch-sequel
Milos-RTEi Nov 16, 2022
b386013
refactor solveCSR
Milos-RTEi Nov 17, 2022
87a4e5b
add "- dtgMrg" to densNew formula
Milos-RTEi Nov 17, 2022
8a8ab74
beta 10
Milos-RTEi Nov 17, 2022
993b8c0
Merge pull request #955 from rte-i/feature/adq-patch-sequel
Milos-RTEi Nov 17, 2022
9f875e9
Merge branch 'develop' into feature/adq-patch-sequel
Milos-RTEi Nov 21, 2022
2ea5968
fix error
Milos-RTEi Nov 21, 2022
1b7fc2f
update 13-file-format.md for adq-patch CSR
Milos-RTEi Nov 22, 2022
728163e
update 14-adequacy-patch.md for adq-patch CSR
Milos-RTEi Nov 22, 2022
2b14a8e
change CSR objective function (Elia)
Milos-RTEi Dec 1, 2022
95aefb1
change CSR objective function (Elia) - doc update
Milos-RTEi Dec 1, 2022
12323a8
beta11
Milos-RTEi Dec 1, 2022
ca162fa
change CSR objective function (Elia) - doc update
Milos-RTEi Dec 1, 2022
6aa0567
Merge branch 'feature/do-not-merge-csr-generate-executables' into fea…
Milos-RTEi Dec 5, 2022
3930023
14-adq-patch-doc-bug fix (unrecognized characters)
Milos-RTEi Dec 5, 2022
ec1ab89
14-adq-patch-doc-bug fix (unrecognized characters)-2
Milos-RTEi Dec 6, 2022
84984f5
Merge branch 'feature/adq-patch-sequel' into develop
Milos-RTEi Dec 7, 2022
3b927bd
Revert "Merge branch 'feature/adq-patch-sequel' into develop"
Milos-RTEi Dec 7, 2022
aabe00a
Merge branch 'AntaresSimulatorTeam:develop' into develop
Milos-RTEi Dec 7, 2022
c121c34
Merge branch 'AntaresSimulatorTeam:develop' into develop
Milos-RTEi Feb 2, 2023
2e9be14
Merge branch 'AntaresSimulatorTeam:develop' into develop
Milos-RTEi Feb 20, 2023
5e31059
UI "Hydro Levels" -> "Hydro Initial Levels"
Milos-RTEi Feb 13, 2023
c2a1424
UI Hydro Final Levels
Milos-RTEi Feb 13, 2023
b8cb4b7
UI Hydro Final Levels - Structures
Milos-RTEi Feb 13, 2023
4e71a8d
UI Hydro Final Levels - Structures - fix
Milos-RTEi Feb 14, 2023
2145eff
pre-checks moved to solver.hxx
Milos-RTEi Feb 16, 2023
c77e318
fix - SP TimeSeries are in MWh (energy) not MW (power)
Milos-RTEi Feb 18, 2023
a0de74d
prepare deltaReservoirLevel
Milos-RTEi Feb 19, 2023
4559338
pre-check fix
Milos-RTEi Feb 19, 2023
ed543af
fix-error-std::
Milos-RTEi Feb 20, 2023
0e279c0
enum FinalReservoirLevelMode
Milos-RTEi Feb 27, 2023
1dc8141
FinalReservoirLevelRuntimeData
Milos-RTEi Feb 27, 2023
883a8a8
pre-check update
Milos-RTEi Feb 27, 2023
819b57f
management
Milos-RTEi Feb 27, 2023
c6819f5
monthly.cpp
Milos-RTEi Feb 27, 2023
b33e72f
scenarioHydroLevels -> scenarioInitialHydroLevels
Milos-RTEi Mar 1, 2023
4836260
finalResLevel - initialResLevel = -deltaResLevel
Milos-RTEi Mar 1, 2023
efa1bce
readHydroLevels -> readInitialHydroLevels
Milos-RTEi Mar 1, 2023
ffb2064
hydroLevels -> hydroInitialLevels
Milos-RTEi Mar 1, 2023
d96ee59
val -> finalLevel in Rules::readFinalHydroLevels
Milos-RTEi Mar 1, 2023
2026dbd
change file names for hydro-final-reservoir-level
Milos-RTEi Mar 1, 2023
35061b3
Include Guards -> Pragma Once
Milos-RTEi Mar 1, 2023
807ed15
FRL functions refactor
Milos-RTEi Mar 2, 2023
b680d8d
refactor hydroLevelsData
Milos-RTEi Mar 3, 2023
9040419
refactor FinalReservoirLevel function (++parameters)
Milos-RTEi Mar 3, 2023
e0bf2d6
rename pre-check methods
Milos-RTEi Mar 17, 2023
0f7ce46
update 13-file-format.md
Milos-RTEi Mar 17, 2023
38c5c93
remove UI changes from 13-file-format.md
Milos-RTEi Mar 30, 2023
7c9b700
remove partial year FRL implementation
Milos-RTEi Mar 30, 2023
eac15ed
Merge branch 'develop-new' into final-reservoir-level-cr25-rtei-dev
Milos-RTEi Jun 16, 2023
844f553
fix bug - add new files to CMakeList
Milos-RTEi Jun 16, 2023
9057a36
Merge branch 'develop' into final-reservoir-level-cr25-rtei-dev
Milos-RTEi Jun 16, 2023
eb5057c
Merge branch 'develop' into feature/final-reservoir-level-cr25
Milos-RTEi Jun 20, 2023
4e20ac2
Final reservoir level cr25 rtei dev - sonar cloud smells (#1373)
Milos-RTEi Jun 21, 2023
ede74c4
Additional code smells resolved
nikolaredstork Jun 21, 2023
9cda9d5
Exclude parentheses
nikolaredstork Jun 21, 2023
b20c050
Merge branch 'develop' into feature/final-reservoir-level-cr25
Milos-RTEi Jun 21, 2023
1c8e178
add explanation comments
Milos-RTEi Jun 22, 2023
6b045e0
Date, authors
Milos-RTEi Jun 22, 2023
85e2ae2
move prefix to the constructor of hydroLevelsData
Milos-RTEi Jun 22, 2023
1d7b185
fix hl-hfl bug
Milos-RTEi Jun 22, 2023
c81c69b
Testing final reservoir level functions
nikolaredstork Jul 3, 2023
8067c9f
Testing sc buildr file read
nikolaredstork Jul 3, 2023
1d4832c
Testing sc builder file save
nikolaredstork Jul 3, 2023
130fcba
fix bug + add unit tests for container.h
Milos-RTEi Jul 3, 2023
0969175
unit test fix
Milos-RTEi Jul 3, 2023
52b389c
Bugfix
nikolaredstork Jul 4, 2023
cb10f55
Merge branch 'develop-new' into feature/final-reservoir-level-cr25
Milos-RTEi Jul 4, 2023
bbc8fa2
Memory access violatin fix
nikolaredstork Jul 4, 2023
9e7b115
FinalReservoirLevels class with area ptr
nikolaredstork Jul 27, 2023
a9a56c3
New implementation
nikolaredstork Jul 27, 2023
3e988d8
Function name modification
nikolaredstork Jul 27, 2023
15b840d
saveToINIFilePrefix -> iniFilePrefix renaming
Milos-RTEi Jul 28, 2023
e58cde4
small refactor
Milos-RTEi Jul 28, 2023
a90d154
Move Constructor definition into .cpp file
nikolaredstork Jul 28, 2023
7f66eb6
Refactoring
nikolaredstork Jul 28, 2023
c7decac
Exclude return statement
nikolaredstork Jul 28, 2023
f5afafb
Passing MC year to initialzeData function
nikolaredstork Jul 28, 2023
81df539
refactor:
Milos-RTEi Jul 28, 2023
581c4df
typo
Milos-RTEi Jul 28, 2023
e03c092
typo
Milos-RTEi Jul 28, 2023
24699b8
Merge branch 'develop' into feature/final-reservoir-level-cr25
Milos-RTEi Jul 29, 2023
96c7eb2
fix build fail
Milos-RTEi Jul 29, 2023
55da260
refactor - fix unit tests
Milos-RTEi Jul 29, 2023
53a7180
add areaPtr to unit test-s
Milos-RTEi Jul 29, 2023
46c36e8
New implementation for overriden apply function
nikolaredstork Jul 31, 2023
7cf06f1
typo
nikolaredstork Jul 31, 2023
3cb2a9a
Remove std::shared_ptr around FinalLevelInflowsModifier (#1490)
flomnes Aug 4, 2023
82bc568
rename changeInflows function in HydroManagement
Milos-RTEi Aug 5, 2023
2e9173e
small refactor - due to unit tests
Milos-RTEi Aug 5, 2023
216d951
re-enable unit tests
Milos-RTEi Aug 5, 2023
38be390
refactor test files - fix fails?
Milos-RTEi Aug 6, 2023
050dcaa
Hydro final lvl (CR 25) - try fixes :
guilpier-code Aug 8, 2023
e7e7ae3
Hydro final lvl (CR 25) - try fixes : move a function call
guilpier-code Aug 8, 2023
45f3246
Hydro final lvl (CR 25) - try fixes : only simplify comments
guilpier-code Aug 8, 2023
5a8073b
Hydro final lvl (CR 25) - try fixes : remove variables not needed
guilpier-code Aug 8, 2023
5ad6cdc
Hydro final lvl (CR 25) - try fixes : simplifying and clarifying tests
guilpier-code Aug 8, 2023
4c376ab
Hydro final lvl (CR 25) - try fixes : simplifying and clarifying
guilpier-code Aug 8, 2023
e868602
Hydro final lvl (CR 25) - try fixes : simplifying ?
guilpier-code Aug 8, 2023
f1af30b
Hydro final lvl (CR 25) - try fixes : clarify inflow time series
guilpier-code Aug 9, 2023
2ceaee4
Hydro final lvl (CR 25) - try fixes : clarify inflow time series (par…
guilpier-code Aug 9, 2023
aeea542
Hydro final lvl (CR 25) - try improve : remove unnecessary comments
guilpier-code Aug 9, 2023
0226557
Hydro final lvl (CR 25) - try improvement : better initialization + b…
guilpier-code Aug 9, 2023
83a9ede
Hydro final lvl (CR 25) - try improvement : mainly make data members …
guilpier-code Aug 9, 2023
48713f5
Hydro final lvl (CR 25) - try improvement : try to initialize data wi…
guilpier-code Aug 9, 2023
82d046e
Hydro final lvl (CR 25) - try improvement : class FinalLevelInflowsMo…
guilpier-code Aug 10, 2023
8b85b89
Hydro final lvl (CR 25) - try improvement : remove unused data member
guilpier-code Aug 10, 2023
ffd9f37
Hydro final lvl (CR 25) - try improvement : remove the fillEmpty() me…
guilpier-code Aug 10, 2023
a1d280c
Hydro final lvl (CR 25) - try improvement : mainly remove setters not…
guilpier-code Aug 10, 2023
3f087e4
Hydro final lvl (CR 25) - try improvement : mainly renaming and harml…
guilpier-code Aug 10, 2023
a3514d5
Hydro final lvl (CR 25) - try improvement : remove redondant check
guilpier-code Aug 10, 2023
6238158
Hydro final lvl (CR 25) - try improvement : renaming and splitting fu…
guilpier-code Aug 10, 2023
a18f238
Hydro final lvl (CR 25) - try improvement : mistake correction
guilpier-code Aug 10, 2023
89f340b
Hydro final lvl (CR 25) - try improvement : renaming
guilpier-code Aug 10, 2023
d926f1b
Hydro final lvl (CR 25) - try improvement : add the current year as p…
guilpier-code Aug 10, 2023
db83d09
Hydro final lvl (CR 25) - try improvement : add a new general functio…
guilpier-code Aug 10, 2023
69f5879
Hydro final lvl (CR 25) - try improvement : add a new isApplicable fu…
guilpier-code Aug 10, 2023
ddd00b2
Hydro final lvl (CR 25) - try improvement : a bit of cleaning
guilpier-code Aug 10, 2023
135b751
Hydro final lvl (CR 25) - try improvement : clarifying all unit tests…
guilpier-code Aug 11, 2023
13ea8c5
Hydro final lvl (CR 25) - try improvement : clarify last unit test + …
guilpier-code Aug 11, 2023
6827cb4
[skip ci] Hydro final lvl (CR 25) - try improvement : re-ordering a c…
guilpier-code Aug 11, 2023
46f9948
Hydro final lvl (CR 25) - try improvement : fix a bug
guilpier-code Aug 11, 2023
a12ce37
Hydro final lvl (CR 25) - try improvement : add a new test : when fin…
guilpier-code Aug 11, 2023
31a444c
Hydro final lvl (CR 25) - try improvement : make isActive private, re…
guilpier-code Aug 11, 2023
67ac666
Hydro final lvl (CR 25) - try improvement : correction after review
guilpier-code Aug 17, 2023
3de3bcf
refactor isValidLevel & initialize
Milos-RTEi Aug 17, 2023
d7811fc
make study const
Milos-RTEi Aug 17, 2023
844239f
Merge remote-tracking branch 'remotes/origin/develop' into fix/hydro-…
guilpier-code Aug 17, 2023
07d85d7
Hydro final lvl (CR 25) - try improvement : correction after merge
guilpier-code Aug 17, 2023
a9d99b6
Merge remote-tracking branch 'remotes/origin/fix/hydro-final-levels-c…
guilpier-code Aug 17, 2023
5c297a0
Correcting sub module vcpkg
guilpier-code Aug 17, 2023
a622080
[skip ci] Hydro final lvl (CR 25) - try improvement : very small clea…
guilpier-code Aug 17, 2023
f85c064
Merge remote-tracking branch 'remotes/origin/fix/hydro-final-levels-c…
guilpier-code Aug 17, 2023
63e51d4
Merge remote-tracking branch 'remotes/origin/develop' into fix/hydro-…
guilpier-code Sep 14, 2023
c4a9eaa
Hydro final lvl (CR 25) - try improvement : correction after merge
guilpier-code Sep 14, 2023
ddd1fdc
Update Final reservoir level implementation - cr25 (#1564)
Milos-RTEi Sep 28, 2023
e41284a
Merge remote-tracking branch 'ORIGINAL-RTE/develop' into fix/hydro-fi…
Milos-RTEi Oct 4, 2023
0155f2c
Merge remote-tracking branch 'ORIGINAL-RTE/develop' into fix/hydro-fi…
Milos-RTEi Oct 12, 2023
1132b2b
Merge remote-tracking branch 'ORIGINAL-RTE/develop' into fix/hydro-fi…
Milos-RTEi Oct 27, 2023
d98717c
bug fix - after merge develop
Milos-RTEi Oct 27, 2023
2ca332f
Merge remote-tracking branch 'ORIGINAL-RTE/develop' into fix/hydro-fi…
Milos-RTEi Nov 15, 2023
c073649
remove numspace from changeInflowsToAccommodateFinalLevels
Milos-RTEi Nov 15, 2023
3b8936b
Merge branch 'develop' into fix/hydro-final-levels-cr25--try-fixes
Milos-RTEi Jan 18, 2024
32e540a
fix after merge - tmpDataByArea_ now accepts pointer to Area not area…
Milos-RTEi Jan 18, 2024
24ca859
Merge remote-tracking branch 'remotes/origin/develop' into fix/hydro-…
guilpier-code Apr 10, 2024
90092c3
CR 25 (hydro final level) : correction after merge
guilpier-code Apr 11, 2024
e12eb48
Hydro final levels (CR 25) : corrections and cleaning (#2040)
guilpier-code Jun 7, 2024
b4a41d8
Merge remote-tracking branch 'remotes/origin/develop' into fix/hydro-…
guilpier-code Jun 17, 2024
1b7039a
CR 25 (hydro final level) : correction after merge/update from develop
guilpier-code Jun 17, 2024
904d5a2
Merge branch 'develop' into fix/hydro-final-levels-cr25--try-fixes
guilpier-code Jun 18, 2024
76237a6
CR 25 (hydro final level) : corrections due to review
guilpier-code Jun 18, 2024
9794966
Fixing hydro debug (#2176)
guilpier-code Jun 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/user-guide/04-migration-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ For each thermal cluster, in existing file **input/thermal/clusters/&lt;area&gt;

For each thermal cluster, new files added **input/thermal/series/&lt;area&gt;/&lt;cluster&gt;/CO2Cost.txt** and **input/thermal/series/&lt;area&gt;/&lt;cluster&gt;/fuelCost.txt**. **fuelCost.txt** and **CO2Cost.txt** must either have one column, or the same number of columns as existing file **series.txt** (availability). The number of rows for these new matrices is 8760.

#### Hydro Final Reservoir Level
In the existing file **settings/scenariobuilder.dat**, under **&lt;ruleset&gt;** section following properties added (if final reservoir level specified, different from `init`):
* **hfl,&lt;area&gt;,&lt;year&gt; = &lt;hfl-value&gt;**

### Output
#### Scenarized RHS for binding constraints
Add directory **bindingconstraints** to output directory **ts-numbers**. For every binding constraint group, add a file **ts-numbers/bindingconstraints/&lt;group&gt;.txt** containing the TS numbers used for that group.
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(ANTARES_VERSION_HI 9)
set(ANTARES_VERSION_LO 1)
set(ANTARES_VERSION_REVISION 0)


# Beta release
set(ANTARES_BETA 0)
set(ANTARES_RC 0)
Expand Down
1 change: 1 addition & 0 deletions src/antares-deps
Submodule antares-deps added at 0d6beb
2 changes: 2 additions & 0 deletions src/libs/antares/study/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ set(SRC_STUDY_PART_HYDRO
include/antares/study/parts/hydro/allocation.h
include/antares/study/parts/hydro/allocation.hxx
parts/hydro/allocation.cpp
include/antares/study/parts/hydro/finalLevelValidator.h
parts/hydro/finalLevelValidator.cpp
include/antares/study/parts/hydro/hydromaxtimeseriesreader.h
parts/hydro/hydromaxtimeseriesreader.cpp
)
Expand Down
3 changes: 3 additions & 0 deletions src/libs/antares/study/area/area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ void Area::internalInitialize()
}

Area::Area():
hydro(*this),
reserves(fhrMax, HOURS_PER_YEAR),
miscGen(fhhMax, HOURS_PER_YEAR)
{
internalInitialize();
}

Area::Area(const AnyString& name):
hydro(*this),
reserves(fhrMax, HOURS_PER_YEAR),
miscGen(fhhMax, HOURS_PER_YEAR)
{
Expand All @@ -62,6 +64,7 @@ Area::Area(const AnyString& name):

Area::Area(const AnyString& name, const AnyString& id):

hydro(*this),
reserves(fhrMax, HOURS_PER_YEAR),
miscGen(fhhMax, HOURS_PER_YEAR)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef __ANTARES_LIBS_STUDY_PARTS_HYDRO_CONTAINER_H__
#define __ANTARES_LIBS_STUDY_PARTS_HYDRO_CONTAINER_H__

#include <optional>
#include "../../fwd.h"
#include "allocation.h"
#include "prepro.h"
Expand Down Expand Up @@ -80,7 +81,7 @@ class PartHydro
/*!
** \brief Default Constructor
*/
PartHydro();
PartHydro(const Data::Area& area);
//! Destructor
~PartHydro();

Expand Down Expand Up @@ -165,6 +166,8 @@ class PartHydro
Matrix<double, double> dailyNbHoursAtGenPmax;
Matrix<double, double> dailyNbHoursAtPumpPmax;

std::vector<std::optional<double>> deltaBetweenFinalAndInitialLevels;

private:
static bool checkReservoirLevels(const Study& study);
static bool checkProperties(Study& study);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
** Copyright 2007-2023 RTE
** Authors: Antares_Simulator Team
**
** This file is part of Antares_Simulator.
**
** Antares_Simulator is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** There are special exceptions to the terms and conditions of the
** license as they are applied to this software. View the full text of
** the exceptions in file COPYING.txt in the directory of this software
** distribution
**
** Antares_Simulator is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with Antares_Simulator. If not, see <http://www.gnu.org/licenses/>.
**
** SPDX-License-Identifier: licenceRef-GPL3_WITH_RTE-Exceptions
*/
#pragma once

#include "antares/study/parts/hydro/container.h"

namespace Antares::Data
{
class PartHydro;

class FinalLevelValidator
{
public:
FinalLevelValidator(PartHydro& hydro,
unsigned int areaIndex,
const AreaName areaName,
double initialLevel,
double finalLevel,
const unsigned int year,
const unsigned int lastSimulationDay,
const unsigned int firstMonthOfSimulation);
bool check();
bool finalLevelFineForUse();

private:
bool wasSetInScenarioBuilder();
bool compatibleWithReservoirProperties();
bool skippingFinalLevelUse();
bool checkForInfeasibility();
bool hydroAllocationStartMatchesSimulation() const;
bool isFinalLevelReachable() const;
double calculateTotalInflows() const;
bool isBetweenRuleCurves() const;

// Data from simulation
unsigned int year_ = 0;
unsigned int lastSimulationDay_ = 0;
unsigned int firstMonthOfSimulation_ = 0;

// Data from area
PartHydro& hydro_;
unsigned int areaIndex_;
const AreaName areaName_;
double initialLevel_;
double finalLevel_;

bool finalLevelFineForUse_ = false;
};
} // namespace Antares::Data
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define __LIBS_STUDY_SCENARIO_BUILDER_DATA_HYDRO_LEVELS_H__

#include "scBuilderDataInterface.h"
#include <functional>

namespace Antares
{
Expand All @@ -39,7 +40,10 @@ class hydroLevelsData final: public dataInterface
using MatrixType = Matrix<double>;

public:
// We use default constructor and destructor
// Constructor

hydroLevelsData(const std::string& iniFilePrefix,
std::function<void(Study&, MatrixType&)> applyToTarget);

//! \name Data manupulation
//@{
Expand All @@ -51,7 +55,7 @@ class hydroLevelsData final: public dataInterface
/*!
** \brief Export the data into a mere INI file
*/
void saveToINIFile(const Study& study, Yuni::IO::File::Stream& file) const;
void saveToINIFile(const Study& study, Yuni::IO::File::Stream& file) const override;

/*!
** \brief Assign a single value
Expand All @@ -71,11 +75,15 @@ class hydroLevelsData final: public dataInterface

void set_value(uint x, uint y, double value);

bool apply(Study& study);
bool apply(Study& study) override;

private:
//! Hydro levels overlay (0 if auto)
MatrixType pHydroLevelsRules;
// prefix to be added when calling saveToINIFileHydroLevel
const std::string addToPrefix_;

std::function<void(Study&, MatrixType&)> applyToTarget_;

}; // class hydroLevelsData

Expand Down Expand Up @@ -105,6 +113,16 @@ inline double hydroLevelsData::get_value(uint x, uint y) const
return pHydroLevelsRules.entry[y][x];
}

inline void initLevelApply(Study& study, Matrix<double>& matrix)
{
study.scenarioInitialHydroLevels.copyFrom(matrix);
}

inline void finalLevelApply(Study& study, Matrix<double>& matrix)
{
study.scenarioFinalHydroLevels.copyFrom(matrix);
}

} // namespace ScenarioBuilder
} // namespace Data
} // namespace Antares
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ class Rules final: private Yuni::NonCopyable<Rules>
//! Renewable (array [0..pAreaCount - 1])
std::vector<renewableTSNumberData> renewable;

//! hydro levels
hydroLevelsData hydroLevels;
//! hydro initial levels
hydroLevelsData hydroInitialLevels = {"hl,", initLevelApply};
//! hydro final levels
hydroLevelsData hydroFinalLevels = {"hfl,", finalLevelApply};

// Links NTC
std::vector<ntcTSNumberData> linksNTC;
Expand All @@ -135,7 +137,8 @@ class Rules final: private Yuni::NonCopyable<Rules>
bool readWind(const AreaName::Vector& instrs, String value, bool updaterMode);
bool readHydro(const AreaName::Vector& instrs, String value, bool updaterMode);
bool readSolar(const AreaName::Vector& instrs, String value, bool updaterMode);
bool readHydroLevels(const AreaName::Vector& instrs, String value, bool updaterMode);
bool readInitialHydroLevels(const AreaName::Vector& instrs, String value, bool updaterMode);
bool readFinalHydroLevels(const AreaName::Vector& instrs, String value, bool updaterMode);
bool readLink(const AreaName::Vector& instrs, String value, bool updaterMode);
bool readBindingConstraints(const AreaName::Vector& splitKey, String value);

Expand Down
5 changes: 3 additions & 2 deletions src/libs/antares/study/include/antares/study/study.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,9 @@ class Study: public Yuni::NonCopyable<Study>, public LayerData
ScenarioBuilder::Sets* scenarioRules = nullptr;
//@}

TimeSeries::TS scenarioHydroLevels;

TimeSeries::TS scenarioInitialHydroLevels;
// Hydro Final Levels
TimeSeries::TS scenarioFinalHydroLevels;
/*!
** \brief Runtime informations
**
Expand Down
3 changes: 2 additions & 1 deletion src/libs/antares/study/parts/hydro/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using namespace Yuni;

namespace Antares::Data
{
PartHydro::PartHydro():
PartHydro::PartHydro(const Data::Area& area) :
interDailyBreakdown(0.),
intraDailyModulation(2.),
intermonthlyBreakdown(0),
Expand Down Expand Up @@ -161,6 +161,7 @@ bool PartHydro::LoadFromFolder(Study& study, const AnyString& folder)
area.hydro.initializeReservoirLevelDate = 0;
area.hydro.reservoirCapacity = 0.;
area.hydro.pumpingEfficiency = 1.;
area.hydro.deltaBetweenFinalAndInitialLevels.resize(study.parameters.nbYears);

if (study.header.version >= StudyVersion(9, 1))
{
Expand Down
Loading
Loading