-
Notifications
You must be signed in to change notification settings - Fork 152
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
How to Add Linear Constraints to a Simple Transmission Cross Section in a Standard OPF? #239
Comments
Does |
Dr. Zimmerman, I understand it can be done, but I would like to become more familiar with MATPOWER by writing this example myself. Could you please guide me on how to use the |
As you mention, So as you can see here ... Lines 134 to 160 in 0ea0026
... we use that to build up the constraint matrices and bounds as functions of Va .
|
Thank you, Dr. Zimmerman. I have resolved the issue, thanks to your assistance. I appreciate your help. |
Hi Dr. Zimmerman,
Here is my code,
I want to add a transmission section constraint by limiting the sum of the transmission power of a few transmission lines of the branch matrix, and then apply this simple linear constraint using
add_userfcn(mpc, 'formulation', @userfcn_case9lineartest, []);
however Since 'Pf' is not the default variable of matpower, unlike the default variable 'Pg' of matpower which is so easy to use, how should I use theadd_var
statement to reach the optimization of the branch matrix's transmission powerKind Regards
hygge
The text was updated successfully, but these errors were encountered: