Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP INTERNSHIP] Add constraints correctly on multi TimeSteps for PST #1037

Open
wants to merge 25 commits into
base: main_jeremy
Choose a base branch
from

Conversation

wangjer
Copy link
Contributor

@wangjer wangjer commented Jun 12, 2024

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)

Does this PR already have an issue describing the problem?

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?

  • 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:

wangjer and others added 21 commits June 7, 2024 11:16
Signed-off-by: wangjer <[email protected]>
Signed-off-by: belthlemar <[email protected]>
Signed-off-by: wangjer <[email protected]>
Signed-off-by: wangjer <[email protected]>
@@ -0,0 +1,350 @@
///*
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can make a new branch with this new class (or uncomment it if you think it makes sense to add it in this pr)

@@ -112,6 +111,30 @@ public static LinearOptimizationResult optimize(IteratingLinearOptimizerMultiTSI
return bestResult;
}

// Add logs for this class: RaoRunner not called in order to use MIP for multi TS so logs are missing
private static void logMostLimitedElementsBetweenIteration(IteratingLinearOptimizerMultiTSInput input, IteratingLinearOptimizerParameters parameters, OpenRaoLogger logger, IteratingLinearOptimizationResultImpl result) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this method log the margin for all cnecs?

return solver.makeConstraint(lb, ub, signedRangeActionVariationConstraintId(rangeAction, state));
}

public OpenRaoMPConstraint addInjectionBalanceVariationConstraint(double lb, double ub, State state) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we can add an extra argument for the timestep so we can get the constraint at a later time

@@ -0,0 +1,270 @@
package com.powsybl.openrao.searchtreerao.linearoptimisation.algorithms.linearproblem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add author and header

Copy link
Collaborator

Choose a reason for hiding this comment

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

and rename the file/class to XXXTest

@Godelaine Godelaine changed the title Add constraints correctly on multi TimeSteps for PST [WIP INTERNSHIP] Add constraints correctly on multi TimeSteps for PST Nov 29, 2024
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