I’m not sure I understand what you want to do.

Let’s start with the DC OPF. It sounds like you’re saying you need to run a DC 
OPF where you are directly specifying (constraining to a specific value) some 
of the voltage angles. Is that correct? The problem is that there are very few 
degrees of freedom in the voltage angles due to the power balance constraints. 
I suspect that manipulating (constraining) the voltage magnitudes directly will 
very quickly result in an infeasible OPF.

But, you’re welcome to try. You can add user-defined linear constraints (A, l 
and u) to restrict the voltage angles. The first nb columns of A correspond to 
the voltage angles. See section 6.3 and Chapter 7 in the User’s Manual for more 
details. Simply use the VMIN and VMAX columns of the bus matrix to restrict 
voltage magnitudes.

   Ray




> On Mar 19, 2019, at 8:26 AM, Arkan Arkan <[email protected]> wrote:
> 
> Dear All,
> 
> I hope this note finds you well. I need to run optimal power flow (both DC 
> and AC) while the input values for phase angles and voltage magnitudes are 
> manipulated. In other words, how could I run OPF with desired values of phase 
> angles and voltage magnitudes? I know that I should change the values on the 
> way and in the middle of code but I wasn't able to find the right place in 
> MATPOWER. 
> 
> I would be so grateful if you could, please, help me in this regard.
> 
> Thank you for your time and consideration.
> 
> Kind regards,
> Arkan

Reply via email to