-
Notifications
You must be signed in to change notification settings - Fork 8
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] Automatic fix of incompatible target voltages #1115
Open
geofjamg
wants to merge
27
commits into
main
Choose a base branch
from
bad_target_v_detection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b6d59c7
Bad target voltage detection
geofjamg 6aa5b8a
Wip
geofjamg e62d1b8
Wip
geofjamg 965ae71
Wip
geofjamg ea0be1f
Wip
geofjamg b211915
Wip
geofjamg ab8e4b1
Wip
geofjamg 50dd365
Merge branch 'main' into bad_target_v_detection
geofjamg 021766d
Wip
geofjamg fe48f54
Wip
geofjamg 486201c
Add checker
geofjamg f03e043
Fix
geofjamg bf367f8
Fix
geofjamg 499e6fb
Add perf log
geofjamg ba46ea8
Merge branch 'main' into bad_target_v_detection
geofjamg a4563b1
Add unrealistic target voltage check
geofjamg 660c2e4
Wip
geofjamg e978193
Wip
geofjamg 14acfb3
Clean
geofjamg 7ea9f6f
Clean
geofjamg 9488317
Clean
geofjamg cb87f85
Improve logs
geofjamg 70c4326
Add method to directly check on IIDM network
geofjamg ac807c9
Fix
geofjamg 6fa1020
Fix
geofjamg 1557c2c
Revert
geofjamg bf94e9c
Support low impedance branches in adm matrix calculation
geofjamg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/com/powsybl/openloadflow/RemoteVoltageTargetCheckResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright (c) 2024, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
package com.powsybl.openloadflow; | ||
|
||
import com.powsybl.openloadflow.network.LfBus; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian {@literal <geoffroy.jamgotchian at rte-france.com>} | ||
*/ | ||
public class RemoteVoltageTargetCheckResult { | ||
|
||
public record IncompatibleTarget(LfBus controlledBus1, LfBus controlledBus2, double targetVoltagePlausibilityIndicator) { | ||
} | ||
|
||
public record UnrealisticTarget(LfBus controllerBus, double estimatedDvController) { | ||
} | ||
|
||
private final List<IncompatibleTarget> incompatibleTargets = new ArrayList<>(); | ||
|
||
private final List<UnrealisticTarget> unrealisticTargets = new ArrayList<>(); | ||
|
||
public List<IncompatibleTarget> getIncompatibleTargets() { | ||
return incompatibleTargets; | ||
} | ||
|
||
public List<UnrealisticTarget> getUnrealisticTargets() { | ||
return unrealisticTargets; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To be documented.
And maybe addiotional parameters given like TARGET_VOLTAGE_PLAUSIBILITY_THRESHOLD
However in my test networks, increasing CONTROLLED_BUS_NEIGHBORS_EXPLORATION_DEPTH had a terrible algotirhmic cost and didn't improve quality (defined as more convergence)
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.
"And maybe addiotional parameters given like TARGET_VOLTAGE_PLAUSIBILITY_THRESHOLD" => yes
for CONTROLLED_BUS_NEIGHBORS_EXPLORATION_DEPTH indeed it should not be configurable, a value of 2 or 3 is probably enough.