Skip to content

Feature/reserve model lot3 scalian#2575

Draft
h-fournier wants to merge 482 commits intodevelopfrom
feature/reserve_model_lot3_scalian
Draft

Feature/reserve model lot3 scalian#2575
h-fournier wants to merge 482 commits intodevelopfrom
feature/reserve_model_lot3_scalian

Conversation

@h-fournier
Copy link
Copy Markdown
Collaborator

@h-fournier h-fournier commented Jan 13, 2025

Add the reserves to the simulator.
Thermal clusters, Short term storage and Long Term storage can participate to the reserves

From @guilpier-code (reviewer) :
Have in mind that Antares Simulator is a legacy code.
It contains very poor historic code that we try to improve any time we can.
So Antares Simulator team can ask for better code quality where the surrounding code is poor.
You're not supposed to know that (something should have been done to inform Scalian sooner).

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 4, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
9.4% Coverage on New Code (required ≥ 60%)
18.4% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

1 similar comment
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
9.4% Coverage on New Code (required ≥ 60%)
18.4% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Comment thread src/libs/antares/study/include/antares/study/parameters.h Outdated
Comment thread src/solver/variable/CMakeLists.txt Outdated
Comment thread .github/workflows/windows-vcpkg.yml.orig Outdated
Comment thread src/antares-deps Outdated
Comment thread src/libs/antares/study/area/list.cpp
Comment thread src/libs/antares/study/include/antares/study/area/capacityReservation.h Outdated
Comment thread src/libs/antares/study/area/list.cpp Outdated
Comment thread src/libs/antares/study/area/list.cpp Outdated
Comment thread src/libs/antares/study/area/list.cpp Outdated
@JasonMarechal25
Copy link
Copy Markdown
Contributor

Hello. I've started to review this PR. I haven't read every thing yet.
My comment are often more on the "form" than the "matter".
One of the important point I would raise is the lack of unit testing.

Most of the comments are more on the "let's try to do it another way that I feel may be better" side rather than "I commend to do this". Feel free to challenge them or reach out directly for any question or discussion

Comment thread src/libs/antares/study/parts/short-term-storage/container.cpp.orig Outdated
Comment thread .github/workflows/windows-vcpkg.yml.orig Outdated
Comment thread .gitmodules
url = https://github.com/AntaresSimulatorTeam/Antares_Simulator_Tests_NR.git
branch = main
ignore = dirty
url = https://github.com/sylvmara/Antares_Simulator_Tests_NR.git
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not forget to revert this file.

Comment thread src/antares-deps Outdated
Comment thread src/libs/antares/study/parts/common/cluster.cpp Outdated
Comment thread src/libs/antares/utils/utils.cpp Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above : please revert this change on sub module.

Comment thread src/tests/cucumber/features/steps/common_steps/solver_steps.py.orig Outdated
Comment thread src/tests/cucumber/features/steps/common_steps/solver_input_handler.py.orig Outdated
Comment thread src/libs/antares/study/include/antares/study/parameters.h Outdated
Comment thread src/libs/antares/study/include/antares/study/parameters.h Outdated
Comment thread src/libs/antares/study/area/list.cpp Outdated
Comment thread src/libs/antares/study/include/antares/study/area/capacityReservation.h Outdated
Comment thread src/libs/antares/study/include/antares/study/area/capacityReservation.h Outdated
Comment thread src/libs/antares/study/include/antares/study/area/capacityReservation.h Outdated
Comment thread src/libs/antares/study/include/antares/study/area/capacityReservation.h Outdated
Comment thread src/libs/antares/study/include/antares/study/fwd.h Outdated
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
43.8% Coverage on New Code (required ≥ 60%)
18.1% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link
Copy Markdown
Member

@flomnes flomnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utiliser Type* plutôt que std::optional<std::reference_wrapper<Type>>

@pull-request-size
Copy link
Copy Markdown

This PR is too big. Please break it up into smaller PRs.

@flomnes flomnes self-requested a review October 2, 2025 15:36
Copy link
Copy Markdown
Member

@flomnes flomnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is extremely large (15k+ lines of code) and has very few unit tests

Comment thread src/libs/antares/reservesParsing/CMakeLists.txt Outdated
Comment thread src/libs/antares/study/CMakeLists.txt Outdated
Comment thread src/libs/antares/reservesParsing/CMakeLists.txt Outdated
Comment thread src/libs/antares/study/area/list.cpp Outdated
Comment thread src/libs/antares/study/area/list.cpp Outdated
Comment thread src/solver/variable/include/antares/solver/variable/area.hxx Outdated
Comment thread src/solver/variable/include/antares/solver/variable/economy/overallCost.h Outdated
Comment thread src/solver/variable/include/antares/solver/variable/economy/overallCost.h Outdated
Comment thread src/solver/variable/state.cpp Outdated
Comment thread src/libs/antares/study/include/antares/study/area/reserveParticipationTraits.h Outdated
Comment thread src/solver/optimisation/ProblemMatrixEssential.cpp Outdated
h-fournier and others added 20 commits January 20, 2026 15:10
- Fix issue on ReserveParticipation MARG.COST with the name
- Fix issue with the ST group (duplicated groupName in the data structures)
- Add columns to see EXP, std, min and max values for each output
- Rework  VCardReserveParticipationBase class with default values and add the possibility to output EXP, std, min, max or just EXP
- Clean some functions related to the outputs
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Delete the derived() functions and change the functions to static
functions
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants