Hi all.
I am a newbie in Optimization toolbox and have a few questions to ask.
Hope someone can share their knowledge.
I want to minimize the Pslack as in the following equation.
Pslack = Ploss + Pdemand - Pgeneration
I know the value for Pdemand
but Ploss is a product of a load flow hence i need to run a load flow first which is based on the Pgeneration.
My problem is that, i don't know how to vary the Pgeneration to make Pslack at minimum value.
and i don't know how to relate Ploss calculation from the runpf into optimization toolbox.
Hopefully someone can help me on this.
Thanking you in advance