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

removed code relative to cnecs in series with a pst #1015

Merged
merged 9 commits into from
Jun 20, 2024

Conversation

phiedw
Copy link
Collaborator

@phiedw phiedw commented May 17, 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?

No

What kind of change does this PR introduce?

Removing a feature for which the specifications were misunderstood

What is the current behavior?

We do not include in the functional part of the objective function cnecs that are linked with a pst in the "do-not-optimize-cnec-secured-by-its-pst" parameter, when taps would be sufficient to solve constraints on that cnec.
This isn't exactly what the TSOs wanted.

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

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)

You should remove the parameter "do-not-optimize-cnec-secured-by-its-pst".
If you were using that feature, please contact us so we can understand why you were using this feature, and what exactly the need for it is on your end, so we can try find a better solution for you.

Other information:

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
@phiedw phiedw added the breaking-change Changes could break users' code label May 17, 2024
phiedw added 2 commits May 24, 2024 14:51
…e_cnecs_series_pst_feature

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
@phiedw
Copy link
Collaborator Author

phiedw commented May 24, 2024

I'm not sure what relevant test I could add.

@phiedw phiedw added PR: waiting-for-review This PR is waiting to be reviewed labels May 24, 2024
Comment on lines 58 to 61
public enum UnoptimizedCnecFillerRule {
MARGIN_DECREASE,
PST_LIMITATION
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you still need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess not

Comment on lines 39 to 40
public static final String VARIABLE_NOT_CREATED = "%s variable has not yet been created for Cnec %s (side %s)";
public static final String OPTIMIZE_CNEC_BINARY = "Optimize cnec binary";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you still need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No. I can't even seem to find where it was used before.

Comment on lines 46 to 50
public UnoptimizedCnecFiller(OptimizationPerimeter optimizationContext,
Set<FlowCnec> flowCnecs,
FlowResult prePerimeterFlowResult,
UnoptimizedCnecParameters unoptimizedCnecParameters,
RangeActionsOptimizationParameters rangeActionParameters) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It appears optimizationContext and rangeActionParameters are no longer required

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

indeed

Comment on lines 30 to 32
public static UnoptimizedCnecParameters build(NotOptimizedCnecsParameters parameters, Set<String> operatorsNotSharingCras) {
if (parameters.getDoNotOptimizeCurativeCnecsForTsosWithoutCras()) {
return new UnoptimizedCnecParameters(operatorsNotSharingCras);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this actually still relevant since it is only a set of strings?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also can you one-line this method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All the other parameters have builders so it allows for slightly more homogeneity

phiedw added 2 commits May 24, 2024 16:30
Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
bqth29
bqth29 previously approved these changes May 24, 2024
…e_cnecs_series_pst_feature

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
@pet-mit pet-mit merged commit 0840be9 into main Jun 20, 2024
10 checks passed
@pet-mit pet-mit deleted the remove_cnecs_series_pst_feature branch June 20, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Changes could break users' code PR: waiting-for-review This PR is waiting to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants