It’s not clear to me if this is a Knitro installation issue or a MATPOWER 
issue. Can you confirm that Knitro is installed correctly and working for other 
problems? If you are not able to get the example on …

   
http://www.mathworks.com/help/optim/ug/ktrlink-an-interface-to-knitro-libraries.html

… to work correctly, then I suggest you contact The MathWorks to help you 
resolve the installation issues.

If that example does work and you are still getting the problem with the 
MATPOWER case, feel free to send me the case file off-list and I’ll see if I 
can replicate the problem here.

-- 
Ray Zimmerman
Senior Research Associate
B30 Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645



On Oct 29, 2013, at 10:32 PM, Sören Kreimeier <[email protected]> 
wrote:

> Hello,
> 
> I am a university student using matpower for my opf-analyses.
> Looking for a good solver I'm having trouble setting up KNITRO.
> I did like it was told in the installation documentation but when running
> opf i get this error:
> 
>>> mpopt = mpoption('OPF_ALG', 600, 'VERBOSE', 0, 'OUT_ALL', 0);
>>> opfresults = runopf(mpc, mpopt)
> 
> Error using setupKTR
> KNITRO was unable to initialize the problem.
> 
> Error in ktrlink (line 401)
>    [kcontext,status,knitroOptions.algorithm,Hrow,Hcol] = ...
> Error in ktropf_solver (line 202)
> [x, f, info, Output, Lambda] = ktrlink(f_fcn, x0, Af, bf, Afeq, bfeq, ...
> Error in opf_execute (line 146)
>    [results, success, raw] = ktropf_solver(om, mpopt);
> Error in opf (line 225)
> [results, success, raw] = opf_execute(om, mpopt);
> Error in runopf (line 96)
> [r, success] = opf(casedata, mpopt);
> 
> Do you know, whats wrong here?
> I'm using the newest matpower and knitro on R2013a (Windows 7 x64).
> 
> I want to use KNITRO because I read that it is very stable regarding
> convergency.
> I have convergence issues on MIPS in roundabout 5 to 10% of my
> calculations (success = 0) and want to improve this.
> 
> Thanks in advance
> Sören
> 
> 
> 
> 

Reply via email to