Skip to content

Commit 7515339

Browse files
vbochetRTERoxaneChen02phiedwpet-mitbqth29
authored
[FastRAO] Adapt tests for CI needs (#1482)
* copy paste original file as is * copy paste original file as is * copy paste original file as is + small change to match recent renaming * debug test wip * Fixed cucumber tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add log + fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update code to match main Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix US 19.7 features Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove semaphore Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * force global 2P Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * fix merge main Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Refactor RemedialActionActivationResult to handle actions per state. Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Change RAO type from SEARCH_TREE_RAO to FAST_RAO in tests. Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fast rao don't support optimization on one given state only Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove unecessary function Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove unecessary import Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update log Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * todo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao parameters Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correct JsonRaoParametersTest Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add config loader + make the extension optional Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * branch fast rao parameters in code Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * test fast rao in cucumber Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add todo doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * move check Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * keep marmot change Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao slide to doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * variant manager correction Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add UT FastRaoResultImplTest Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * revert and move to other branch Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fast rao/add raoresult extension (#1387) * add considered to FastRaoResultImpl Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fast rao result specific serializer and deserializer Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correction Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao extension + UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * rename function Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> * Fast rao/add ut (#1390) * add considered to FastRaoResultImpl Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fast rao result specific serializer and deserializer Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correction Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao extension + UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * rename function Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add simple fast rao test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correct test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * improve coverage Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add iniital sensi failed test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add 2 UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fast rao result ut Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * reformat Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * change rao param Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * blank space Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> * copy paste original file as is Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * copy paste original file as is Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Run cucumber on mac. Update jaxb bindings (#1212) Signed-off-by: Peter Mitri <peter.mitri@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Export execution details (#1193) * export failure reason/executed steps to a executionDetails field Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * added check of execution details for failed RAOs in cucumber tests Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * add unit tests for try catch Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * updated documentation Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * clean code smells Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * fixed tests Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * rename section in rao result json documentation Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * added a business error with the error and the stack trace to not lose the information Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * merge main Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * added unit test to check serialization, updated version to 1.7, fixed ordering of states in range action results Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * fix version Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * copy paste original file as is + small change to match recent renaming Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * debug test wip Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Use upward and downward variation variables in MILP for Range Actions (#1205) Use upward and downward variation variables in MILP for Range Actions Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fixed cucumber tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add log + fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Temporal data (#1228) * temporal data Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * sonar Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Refactor objective function evaluators API and add cost-wise Search-Tree (#1186) * refactor objective function evaluators API * enable cost-wise Search Tree Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * create class InterTemporalRaoInput (#1232) * create class InterTemporalRaoInput Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * removed parameters from input class Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix Jenkins (#1231) * only keep PST_DE Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * keep previous crac Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: phiedw <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update code to match main Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fix bug 2p (#1237) * fix bug Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * match style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * changed complete method to take into account previous failing contingencies Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * add UT Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * add UT Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * add UT Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * add UT Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * fix UT Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Philippe Edwards <philippe.edwards@rte-france.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Run tests on graalvm, slightly change ra ordering method in search tree to make it os agnostic (#1234) * run tests on java & graalvm * changed min impact for a couple tests, and change search tree ordering to make it os agnostic (hopefully) Signed-off-by: Peter Mitri <peter.mitri@rte-france.com> Co-authored-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update powsybl dependencies (6.6.0 release train) (#1239) Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Bump to v6.2.0 Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Bump to v6.3.0-SNAPSHOT Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix US 19.7 features Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove semaphore Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Power Gradient Constraint (#1229) * Power Gradient Constraint Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * JUnit Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * typo in test name Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * extract VariationDirection from RangeAction Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * replace record by class Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update pom Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add module to jacoco Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add pgcs to RAO inputs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix poms Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * udate new POM tp 6.3.0-SNAPSHOT Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * inter-tempoal RAO API (#1236) * inter-tempoal RAO API Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * move to right module Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix InterTemporalRaoInput creation Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Classes generated by Jakarta implement interfaces (#1246) * get back to previous JAXB behavior for interface inheritance * remove Jakarta dependency in CSA profiles module Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Swe cne threshold decimals (#1245) * add decimals for thrsholds in swe cne Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * include link fixes in documentation Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * make constants final Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> --------- Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Add new method withNetworkElement for InjectionRangeActionAdder (#1087) * Add new method withNetworkElement for InjectionRangeAction Signed-off-by: wangjer <jeremy.wang@rte-france.com> * Return error if withNetworkElement() called twice Signed-off-by: wangjer <jeremy.wang@rte-france.com> * Remove unused import Signed-off-by: wangjer <jeremy.wang@rte-france.com> --------- Signed-off-by: wangjer <jeremy.wang@rte-france.com> Co-authored-by: Peter Mitri <peter.mitri@rte-france.com> Co-authored-by: phiedw <philippe.edwards@rte-france.com> Co-authored-by: Thomas Bouquet <63302082+bqth29@users.noreply.github.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * TemporalData::map (#1251) Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Use hasImpactOnNetwork from powsybl-core, 'fix' tests (#1131) Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com> Co-authored-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com> Co-authored-by: Thomas Bouquet <63302082+bqth29@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fixes CRAC import from Flowbased Constraint Document to enable correct handling of XML without any MNEC element defined. (#1253) Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * timestamp in variables and constraints (#1259) Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Make MonitoringResult combine function thread safe (#1260) * make combine thread safe Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add comment Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Global balancing constraint (#1250) * add global balancing constraint Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add cucumber tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix docs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * Update crac-93-1-3.json Signed-off-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> * add comment Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * merge main Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add constants in doc Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * Update CoreProblemFiller.java Signed-off-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Costly optimization of range actions (#1243) * add costly variables and constraints Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * docs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * cucumber tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * rollback absolute variation Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * typo Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove continuous tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * only allow APPROXIMATED_INTEGERS mode for costly optimization Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix doc Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * average cost/angle for PSTs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * introduce tap variables Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * minor fixes Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix tests and doc Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * sonar Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix after comments Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * merge main Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Remove inexistant 'com.powsybl:powsybl-action-util' dependency (#1262) Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * duplicate redispatching test in costly (#1261) Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Angle monitoring noglsk (#1249) * fix typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * crash if incomplete GLSK error Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * draft Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * set MonitoringResult status to FAILURE when no GLSK given Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * change global log message Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Update Monitoring.java Signed-off-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Inter-Temporal Pool (#1235) * create class InterTemporalRaoInput Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * removed parameters from input class Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * WIP Beginning of InterTemporal Sensitivity Analysis Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add LF and sensi values in test Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * Fixed sensi computation in parallel Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add InterTemporalParameters Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * more relevant tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * merge head Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add json for inter temporal parameter Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * parallel RAOs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use right Pait class Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * intertemporal pool Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use of inter-temporal pool for parallel computation Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * some fixes Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * refactored inputs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * changes after comments Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use ThreadPoolExecutor for more relevant nested inter temporal pools Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove inter-temporal extension of parameters Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add unit test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * use ForkJoinPool again Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove useless files Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Thomas Bouquet <63302082+bqth29@users.noreply.github.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Power Gradient Constraint filler (#1257) * Update gradient API Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * Gradient MIP equations in doc Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix problems on min/max signums Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * preparatory work for PGC filler Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * complete PowerGradientConstraintFiller + fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * rename to PowerGradient Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * rename to PowerGradientBuilder Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * docstring for PowerGradient Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add Unit Test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * sonar Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * rename p0 to initialPower Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * merge main Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add to do Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * simplify function Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * merge main Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix after review Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * merge main and update docs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Rao parameters forbid cost increase always true (#1112) * Remove ForbidCostIncrease parameter (should always be true) * Remove curative stop criterion and 'optimize curative if preventive unsecure' and partially replace them by 'enforce curative security' * Move unit out of objective function type * Merge content of preventive stop criterion into type * Move implem specific rao parameters into extensions * The object multithreading parameters should be the same than its input, so it contains one parameter available-cpus * Upgrade rao parameters version to 3.0 * Separate previous extensions in business/search-tree as optional * Rename to avoid having same class name in rao parameters and its extension * Separate rao parameters doc in multiple pages * change python script to be able to do all the changes to parameters --------- Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com> Co-authored-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fix format of datetimes in variable and constraint names (#1266) * fix format of datetimes in variable names Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use formatName for new variables and constraint Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * 2P for multi-curative optimization (#1263) * Handle multi-curative in 2P global opt Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * cucumber test for validation of feature Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * merge main Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Partial Failure and completeData (#1256) * draft Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * partial_failure fix Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix import Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * partial failure fix + automaton Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add Unit Test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up code Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add unit test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: phiedw <philippe.edwards@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> * ComputeHvdcAngleDroopActivePowerControlValue with getP (#1269) * use getP to avoid nullpointer Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * adapt cucumber Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Delete mvn compiler version (#1270) * delete useless compiler version(inherited from powsybl parent) Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * prepare release v6.3.0 Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * prepare next release v6.4.0-SNAPSHOT Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * change url of info in rao result json serialization (#1273) Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Feature/timestamp in crac api (#1265) * add timestamp in CRAC API Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * first works on JSON Crac with timestamp Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add timestamp in state Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * deserialize ts Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix test Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * some fixes after comments Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * state id in helper Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * test to cover State API Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * date and author Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Add offsetdatetime in cracparameter (#1274) * add timestamp to crac creation parameters Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix cse test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix fbconstraint test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix csa test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix json deserializer Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix cucumber tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Remove Todo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fb constraint extension doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fic UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * FbConstraintCracCreationParameters to FbconstraintCracCreatorParameters + fix duplicate line ? Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix private cucumber tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * review fix Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix merge conflict Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Remove initial tap and tap to angle conversion map from json crac files (#1278) * removed initial tap and conversion map from json crac file (getting from network instead) Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * changed retrocompatibility tests to validate the files before reading them, changed documentation Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * added a test to try import a crac with a PST missing in network Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * fix broken test after merge Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix version greater or equal to equal in deserializer Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> --------- Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fix null ptdfSum in evaluator, relative margin case (#1264) ** add ptdfSumLowerBound to ptdfSums in evaluator Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: MURGEY Sebastien <sebastien.murgey@rte-france.com> Co-authored-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Inter-Temporal Skeleton (MARMOT) (#1258) * marmot first implementation Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * typo Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add TODOs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * typo in TODO Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add initial sensi computation Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add topologyChanger + UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fic style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Add Result Merger Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * refactor skeleton Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * parameters order Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * introduce skeleton Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * inter-temporal linear optimization inputs ready Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * create fillers from linear optimizer input Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * adapt PowerGradientConstraintFiller inputs Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * minor Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * fix inputs of gradient filler Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * round set-point values Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * finalize first version of optimizer Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix parameters for compiling Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add TODO Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * create global objective function Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * evaluate global objective function Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * first marmot test Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * MARMOT works !! Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use initial scenario id Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * test with rd Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * test with power gradient constraint Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use individual rao result cost Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * create dedicated module for results Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use only one linear opt result Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add tests and fixes Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * tests global linear optimization result Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * use ProblemFillerHelper in castor Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove useless attributes Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add new tests for global results Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * include preventive network actions in objective function evaluation Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * cleaning, comments, logging Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * explicit TODOs Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * delete TODO Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@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: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fix the action status badge (#1288) Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Remove timestamp in variables name for which a state is already provided (#1284) * remove timestamp in variables name for which a state is already provided Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix bad @author tag Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Clean up pom (#1281) * Remove redundant dependency version overrides Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add project artefacts Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove unused dependency Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Priority ucte network analyser (#1280) * added priority to UCTE network analyzer parameters to prioritize order code or element name Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * modify cbcora importer to prioritize element names over order codes Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> --------- Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Generator constraints (#1293) * generator constraints Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add generator constraints module Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * deprecate PowerGradient Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update pom Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update main pom Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update distribution pom Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * [CIM] Import only one HVDC action if one line is disconnected (#1282) * do not import HVDC RA if HVDC disconnected Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * coherent group name Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove useless TODO Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * sonar Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * logs, fix clear(), add UT Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * checkstyle Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * More simple fix for ptdf sum (#1287) * Revert "Fix null ptdfSum in evaluator, relative margin case (#1264)" This reverts commit 3976db05e03669c4751dfc3fc4a0a1066a53794c. * Add cucumber test for illustrating issue when monitoring open branch post contingency Signed-off-by: MURGEY Sebastien <sebastien.murgey@rte-france.com> * bound values in export to avoid trying to export +- infinity Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> --------- Signed-off-by: MURGEY Sebastien <sebastien.murgey@rte-france.com> Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Co-authored-by: MURGEY Sebastien <sebastien.murgey@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove power gradients (#1295) Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Cleaning/intertemporal features cleaner (#1289) * remove some TODOs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add log Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * log initial and final costs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add new SumMaxPerTimestampCostEvaluatorResult Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * better tests names Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove useless method Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * merge identical methods Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove max cost evaluator Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add comments in evaluator tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add TODO for cost checking Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> * Ignore duplicated CNECs in RAO status (#1303) * add exlude cnecs function Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add excludeCnecs in getCost Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add log and reevaluate cost Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove cnec from raoresult Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove unecessary class Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix for merge Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove unnecessary class Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * sonarfix Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * review correction Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix type Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * log Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * typo fix Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> * Separate global result from individual results per timestamp (#1302) Separate global result from individual results per timestamp (#1302) --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fix RA import after invalid Contingency (#1308) * Fix RA import after invalid Contingency * Fix dev * Remove useless argument * Test fix * Fix * After review * fix sonar Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * fix Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * store highest threshold in evaluator result (#1322) Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Bump powsybl-core to 6.7.0, OLF to 1.15.0 and entsoe to 2.13.0 (#1309) * Add new powsybl-open-loadflow 'forceTargetQInReactiveLimits' parameter in test files Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> * Add new OLF 'voltageRemoteControlRobustMode' and 'disableInconsistentVoltageControls' params in test files Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> * Bump core to 6.7.0-RC1 Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> * Bump core to 6.7.0 and OLF to 1.15.0 Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> * Bump powsybl-entsoe to 2.13.0 Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> --------- Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * prepare release v6.4.0 Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * prepare next release v6.5.0-SNAPSHOT Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * serialize PST's tap Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove useless exception Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * retrocompatibility test Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * initialTap Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * rename add method in TemporalData to put (#1329) * renamed add method in temporal data to put Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * Revert "renamed add method in temporal data to put" This reverts commit 89a23c01bcc6281c83a3f460fddd5df4ee05909c. * only changed add for temporalData Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> --------- Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Move jniortools import into a separate thread. (#1331) * Move jniortools import into a separate thread. Signed-off-by: thiriondan <daniel.thirion@rte-france.com> * Add EOF Signed-off-by: thiriondan <daniel.thirion@rte-france.com> * Revert "Add EOF" This reverts commit 6ce6ce4194c18a6aa4261ec88d92eaa387207176. Signed-off-by: thiriondan <daniel.thirion@rte-france.com> * Revert "Move jniortools import into a separate thread." This reverts commit 081280b6d8141c85a4417e554c5e00aa83da6707. Signed-off-by: thiriondan <daniel.thirion@rte-france.com> * Add OR-tools loading in Castor class so it gets loaded upon start Signed-off-by: thiriondan <daniel.thirion@rte-france.com> --------- Signed-off-by: thiriondan <daniel.thirion@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * All optional attributes in GeneratorConstraints (#1345) * optional attributes in GeneratorConstraints Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * coverage Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix test Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * sonar Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Renaming CSA profiles to NC (#1340) * rename CSA profiles to NC Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove CSA occurrences Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Remove auto search tree (#1318) * remove auto search tree Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update json parameters Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove auto search tree cucumber tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update doc Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove max-auto-depth occurrences Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove max-auto-depth occurrences in docs Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * added a filter on versions to avoid printing the wrong version (was happening in pypowsybl where it was printing powsybl diagram version) (#1352) Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * No longer export flows for instants after CNEC's (#1347) * no longer export flows for instants after cnec's Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * fix typo in exception Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Extract features from idcc test data (#1353) * TemporalDataImpl : treeMap for reproductibility Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * offsetDateTime in FbConstraintCracCreator Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * perf: memoize previous state Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * add epsilon for range action filtering (range) Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * validate Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> --------- Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix merge main Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Refactor RemedialActionActivationResult to handle actions per state. Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Change RAO type from SEARCH_TREE_RAO to FAST_RAO in tests. Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fast rao don't support optimization on one given state only Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove unecessary function Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove unecessary import Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Remove unused flowbased-related modules (#1356) * remove unused flowbased-related modules Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update pom Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Import automatons is `nc:RemedialAction.isManual` is `false` (#1349) * add isManual is queries Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove scheme remedial actions and import ARAs from isManual=false Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add TODO Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * remove auto-instant-time in NC CRAC creation parameters Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * TODO Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update doc Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * add NC file in doc tree Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Rename `monitoring` to `open-rao-monitoring` (#1357) * rename monitoring to open-rao-monitoring Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update poms Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> --------- Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update log Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * todo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao parameters Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correct JsonRaoParametersTest Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add config loader + make the extension optional Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add tests Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * branch fast rao parameters in code Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * test fast rao in cucumber Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * clean up Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add todo doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * move check Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * keep marmot change Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao slide to doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * variant manager correction Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add UT FastRaoResultImplTest Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * revert and move to other branch Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Fast rao/add raoresult extension (#1387) * add considered to FastRaoResultImpl Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fast rao result specific serializer and deserializer Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correction Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add fast rao extension + UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * rename function Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * merge main Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correct merge issue Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * correct merge issue pt2 Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * move fastrao doc to performance.md Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * wip max min margin with fast rao Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * remove test Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix after merge Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * bump parameters to v3.2 and add changelog Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * update doc + add gif Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * center text Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * complete tutorial Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * update tutorial.md Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix typo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * style Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix tests Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> * delete commonslang3 from pom to pull version from powsybl-core Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * merge main Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * add comments to getRaLimitationParameters Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * doc Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * adapt 20.2.2 by using topo CRA to ensure CRA is kept in 2P now that 2P is global Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * clean/ adapt US20_1 Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * fix merge Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * delete re-optimize everywhere Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * update parameter files * update values far from ref Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * add CriticalCnecsResult extension to rao result + serializer and deserializer Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Add AbstractExtendable inheritance to InterTemporalRao classes Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix values Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * Add utility class for JSON serialization of RaoResult extensions Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * started changing loadflow calls Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> * add UT to improve sonar Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * checkstyle Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * improve sonar Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * fix test Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * more sonar Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * erreurs de compil residuelles critical cnecs Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * reliquat erreurs residuelles critical cnecs Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * force SearchTreeRao in Marmot Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * adapt runFilteredRao Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * force 2P reoptimization on US 20_1 Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * IO exception never thrown Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * skip multi-curative Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * broken link Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * unused test files Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> * Async PostPerimeterSensitivityAnalysis run Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add comment Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * mvn validate Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * refacto Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * todo Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * use pre perimeter result Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * only keep activated range action Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * exclude duplicate cnec from final cost Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * change fast rao continue condition Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * add new condition Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * export result (temporary to delete) Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * some refactoring Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * some refactoring Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * fix UT Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * match main Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> * Select rao implementation for cucumber tests in properties file Signed-off-by: Vincent BOCHET <vincent.bochet@rte-france.com> * Generalize abstraction of rao implementation in Cucumber step definitions Signed-off-by: Vincent BOCHET <vincent.bochet@rte-france.com> * Rename methods to be rao-agnostic Signed-off-by: Vincent BOCHET <vincent.bochet@rte-france.com> --------- Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com> Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com> Signed-off-by: Peter Mitri <peter.mitri@rte-france.com> Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Signed-off-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Signed-off-by: wangjer <jeremy.wang@rte-france.com> Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com> Signed-off-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com> Signed-off-by: MURGEY Sebastien <sebastien.murgey@rte-france.com> Signed-off-by: thiriondan <daniel.thirion@rte-france.com> Signed-off-by: Vincent BOCHET <vincent.bochet@rte-france.com> Co-authored-by: CHEN Roxane <roxane.chen@rte-france.com> Co-authored-by: Philippe Edwards <philippe.edwards@rte-france.com> Co-authored-by: Roxane Chen <94446464+RoxaneChen02@users.noreply.github.com> Co-authored-by: Peter Mitri <peter.mitri@rte-france.com> Co-authored-by: Thomas Bouquet <thomas.bouquet@rte-france.com> Co-authored-by: Godelaine de Montmorillon <godelaine.demontmorillon@rte-france.com> Co-authored-by: Thomas Bouquet <63302082+bqth29@users.noreply.github.com> Co-authored-by: Godelaine <87479798+Godelaine@users.noreply.github.com> Co-authored-by: Jérémy Wang <jeremy.wang@rte-france.com> Co-authored-by: pjeanmarie <72982611+pjeanmarie@users.noreply.github.com> Co-authored-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com> Co-authored-by: Sébastien Murgey <sebastien.murgey@rte-france.com> Co-authored-by: Olivier Perrin <olivier.perrin@rte-france.com> Co-authored-by: Viktor Terrier <11834022+terriervik@users.noreply.github.com> Co-authored-by: danielthirion <152513244+danielthirion@users.noreply.github.com>
1 parent 0324a5b commit 7515339

94 files changed

Lines changed: 554 additions & 534 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/src/test/java/com/powsybl/openrao/tests/RunCucumberTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@SelectPackages("com.powsybl.openrao.tests")
1919
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty")
2020
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "com.powsybl.openrao.tests")
21-
@ConfigurationParameter(key = FILTER_TAGS_PROPERTY_NAME, value = "not @flaky")
21+
@ConfigurationParameter(key = FILTER_TAGS_PROPERTY_NAME, value = "not @flaky and not @fast-rao") // For SearchTreeRao testing
22+
//@ConfigurationParameter(key = FILTER_TAGS_PROPERTY_NAME, value = "not @flaky and not @multi-curative and not @search-tree-rao") // For FastRao testing
2223
public class RunCucumberTest {
2324
}

tests/src/test/java/com/powsybl/openrao/tests/steps/CommonTestData.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.powsybl.openrao.monitoring.results.RaoResultWithAngleMonitoring;
2626
import com.powsybl.openrao.raoapi.json.JsonRaoParameters;
2727
import com.powsybl.openrao.raoapi.parameters.RaoParameters;
28+
import com.powsybl.openrao.raoapi.parameters.extensions.FastRaoParameters;
2829
import com.powsybl.openrao.raoapi.parameters.extensions.OpenRaoSearchTreeParameters;
2930
import com.powsybl.openrao.raoapi.parameters.extensions.SearchTreeRaoRangeActionsOptimizationParameters;
3031
import com.powsybl.openrao.tests.utils.CoreCcPreprocessor;
@@ -311,6 +312,10 @@ public static void loadData(String timestamp) throws IOException {
311312
.setSolver(SearchTreeRaoRangeActionsOptimizationParameters.Solver.valueOf(overrideLinearSolver.toUpperCase()));
312313
}
313314

315+
if (!raoParameters.hasExtension(FastRaoParameters.class)) {
316+
raoParameters.addExtension(FastRaoParameters.class, new FastRaoParameters());
317+
}
318+
314319
// Loopflow GLSK
315320
// only work with UCTE GLSK files
316321
if (loopflowGlskPath != null) {

tests/src/test/java/com/powsybl/openrao/tests/steps/SearchTreeRaoSteps.java renamed to tests/src/test/java/com/powsybl/openrao/tests/steps/RaoSteps.java

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@
3939
import org.apache.commons.lang3.tuple.Pair;
4040

4141
import java.io.IOException;
42+
import java.io.InputStream;
4243
import java.io.UncheckedIOException;
4344
import java.util.Comparator;
4445
import java.util.Objects;
46+
import java.util.Properties;
4547
import java.util.Set;
4648
import java.util.stream.Collectors;
4749

@@ -51,9 +53,7 @@
5153
/**
5254
* @author Viktor Terrier {@literal <viktor.terrier at rte-france.com>}
5355
*/
54-
public class SearchTreeRaoSteps {
55-
56-
private static final String SEARCH_TREE_RAO = "SearchTreeRao";
56+
public class RaoSteps {
5757
private static final double TOLERANCE_FLOW_IN_AMPERE = 5.0;
5858
private static final double TOLERANCE_FLOW_IN_MEGAWATT = 5.0;
5959
private static final double TOLERANCE_FLOW_RELATIVE = 1.5 / 100;
@@ -65,6 +65,18 @@ public class SearchTreeRaoSteps {
6565
private LoopFlowResult loopFlowResult;
6666
private Network network;
6767
private State preventiveState;
68+
private final String raoImplementation;
69+
70+
{
71+
try {
72+
final Properties configProperties = new Properties();
73+
final InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("steps-config.properties");
74+
configProperties.load(inputStream);
75+
raoImplementation = (String) configProperties.get("rao-implementation");
76+
} catch (final Exception e) {
77+
throw new OpenRaoException("Unable to load steps-config.properties", e);
78+
}
79+
}
6880

6981
private static double flowAmpereTolerance(double expectedValue) {
7082
return Math.max(TOLERANCE_FLOW_IN_AMPERE, TOLERANCE_FLOW_RELATIVE * Math.abs(expectedValue));
@@ -74,54 +86,54 @@ private static double flowMegawattTolerance(Double expectedValue) {
7486
return Math.max(TOLERANCE_FLOW_IN_MEGAWATT, TOLERANCE_FLOW_RELATIVE * Math.abs(expectedValue));
7587
}
7688

77-
@When("I launch search_tree_rao")
78-
public void iLaunchSearchTreeRao() {
79-
iLaunchSearchTreeRao(null);
89+
@When("I launch rao")
90+
public void iLaunchRao() {
91+
iLaunchRao(null);
8092
}
8193

82-
@When("I launch search_tree_rao with a time limit of {int} seconds")
83-
public void iLaunchSearchTreeRaoWithTimeLimit(int timeLimit) {
94+
@When("I launch rao with a time limit of {int} seconds")
95+
public void iLaunchRaoWithTimeLimit(int timeLimit) {
8496
launchRao(timeLimit);
8597
}
8698

87-
@When("I launch search_tree_rao at {string}")
88-
public void iLaunchSearchTreeRao(String timestamp) {
89-
launchRao(null, null, timestamp, SEARCH_TREE_RAO);
99+
@When("I launch rao at {string}")
100+
public void iLaunchRao(String timestamp) {
101+
launchRao(null, null, timestamp, raoImplementation);
90102
}
91103

92-
@When("I launch search_tree_rao at {string} on {string}")
93-
public void iLaunchSearchTreeRaoAtTimestampOnContingency(String timestamp, String contingencyId) {
94-
launchRao(contingencyId, null, timestamp, SEARCH_TREE_RAO);
104+
@When("I launch rao at {string} on {string}")
105+
public void iLaunchRaoAtTimestampOnContingency(String timestamp, String contingencyId) {
106+
launchRao(contingencyId, null, timestamp, raoImplementation);
95107
}
96108

97-
@When("I launch search_tree_rao at {string} on preventive state")
98-
public void iLaunchSearchTreeRaoOnPreventiveState(String timestamp) {
99-
launchRao(null, InstantKind.PREVENTIVE, timestamp, SEARCH_TREE_RAO);
109+
@When("I launch rao at {string} on preventive state")
110+
public void iLaunchRaoOnPreventiveState(String timestamp) {
111+
launchRao(null, InstantKind.PREVENTIVE, timestamp, raoImplementation);
100112
}
101113

102-
@When("I launch search_tree_rao at {string} after {string} at {string}")
103-
public void iLaunchSearchTreeRao(String timestamp, String contingencyId, String instantKind) {
104-
launchRao(contingencyId, InstantKind.valueOf(instantKind.toUpperCase()), timestamp, SEARCH_TREE_RAO);
114+
@When("I launch rao at {string} after {string} at {string}")
115+
public void iLaunchRao(String timestamp, String contingencyId, String instantKind) {
116+
launchRao(contingencyId, InstantKind.valueOf(instantKind.toUpperCase()), timestamp, raoImplementation);
105117
}
106118

107-
@When("I launch search_tree_rao on preventive state")
108-
public void iLaunchSearchTreeRaoOnPreventiveState() {
109-
launchRao(null, InstantKind.PREVENTIVE, null, SEARCH_TREE_RAO);
119+
@When("I launch rao on preventive state")
120+
public void iLaunchRaoOnPreventiveState() {
121+
launchRao(null, InstantKind.PREVENTIVE, null, raoImplementation);
110122
}
111123

112-
@When("I launch search_tree_rao after {string} at {string}")
113-
public void iLaunchSearchTreeRao(String contingencyId, String instantKind) {
114-
launchRao(contingencyId, InstantKind.valueOf(instantKind.toUpperCase()), null, null, SEARCH_TREE_RAO, null);
124+
@When("I launch rao after {string} at {string}")
125+
public void iLaunchRao(String contingencyId, String instantKind) {
126+
launchRao(contingencyId, InstantKind.valueOf(instantKind.toUpperCase()), null, null, raoImplementation, null);
115127
}
116128

117-
@When("I launch loopflow search_tree_rao with default loopflow limit as {double} percent of pmax")
118-
public void iLaunchSearchTreeRaoWithDefaultLoopflowLimit(double percentage) {
119-
launchRao(null, null, null, percentage, SEARCH_TREE_RAO, null);
129+
@When("I launch loopflow rao with default loopflow limit as {double} percent of pmax")
130+
public void iLaunchRaoWithDefaultLoopflowLimit(double percentage) {
131+
launchRao(null, null, null, percentage, raoImplementation, null);
120132
}
121133

122-
@When("I launch loopflow search_tree_rao at {string} with default loopflow limit as {double} percent of pmax")
123-
public void iLaunchSearchTreeRaoWithDefaultLoopflowLimit(String timestamp, double percentage) {
124-
launchRao(null, null, timestamp, percentage, SEARCH_TREE_RAO, null);
134+
@When("I launch loopflow rao at {string} with default loopflow limit as {double} percent of pmax")
135+
public void iLaunchRaoWithDefaultLoopflowLimit(String timestamp, double percentage) {
136+
launchRao(null, null, timestamp, percentage, raoImplementation, null);
125137
}
126138

127139
@When("I launch loopflow_computation with OpenLoadFlow")
@@ -621,7 +633,7 @@ public void absPtdfSumAfterInstant(String cnecId, String instantKind, Double exp
621633
}
622634

623635
private void launchRao(int timeLimit) {
624-
launchRao(null, null, null, null, SEARCH_TREE_RAO, timeLimit);
636+
launchRao(null, null, null, null, raoImplementation, timeLimit);
625637
}
626638

627639
private void launchRao(String contingencyId, InstantKind instantKind, String timestamp, String raoType) {

tests/src/test/resources/com/powsybl/openrao/tests/features/epic10_relative_margin/US10_1.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: US 10.1: Linear RAO with relative margin
1111
Given crac file is "epic10/ls_relative_margin_unsecure.json"
1212
Given configuration file is "epic10/RaoParameters_relMargin_megawatt.json"
1313
Given loopflow glsk file is "common/glsk_proportional_12nodes.xml"
14-
When I launch search_tree_rao
14+
When I launch rao
1515
Then its security status should be "UNSECURED"
1616
And the value of the objective function after CRA should be 275.8
1717
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
@@ -25,7 +25,7 @@ Feature: US 10.1: Linear RAO with relative margin
2525
Given crac file is "epic10/ls_relative_margin.json"
2626
Given configuration file is "epic10/RaoParameters_relMargin_megawatt.json"
2727
Given loopflow glsk file is "common/glsk_proportional_12nodes.xml"
28-
When I launch search_tree_rao
28+
When I launch rao
2929
Then its security status should be "SECURED"
3030
And the value of the objective function after CRA should be -2383.0
3131
And the tap of PstRangeAction "PRA_PST_BE" should be -3 in preventive
@@ -40,7 +40,7 @@ Feature: US 10.1: Linear RAO with relative margin
4040
Given crac file is "epic10/ls_relative_margin_with_open_branch.json"
4141
Given configuration file is "epic10/RaoParameters_relMargin_megawatt.json"
4242
Given loopflow glsk file is "common/glsk_proportional_12nodes.xml"
43-
When I launch search_tree_rao
43+
When I launch rao
4444
Then its security status should be "SECURED"
4545
And the value of the objective function after CRA should be -2385.0
4646
And the tap of PstRangeAction "PRA_PST_BE" should be -3 in preventive

tests/src/test/resources/com/powsybl/openrao/tests/features/epic10_relative_margin/US10_2.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: US 10.2: define ptdfBoundaries with EIcode instead of Country codes
1111
Given crac file is "epic10/cbcora_ep10us2case1.xml"
1212
Given configuration file is "epic10/conf_ep10us2case1.json"
1313
Given loopflow glsk file is "common/glsk_proportional_12nodes.xml"
14-
When I launch search_tree_rao at "2019-01-08 12:00"
14+
When I launch rao at "2019-01-08 12:00"
1515
Then its security status should be "SECURED"
1616
And the value of the objective function after CRA should be -164
1717
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
@@ -31,7 +31,7 @@ Feature: US 10.2: define ptdfBoundaries with EIcode instead of Country codes
3131
Given crac file is "epic10/cbcora_ep10us2case1.xml"
3232
Given configuration file is "epic10/conf_ep10us2case2.json"
3333
Given loopflow glsk file is "epic10/glsk_ep10us2case2.xml"
34-
When I launch search_tree_rao at "2019-01-08 12:00"
34+
When I launch rao at "2019-01-08 12:00"
3535
Then its security status should be "SECURED"
3636
And the value of the objective function after CRA should be -164
3737
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive

tests/src/test/resources/com/powsybl/openrao/tests/features/epic10_relative_margin/US10_3.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Feature: US 10.3: handle GLSK on Xnodes
1212
Given crac file is "epic10/cbcora_ep10us2case1.xml"
1313
Given configuration file is "epic10/conf_ep10us3case1.json"
1414
Given loopflow glsk file is "epic10/glsk_proportional_12nodes_hvdc.xml"
15-
When I launch search_tree_rao at "2019-01-08 12:00"
15+
When I launch rao at "2019-01-08 12:00"
1616
And the value of the objective function after CRA should be -300
1717
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
1818
And the remedial action "Open FR1 FR2" is used in preventive

tests/src/test/resources/com/powsybl/openrao/tests/features/epic10_relative_margin/US10_4.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: US 10.4: PTDF boundaries with more than two zones
1111
Given crac file is "epic10/cbcora_ep10us2case1.xml"
1212
Given configuration file is "epic10/conf_ep10us4case1.json"
1313
Given loopflow glsk file is "epic10/glsk_proportional_12nodes_hvdc.xml"
14-
When I launch search_tree_rao at "2019-01-08 12:00"
14+
When I launch rao at "2019-01-08 12:00"
1515
And the value of the objective function after CRA should be -413
1616
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
1717
And the remedial action "Open FR1 FR2" is used in preventive

tests/src/test/resources/com/powsybl/openrao/tests/features/epic10_relative_margin/US10_5.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: US 10.5: GLSK on disconnected Xnode
1111
Given crac file is "epic10/cbcora_ep10us2case1.xml"
1212
Given configuration file is "epic10/conf_ep10us4case1.json"
1313
Given loopflow glsk file is "epic10/glsk_proportional_12nodes_hvdc.xml"
14-
When I launch search_tree_rao at "2019-01-08 12:00"
14+
When I launch rao at "2019-01-08 12:00"
1515
And the value of the objective function after CRA should be -122
1616
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
1717
And the remedial action "Open FR1 FR2" is used in preventive
@@ -30,7 +30,7 @@ Feature: US 10.5: GLSK on disconnected Xnode
3030
Given crac file is "epic10/cbcora_ep10us5case2.xml"
3131
Given configuration file is "epic10/conf_ep10us4case1.json"
3232
Given loopflow glsk file is "epic10/glsk_proportional_12nodes_hvdc.xml"
33-
When I launch search_tree_rao at "2019-01-08 12:00"
33+
When I launch rao at "2019-01-08 12:00"
3434
And the value of the objective function after CRA should be -122
3535
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
3636
And the remedial action "Open FR1 FR2" is used in preventive

tests/src/test/resources/com/powsybl/openrao/tests/features/epic10_relative_margin/US10_6.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ Feature: US 10.6: Add minimum relative margin binary variable
1212
Given crac file is "epic10/SL_ep10us6case1.json"
1313
Given configuration file is "epic10/RaoParameters_relMargin_megawatt.json"
1414
Given loopflow glsk file is "common/glsk_proportional_12nodes.xml"
15-
When I launch search_tree_rao
15+
When I launch rao
1616
And the worst margin is -1188.90 MW
1717
And the value of the objective function after CRA should be 1188.90

tests/src/test/resources/com/powsybl/openrao/tests/features/epic11_mnec/US11_1.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feature: US 11.1: Handle mnecs in linear RAO
1010
Given network file is "common/TestCase12Nodes.uct" for CORE CC
1111
Given crac file is "epic11/ls_mnec_linearRao_ref.json"
1212
Given configuration file is "common/RaoParameters_maxMargin_megawatt_dc.json"
13-
When I launch search_tree_rao
13+
When I launch rao
1414
Then its security status should be "SECURED"
1515
And the tap of PstRangeAction "PRA_PST_BE" should be -16 in preventive
1616
And PST "BBE2AA1 BBE3AA1 1" in network file with PRA is on tap -16
@@ -23,7 +23,7 @@ Feature: US 11.1: Handle mnecs in linear RAO
2323
Given network file is "common/TestCase12Nodes.uct" for CORE CC
2424
Given crac file is "epic11/ls_mnec_linearRao_1_2.json"
2525
Given configuration file is "common/RaoParameters_maxMargin_megawatt_dc.json"
26-
When I launch search_tree_rao
26+
When I launch rao
2727
Then its security status should be "SECURED"
2828
And the tap of PstRangeAction "PRA_PST_BE" should be -9 in preventive
2929
And PST "BBE2AA1 BBE3AA1 1" in network file with PRA is on tap -9
@@ -36,7 +36,7 @@ Feature: US 11.1: Handle mnecs in linear RAO
3636
Given network file is "common/TestCase12Nodes.uct" for CORE CC
3737
Given crac file is "epic11/ls_mnec_linearRao_1_3.json"
3838
Given configuration file is "common/RaoParameters_maxMargin_megawatt_dc.json"
39-
When I launch search_tree_rao
39+
When I launch rao
4040
Then its security status should be "SECURED"
4141
And the tap of PstRangeAction "PRA_PST_BE" should be -7 in preventive
4242
And PST "BBE2AA1 BBE3AA1 1" in network file with PRA is on tap -7
@@ -48,7 +48,7 @@ Feature: US 11.1: Handle mnecs in linear RAO
4848
Given network file is "common/TestCase12Nodes.uct" for CORE CC
4949
Given crac file is "epic11/ls_mnec_linearRao_1_4.json"
5050
Given configuration file is "common/RaoParameters_maxMargin_megawatt_dc.json"
51-
When I launch search_tree_rao
51+
When I launch rao
5252
Then its security status should be "SECURED"
5353
And the tap of PstRangeAction "PRA_PST_BE" should be -7 in preventive
5454
And PST "BBE2AA1 BBE3AA1 1" in network file with PRA is on tap -7

0 commit comments

Comments
 (0)