-
Notifications
You must be signed in to change notification settings - Fork 7
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
Features/inter temporal sensitivity #1235
base: main
Are you sure you want to change the base?
Conversation
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: 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: 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>
…s/InterTemporalSensitivity
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
ra-optimisation/rao-api/src/main/java/com/powsybl/openrao/raoapi/InterTemporalRaoInput.java
Show resolved
Hide resolved
...in/java/com/powsybl/openrao/raoapi/json/extensions/JsonInterTemporalParametersExtension.java
Outdated
Show resolved
Hide resolved
ra-optimisation/rao-api/src/test/java/com/powsybl/openrao/raoapi/InterTemporalRaoInputTest.java
Show resolved
Hide resolved
ra-optimisation/rao-api/src/test/resources/RaoParameters_with_InterTemporalExtension.json
Outdated
Show resolved
Hide resolved
...ava/com/powsybl/openrao/searchtreerao/castor/algorithm/InterTemporalSensitivityAnalysis.java
Outdated
Show resolved
Hide resolved
...ava/com/powsybl/openrao/searchtreerao/castor/algorithm/InterTemporalSensitivityAnalysis.java
Outdated
Show resolved
Hide resolved
...ava/com/powsybl/openrao/searchtreerao/castor/algorithm/InterTemporalSensitivityAnalysis.java
Outdated
Show resolved
Hide resolved
/** | ||
* @author Thomas Bouquet {@literal <thomas.bouquet at rte-france.com>} | ||
*/ | ||
public class InterTemporalPool extends ForkJoinPool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May need to check what happens if each task has their own children subthreads. (This class might think the task is no longer being run while the task is waiting for its subthreads to finish, and start running new tasks. I'm not 100% sure how fork join pools work in details.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked using ForkJoinPool and got problems: for instance, when InterTemporalPools are nested - for instance a parent pool with 2 threads creates children pools with 3 threads each - tasks are run without paying attention to the number of threads of the parent pool.
Instead, I replaced the multi-threading system by ThreadPoolExecutor and it now works better.
# Conflicts: # ra-optimisation/rao-api/src/main/java/com/powsybl/openrao/raoapi/InterTemporalRaoInput.java
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>
…m/powsybl/powsybl-open-rao into features/InterTemporalSensitivity
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "UT" (logs only) validating that ThreadPoolExecutor works
In new PR, try substituting ThreadPoolExecutor by a specially configured ForkJoinPool
Signed-off-by: CHEN Roxane <roxane.chen@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes #1226
What kind of change does this PR introduce?
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?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: