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

Adding constraints on injection-witdrawal cumulation with constant RHS [ANT-1885] #2535

Conversation

a-zakir
Copy link
Contributor

@a-zakir a-zakir commented Dec 16, 2024

This pull request introduces new functionality for handling additional constraints in the short-term storage component of the Antares Simulator. The changes include adding new files, modifying existing classes to support the new constraints, and updating the build configuration to include the new files. Below are the most important changes:

New Functionality for Additional Constraints

Modifications to Existing Classes

  • Updated STStorageCluster to include a vector of AdditionalConstraint objects and added necessary methods to handle these constraints. (src/libs/antares/study/include/antares/study/parts/short-term-storage/cluster.h, src/libs/antares/study/include/antares/study/parts/short-term-storage/cluster.hR39-R54)
  • Modified STStorageInput to load constraints from an INI file and calculate the cumulative constraint count. (src/libs/antares/study/include/antares/study/parts/short-term-storage/container.h, [1]; src/libs/antares/study/parts/short-term-storage/container.cpp, [2] [3]

Build Configuration Updates

  • Updated CMakeLists.txt to include new header and source files for additional constraints. (src/libs/antares/study/CMakeLists.txt, [1]; src/solver/optimisation/CMakeLists.txt, [2]

Solver Integration

  • Integrated the handling of additional constraints into the solver's optimization process by adding new methods and including the necessary headers. (src/solver/optimisation/constraints/Group1.cpp, [1] [2] [3] [4]

Runtime Information

  • Enhanced StudyRuntimeInfos to include cumulative constraint counts for short-term storage. (src/libs/antares/study/runtime/runtime.h, [1]; src/libs/antares/study/runtime/runtime.cpp, [2] [3]

These changes collectively add support for additional constraints in the short-term storage component, ensuring they are loaded, validated, and integrated into the simulation and optimization processes.

@flomnes flomnes changed the title [Ant-1885 ] adding constraints on injection-witdrawal cumulation Adding constraints on injection-witdrawal cumulation [ANT-1885] Dec 16, 2024
@flomnes flomnes changed the title Adding constraints on injection-witdrawal cumulation [ANT-1885] Adding constraints on injection-witdrawal cumulation with constant RHS [ANT-1885] Dec 19, 2024
@flomnes flomnes merged commit 5b14f61 into develop Dec 19, 2024
10 checks passed
@flomnes flomnes deleted the feature/ANT-1885-Contraintes-sur-des-cumuls-d-injections-et-ou-de-soutirage branch December 19, 2024 13:36
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.

2 participants