Skip to content

Marmot melting pot: Marmot multithreading, p0RespectsConstraints in ICSImporter, LazyNetwork closing in Marmot#1688

Draft
Godelaine wants to merge 69 commits intomainfrom
idcc/debug
Draft

Marmot melting pot: Marmot multithreading, p0RespectsConstraints in ICSImporter, LazyNetwork closing in Marmot#1688
Godelaine wants to merge 69 commits intomainfrom
idcc/debug

Conversation

@Godelaine
Copy link
Copy Markdown
Collaborator

@Godelaine Godelaine commented Apr 9, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

  • Fixes handling of LazyNetwork in Marmot : to prevent memory issues, networks need to be closed regularly to avoid having too many networks in memory
  • IcsImporter : p0RespectsConstraints feature : now, only generators respecting implemented constraints in the GeneratorFiller are imported. Gradients are now only checked when p0 above pMin.
  • Multithreading in MARMOT : many steps in Marmot are now multithreaded, from indepedant topological optimizations to input creation for linear problem in Marmot to sensi computations on different timestamps.

What is the current behavior?

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

LazyNetwork now implement AutoClosable to manipulate networks in try-with-resources contexts. When the network has been used it is automatically closed.

RoxaneChen02 and others added 30 commits March 17, 2026 17:55
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
# Conflicts:
#	data/crac/crac-util/pom.xml
#	data/crac/crac-util/src/main/java/com/powsybl/openrao/data/crac/util/IcsImporter.java
#	data/crac/crac-util/src/test/java/com/powsybl/openrao/data/crac/util/IcsImporterTest.java
#	tests/src/test/java/com/powsybl/openrao/tests/steps/TimeCoupledRaoSteps.java
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
RoxaneChen02 and others added 24 commits April 2, 2026 11:19
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
# Conflicts:
#	data/crac/crac-util/src/main/java/com/powsybl/openrao/data/crac/util/IcsImporter.java
#	data/crac/crac-util/src/test/java/com/powsybl/openrao/data/crac/util/IcsImporterTest.java
#	data/ics-importer/src/test/resources/crac/crac-0230.json
#	data/ics-importer/src/test/resources/crac/crac-0330.json
#	data/ics-importer/src/test/resources/crac/crac-0430.json
#	data/ics-importer/src/test/resources/crac/crac-0530.json
#	data/ics-importer/src/test/resources/crac/crac-0630.json
#	data/ics-importer/src/test/resources/crac/crac-0730.json
#	data/ics-importer/src/test/resources/ics/static.csv
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
# Conflicts:
#	data/crac/crac-util/src/main/java/com/powsybl/openrao/data/crac/util/IcsImporter.java
#	data/crac/crac-util/src/test/java/com/powsybl/openrao/data/crac/util/IcsImporterTest.java
#	data/ics-importer/src/main/java/com/powsybl/openrao/data/icsimporter/IcsData.java
#	data/ics-importer/src/main/java/com/powsybl/openrao/data/icsimporter/IcsDataImporter.java
#	data/ics-importer/src/main/java/com/powsybl/openrao/data/icsimporter/IcsUtil.java
#	data/ics-importer/src/test/java/com/powsybl/openrao/data/icsimporter/IcsDataImporterTest.java
#	data/ics-importer/src/test/java/com/powsybl/openrao/data/icsimporter/IcsDataTest.java
#	data/ics-importer/src/test/resources/ics/static.csv
#	data/ics-importer/src/test/resources/ics/static_with_two_ra.csv
#	data/ics-importer/src/test/resources/ics/static_with_two_ra_wrong_node.csv
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
…+ small fixes

# Conflicts:
#	data/crac/crac-util/src/main/java/com/powsybl/openrao/data/crac/util/IcsImporter.java
#	data/crac/crac-util/src/test/java/com/powsybl/openrao/data/crac/util/IcsImporterTest.java
#	ra-optimisation/rao-api/src/main/java/com/powsybl/openrao/raoapi/LazyNetwork.java
#	ra-optimisation/search-tree-rao/src/main/java/com/powsybl/openrao/searchtreerao/marmot/Marmot.java
#	ra-optimisation/search-tree-rao/src/main/java/com/powsybl/openrao/searchtreerao/marmot/MarmotUtils.java
#	tests/src/test/java/com/powsybl/openrao/tests/steps/TimeCoupledRaoSteps.java
@Godelaine Godelaine changed the title Idcc/debug Marmot melting pot: Marmot multithreading, p0RespectsConstraints in ICSImporter, LazyNetwork closing in Marmot Apr 13, 2026
Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com>
@sonarqubecloud
Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants