Yes I am using my one OPF using some functions of MATPOWER and MIPS.
Thanks Ray I will use opf_consfcn.m to compute dh.

On 2/16/2015 3:10 PM, Ray Zimmerman wrote:
So, are you attempting to run MATPOWER’s OPF using the MIPS solver? Or are you trying to set up your own OPF problem and use MIPS to solve it?

If it’s the first, then you don’t need to worry about any of the internals, just call runopf() with the the ‘opf.ac.solver’ option set to ‘MIPS’. If it’s the latter, then dh is mandatory for problems that include nonlinear inequalities. For an example of how to compute the gradient for the OPF, just look at MATPOWER’s implementation in opf_consfcn.m.

    Ray


On Feb 14, 2015, at 2:09 PM, Bouchekara Houssem <[email protected] <mailto:[email protected]>> wrote:

Dear All
I am trying to use the MINPS solver to solve the OPF problem. however, I have an issue with the "gh_fcn" function. So, is 'dh' a mandatory field in the "gh_fcn" function? is yes how can I implement the gradient for the OPF?
because I have put dh=[] and I have obtained an error.
Best regards
houssem



Reply via email to