-
Notifications
You must be signed in to change notification settings - Fork 155
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 multiple wind power forecasting erros scenarios with affine police? #230
Comments
If I understand correctly, you have a base AC power flow or OPF solution and you would like to find the solutions for new scenarios, with different wind outputs, where all other generation is adjusted according to a set of linear constraints with a single-degree of freedom. If that is the case, you should be able to do it by running an OPF with a set of user-defined linear constraints to restrict the generation pattern. See Section 7.1.2 in the MATPOWER User's Manual. Be sure you set the bounds properly on any other OPF variables you may not want to change (i.e. generator voltage setpoints). You could also just use a power flow and precompute the updated generator dispatch based on the change in net load/wind and your affine recourse adjustment. The only caveat is that since you don't know the exact change in losses, your adjustment will be an approximation, with the error showing up at the slack bus. But I suspect an iteration or two of adjusting it and re-running the power flow would give you a very good solution. |
Thank you. I now know that matpower has the potential to be extended with extra linear and nonlinear constraints. But I still have problem in adding extra power flow equations. I know the function to be used is
I want to add the following constraints with fixed where |
First I want to make sure I understand conceptually what you are trying to do. Initially, I thought you were solving different scenarios sequentially, but it seems like you want to essentially do a sort of security-constrained OPF, guarding against different wind scenarios. Let me know if I'm close ... You start with the standard formulation of an OPF for a base case with a nominal set of fixed wind generation injections. And you would like to add additional constraints on the base case generator dispatch for a scenario with different wind injections, where the updated generation is an affine function of the base case generation and the power balance and branch flow constraints are all satisfied? If so, what about generators that are at a lower or upper bound in the base case? Do you ignore those limits under the new wind scenario? If not, I'm afraid the problem will be infeasible. If so, I think you may need a different formulation, where each scenario has a single scalar optimization variable (not a fixed value) that shifts all generators. Btw, a good place to become familiar with how nonlinear constraints are added to the OPF problem is in |
Yes, I would like to get a base generation schedule that can deal with a set of wind generation injections with a fixed affine rule. |
FWIW, MOST (MATPOWER Optimal Scheduling Tool) already implements something similar to what you are looking for with 2 main differences.
|
I want to solve a scenario based ac opf problem.
The scenarios are wind power forecasting errors.
The active power of conventional generators will follow a simple affine recourse rule to adjust.
For each wind power scenario, the power flow equation and inequality constraints should be satisfied.
How can I add extra constraints using matpower?
The text was updated successfully, but these errors were encountered: