Prev: Error" "he output arguments of the returned function not assigned"
Next: Database stored procedure parameters
From: Frederico on 8 Apr 2010 15:57 "Ian Washington" <idwashin(a)uwaterloo.ca> wrote in message <gsfosv$cj7$1(a)fred.mathworks.com>... > Hello, > > I am trying to install Ziena Optimization's KNITRO 6.0 solver in the latest version of matlab to complement the optimization toolbox that I have already installed. I am running a windows vista 64 bit system with the 32 bit version of matlab 7.8 (R2009a) . According to Ziena Optimization you need to change the dll file in the lib directory of the program from knitro600.dll to knitro520.dll and then set the system wide environment variable to the location of this dll file. After doing all this then starting up matlab and running the folloing test (as specified in the documentation) I keep getting the following error: > > >> [x fval] = ktrlink(@(x)cos(x),1) > ??? Error using ==> ktrlink at 439 > ktrlink was to unable locate a dynamic library. > ktrlink requires the third-party KNITRO libraries in order to run: > if you have these libraries installed, then include them on the system path, > restart MATLAB, and try again. Type doc ktrlink for more information. > > The install directory is as follows: > C:\Program Files (x86)\Ziena\knitro-6.0.0-student-WinMSVC71\lib > > and I set the environment variable accordingly. Note that I am using the 32 bit knitro 6.0 libraries since my matlab is 32 bit. Note sure that this matter though. I also tried renaming the other dll files in the \lib folder by removing the '600' part and replacing with '520', since apparently the ktrlink interface provided by Mathworks only recognizes the '520' designation. > > So, my question is has anyone been able to successfully get knitro 6.0 to work in the latest matlab version, and if so could you kindly enlighten me on how to do so. > > Thanks, > Ian. Dear Ian, Did you find a solution to this problem? I am having a similar problem right now... Thanks! Frederico
From: Nicolas on 9 Apr 2010 04:37
If you use windows, in order to use KNITRO 6.0 with a version of Matlab before R2009A (no longer needed from R2009B), in the "lib" folder provided with the KNITRO distribution, please make a copy of "knitro600.dll" and rename it to "knitro520.dll". If you use linux, in the "lib" folder provided with the KNITRO distribution, you need to create symbolic links with the following commands: ln -s libJNI-knitro600.so libJNI-knitro520.so ln -s libknitro600.a libknitro520.a ln -s libknitro.so.6 libknitro.so.5 ln -s libknitro.so.6.0 libknitro.so.5.2 ln -s libknitro.so.6.0.0 libknitro.so.5.2.0 Nicolas Omont. "Frederico " <fbelo(a)umn.edu> wrote in message <hplcej$4ds$1(a)fred.mathworks.com>... > "Ian Washington" <idwashin(a)uwaterloo.ca> wrote in message <gsfosv$cj7$1(a)fred.mathworks.com>... > > Hello, > > > > I am trying to install Ziena Optimization's KNITRO 6.0 solver in the latest version of matlab to complement the optimization toolbox that I have already installed. I am running a windows vista 64 bit system with the 32 bit version of matlab 7.8 (R2009a) . According to Ziena Optimization you need to change the dll file in the lib directory of the program from knitro600.dll to knitro520.dll and then set the system wide environment variable to the location of this dll file. After doing all this then starting up matlab and running the folloing test (as specified in the documentation) I keep getting the following error: > > > > >> [x fval] = ktrlink(@(x)cos(x),1) > > ??? Error using ==> ktrlink at 439 > > ktrlink was to unable locate a dynamic library. > > ktrlink requires the third-party KNITRO libraries in order to run: > > if you have these libraries installed, then include them on the system path, > > restart MATLAB, and try again. Type doc ktrlink for more information. > > > > The install directory is as follows: > > C:\Program Files (x86)\Ziena\knitro-6.0.0-student-WinMSVC71\lib > > > > and I set the environment variable accordingly. Note that I am using the 32 bit knitro 6.0 libraries since my matlab is 32 bit. Note sure that this matter though. I also tried renaming the other dll files in the \lib folder by removing the '600' part and replacing with '520', since apparently the ktrlink interface provided by Mathworks only recognizes the '520' designation. > > > > So, my question is has anyone been able to successfully get knitro 6.0 to work in the latest matlab version, and if so could you kindly enlighten me on how to do so. > > > > Thanks, > > Ian. > > Dear Ian, > > Did you find a solution to this problem? I am having a similar problem right now... > > Thanks! > Frederico |