Hi Shiva,
Just clarify the other two responses. If you are talking about getting MATPOWER
to solve an OPF using rectangular coordinates to represent voltages, then
Baljinnyam’s answer is what you’re looking for. If you are trying to build your
own derivatives of real branch current to voltage magnitude, Carlos’s reference
to TN2 equation (72) is what you want. And the function dIbr_dV() is the one
that computes that.
Ray
> On Dec 4, 2018, at 9:50 AM, Carlos E Murillo-Sanchez
> <[email protected]> wrote:
>
> Shiva Moshtagh wrote:
>> Hello
>>
>> Can I use rectangular coordinates in matpower ? for example I know that
>> there are real and imaginary parts of power injections and power flows as
>> well as bus voltages, but for branch current there is not rectangular
>> coordinate. Suppose that I want to add derivative of real branch current
>> w.r.t voltage to jacobian matrix. How can I do that ?
>>
>> Regards,
>> Shiva,
> Equation (72) in the TN2-OPF-Derivatives.pdf document gives you an algebraic
> expression for the complex current derivative with respect to voltage
> magnitude. Just take the real part of it to obtain the derivative of the
> real current. Look at the function dSbus_dV in MATPOWER.
>
> carlos.
>
>