Since I don’t have an identical configuration to test, I hesitate to draw conclusions about what is going on. On my Mac, attempting to use Knitro 9.1 with MATPOWER 4.1 results in mpver saying that it’s “-- not installed --“. So I’m not quite sure why you’re seeing something different on Windows. And the output of t_opf_knitro certainly indicates that it is successfully solving each of the test OPF problems and not only returning a success flag of 1, but also returning the expected solved cases correctly.
So, are you saying that the success flag in the results struct for some of these test OPFs was 0, or just for your case? Since your setup is not something that was tested, I would still recommend that you try upgrading to MATPOWER 5.1 if possible to see if that resolves your problem. If not, I’m happy to work with you off-list to understand what is happening. Ray -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, Ithaca, NY 14853 USA phone: (607) 255-9645 > On Mar 23, 2015, at 3:09 PM, angelina sirri <[email protected]> wrote: > > output of mpver : > > MATPOWER Version 4.1 14-Dec-2011 > MATLAB Version 8.1 13-Feb-2013 Release: (R2013a) > Optimization Toolbox Version 6.3 13-Feb-2013 Release: (R2013a) > MIPS Version 1.0 07-Feb-2011 > BPMPD_MEX -- not installed -- > CPLEX -- not installed -- > IPOPT -- not installed -- > Gurobi -- not installed -- > KNITRO Version 9.1.0 PCWIN64 > MINOPF -- not installed -- > MOSEK -- not installed -- > PDIPMOPF Version 4.1 11-Nov-2011 PCWIN64 > SCPDIPMOPF Version 4.1 11-Nov-2011 PCWIN64 > TRALMOPF Version 4.1 11-Nov-2011 PCWIN64 > Architecture: PCWIN64 > > MATPOWER 4.1 is distributed under the GNU General Public License. > Please see the LICENSE and COPYING files for details. > > output of t_opf_knitro: > > 1..101 > ok 1 - knitro OPF : success > ok 2 - knitro OPF : f > ok 3 - knitro OPF : bus data > ok 4 - knitro OPF : bus voltage > ok 5 - knitro OPF : bus lambda > ok 6 - knitro OPF : bus mu > ok 7 - knitro OPF : gen data > ok 8 - knitro OPF : gen dispatch > ok 9 - knitro OPF : gen mu > ok 10 - knitro OPF : branch data > ok 11 - knitro OPF : branch flow > ok 12 - knitro OPF : branch mu > ok 13 - knitro OPF : (single-block PWL) : success > ok 14 - knitro OPF : (single-block PWL) : f > ok 15 - knitro OPF : (single-block PWL) : bus data > ok 16 - knitro OPF : (single-block PWL) : bus voltage > ok 17 - knitro OPF : (single-block PWL) : bus lambda > ok 18 - knitro OPF : (single-block PWL) : bus mu > ok 19 - knitro OPF : (single-block PWL) : gen data > ok 20 - knitro OPF : (single-block PWL) : gen dispatch > ok 21 - knitro OPF : (single-block PWL) : gen mu > ok 22 - knitro OPF : (single-block PWL) : branch data > ok 23 - knitro OPF : (single-block PWL) : branch flow > ok 24 - knitro OPF : (single-block PWL) : branch mu > ok 25 - knitro OPF : (single-block PWL) : check on raw x returned from OPF > ok 26 - knitro OPF : (P line lim) : success > ok 27 - knitro OPF : (P line lim) : f > ok 28 - knitro OPF : (P line lim) : bus data > ok 29 - knitro OPF : (P line lim) : bus voltage > ok 30 - knitro OPF : (P line lim) : bus lambda > ok 31 - knitro OPF : (P line lim) : bus mu > ok 32 - knitro OPF : (P line lim) : gen data > ok 33 - knitro OPF : (P line lim) : gen dispatch > ok 34 - knitro OPF : (P line lim) : gen mu > ok 35 - knitro OPF : (P line lim) : branch data > ok 36 - knitro OPF : (P line lim) : branch flow > ok 37 - knitro OPF : (P line lim) : branch mu > ok 38 - knitro OPF : w/quadratic generalized gen cost : success > ok 39 - knitro OPF : w/quadratic generalized gen cost : f > ok 40 - knitro OPF : w/quadratic generalized gen cost : bus data > ok 41 - knitro OPF : w/quadratic generalized gen cost : bus voltage > ok 42 - knitro OPF : w/quadratic generalized gen cost : bus lambda > ok 43 - knitro OPF : w/quadratic generalized gen cost : bus mu > ok 44 - knitro OPF : w/quadratic generalized gen cost : gen data > ok 45 - knitro OPF : w/quadratic generalized gen cost : gen dispatch > ok 46 - knitro OPF : w/quadratic generalized gen cost : gen mu > ok 47 - knitro OPF : w/quadratic generalized gen cost : branch data > ok 48 - knitro OPF : w/quadratic generalized gen cost : branch flow > ok 49 - knitro OPF : w/quadratic generalized gen cost : branch mu > ok 50 - knitro OPF : w/quadratic generalized gen cost : user cost > ok 51 - knitro OPF : w/extra constraints & costs 1 : success > ok 52 - knitro OPF : w/extra constraints & costs 1 : f > ok 53 - knitro OPF : w/extra constraints & costs 1 : bus data > ok 54 - knitro OPF : w/extra constraints & costs 1 : bus voltage > ok 55 - knitro OPF : w/extra constraints & costs 1 : bus lambda > ok 56 - knitro OPF : w/extra constraints & costs 1 : bus mu > ok 57 - knitro OPF : w/extra constraints & costs 1 : gen data > ok 58 - knitro OPF : w/extra constraints & costs 1 : gen dispatch > ok 59 - knitro OPF : w/extra constraints & costs 1 : gen mu > ok 60 - knitro OPF : w/extra constraints & costs 1 : branch data > ok 61 - knitro OPF : w/extra constraints & costs 1 : branch flow > ok 62 - knitro OPF : w/extra constraints & costs 1 : branch mu > ok 63 - knitro OPF : w/extra constraints & costs 1 : user variable > ok 64 - knitro OPF : w/extra constraints & costs 1 : user cost > ok 65 - knitro OPF : w/capability curves : success > ok 66 - knitro OPF : w/capability curves : f > ok 67 - knitro OPF : w/capability curves : bus data > ok 68 - knitro OPF : w/capability curves : bus voltage > ok 69 - knitro OPF : w/capability curves : bus lambda > ok 70 - knitro OPF : w/capability curves : bus mu > ok 71 - knitro OPF : w/capability curves : gen data > ok 72 - knitro OPF : w/capability curves : gen dispatch > ok 73 - knitro OPF : w/capability curves : gen mu > ok 74 - knitro OPF : w/capability curves : branch data > ok 75 - knitro OPF : w/capability curves : branch flow > ok 76 - knitro OPF : w/capability curves : branch mu > ok 77 - knitro OPF : w/angle difference limits : success > ok 78 - knitro OPF : w/angle difference limits : f > ok 79 - knitro OPF : w/angle difference limits : bus data > ok 80 - knitro OPF : w/angle difference limits : bus voltage > ok 81 - knitro OPF : w/angle difference limits : bus lambda > ok 82 - knitro OPF : w/angle difference limits : bus mu > ok 83 - knitro OPF : w/angle difference limits : gen data > ok 84 - knitro OPF : w/angle difference limits : gen dispatch > ok 85 - knitro OPF : w/angle difference limits : gen mu > ok 86 - knitro OPF : w/angle difference limits : branch data > ok 87 - knitro OPF : w/angle difference limits : branch flow > ok 88 - knitro OPF : w/angle difference limits : branch mu > ok 89 - knitro OPF : w/angle difference limits : branch angle mu > ok 90 - knitro OPF : w/ignored angle difference limits : success > ok 91 - knitro OPF : w/ignored angle difference limits : f > ok 92 - knitro OPF : w/ignored angle difference limits : bus data > ok 93 - knitro OPF : w/ignored angle difference limits : bus voltage > ok 94 - knitro OPF : w/ignored angle difference limits : bus lambda > ok 95 - knitro OPF : w/ignored angle difference limits : bus mu > ok 96 - knitro OPF : w/ignored angle difference limits : gen data > ok 97 - knitro OPF : w/ignored angle difference limits : gen dispatch > ok 98 - knitro OPF : w/ignored angle difference limits : gen mu > ok 99 - knitro OPF : w/ignored angle difference limits : branch data > ok 100 - knitro OPF : w/ignored angle difference limits : branch flow > ok 101 - knitro OPF : w/ignored angle difference limits : branch mu > All tests successful (101 of 101) > Elapsed time 0.83 seconds. > > > I am not sure if the success in the output of t_opf_knitro imply that opf was > successful (!!), but the success in the results struct says 0. > > Regards, > Angelina > > From: [email protected] <mailto:[email protected]> > Subject: Re: knitro does not converge > Date: Mon, 23 Mar 2015 14:57:10 -0400 > To: [email protected] <mailto:[email protected]> > > Later versions of Knitro changed their Matlab interface and have not been > tested with older versions of MATPOWER that used an older interface, so I’m > not sure what to expect with that combination. > > Could I see the output of mpver and the output of t_opf_knitro? > > Ray > > > On Mar 23, 2015, at 1:47 PM, angelina sirri <[email protected] > <mailto:[email protected]>> wrote: > > I am using matpower 4.1 and knitro 9.1.0. > > And also all tests are successful when I type test_matpower. Why should there > be a problem with older matpower versions? > > Regards, > Angelina > > From: [email protected] <mailto:[email protected]> > Subject: Re: knitro does not converge > Date: Mon, 23 Mar 2015 11:59:08 -0400 > To: [email protected] <mailto:[email protected]> > > Knitro solves it just fine on my machine. Are you using the current versions > of both MATPOWER (5.1) and Knitro (9.1.0)? (type mpver to see what versions > you have installed) And does it pass all of the tests? (type test_matpower). > > Ray > > > On Mar 20, 2015, at 10:58 AM, angelina sirri <[email protected] > <mailto:[email protected]>> wrote: > > Hello, > I recently installed KNITRO but it seems I can never make it converge! In the > attachment there is an mpc case which perfectly converges with the default > solver: > mpopt=mpoption('OPF_ALG',0,'VERBOSE',0,'OUT_ALL',0); > > but when I am trying to use KNITRO, > (mpopt=mpoption('OPF_ALG',600,'VERBOSE',0,'OUT_ALL',0) > > with any loading condition (the one in the attachment is the peak condition) > I never get the case to converge without any notification appeared in the > screen. > Any advice would be really appreciated. > > Regards, > Angelina > <test_case_angelina.mat>
