Santiago:
You can use a piecewise linear cost model with two segments, with vertex
points
at (-Qnegmax, Qnegprice*Qnegmax), (0,0), (Qposmax, Qposprice*Qposmax) .
Santiago Torres wrote:
Dear Ray and Matpower friends
I want to use the reactive power cost of AC optimal power flow. I
understand that modeling a cuadratic cost function I could
get always positive costs, for reactive power generation. But, I am
using that in a different way. I am modeling linear costs (Qg x
reactive Costs) and I want always to have positive costs, for both
inductive power and capacitive power generation. Therefore in that
case, Qg must be always positive when I calculate the costs. May be
there is a way to do that getting inside the code... I think it could
be a simple matter to put some abs command where is located the cost
calculation part.... can you give me some advice on how to do that??
Any help is apreciated.
regards,
Santiago