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

Fix variable #46

Closed
wenjingsu16 opened this issue Aug 31, 2020 · 5 comments
Closed

Fix variable #46

wenjingsu16 opened this issue Aug 31, 2020 · 5 comments

Comments

@wenjingsu16
Copy link

Hi,

May I ask if there is a way to fix a variable when run the gas power model? For example, the active power and reactive power flow on transmission line connecting node 6 to node 13 are fixed at 0. Thanks.

@tasseff
Copy link
Member

tasseff commented Aug 31, 2020

This sounds like it could be accomplished by redefining the bounds or component statuses within the input data. @rb004f, any suggestions?

@rb004f
Copy link
Contributor

rb004f commented Aug 31, 2020

Depends on what effect you are trying to achieve

  1. If you want the voltages on either side to be such that the flow across the line would be 0, you'd want to set the bounds on the line to be 0. Essentially, the voltages would be forced to be roughly the same at 6 and 13.

  2. If you don't want flow and you want the voltages to be free, then you'd want to set the status of that edge to be 0, which will remove the edge from the network

@wenjingsu16
Copy link
Author

I am trying to achieve the second type of effect. So I need to create parameters that represent the status of the edges and set the status of that edge to 0. Does the model currently have binary variables or parameters that represent the status of existing components?

@rb004f
Copy link
Contributor

rb004f commented Aug 31, 2020

In the branch table of the power system input file there is a column for "status". You can change the status of the line from 1 to 0 and you should get the effect you want. The code will ignore that edge

@wenjingsu16
Copy link
Author

I will do that. Thanks.

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

No branches or pull requests

3 participants