I am trying to set up an OPF problem where the objective function consists of 
- active power generation (Pg*cp, where Pg is generation and cp is cost)
- reactive power generation (|Qg|*cq, where Qg is reactive generation and cq is 
cost)

How do I get the absolute values for Qg into the objective function? Is there a 
way to hard-code the objective or is there a workaround that will end up 
charging the absolute values?

Thanks for any hints.
Best regards, Steffi


Reply via email to