You need to create a callback routine for CPF that plots what you need and set
it in the options struct.
mpopt = mpoption(‘cpf.user_callback’,’cpf_user_callback’);
where cpf_user_callback is the name of your callback routine.
Read pages 38 - 40 of the manual.
Shri
From: Anjali Sharma
1) It looks like you are setting up gencost correctly. The negative objective
function value results from the fact that the curtailable loads are being
modeled as negative generation, with negative costs (positive benefits). So
rather than simply minimizing generating cost, the OPF is now
Dear Prof. Ray,
Thanks a lot for clarifying my doubts. Actually I forgot to see that loads
are modeled as negative generator, instead I was focusing on energy prices
only. And in second one I didn't elaborate properly but I was thinking in
the same way. Thank you very much for your time.
Regards