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

can I only relax branch capacity constraints in DCOPF, but not generators' capacities #250

Open
yanda1234 opened this issue Oct 31, 2024 · 3 comments

Comments

@yanda1234
Copy link

Dear Dr. Zimmerman,

I am curious if I can only relax branch capacity constraints, but not generators' capacities. Is there anyway to do that?
Toggle_softlims(MPC, "on") will relax both of them together...

Best,
Yanda

@rdzman
Copy link
Member

rdzman commented Oct 31, 2024

There is a lot of flexibility in which constraints to relax and how. Please see Section 7.6.4 in the MATPOWER User's Manual for all of the details.

To relax only branch limits, set opf.softlims.default option to 0 and mpc.softlims.RATE A = struct().

@rdzman
Copy link
Member

rdzman commented Oct 31, 2024

I'm not sure. My best guess is it probably means you have a VMAX entry (with invalid content) in the softlims field of your case struct. Try changing the second line in the loop from ...

temp_case.softlims.RATE_A=struct();

... to ...

temp_case.softlims = struct('RATE_A', struct());

That should make sure you there aren't any other soft limits besides the branch flow constraints.

@yanda1234
Copy link
Author

Thanks, Dr. Zimmerman!

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

2 participants