Ziena Optimization Inc.        




shim


Follow these instructions to connect existing KNITRO® libraries to MATLAB®

If you already have the KNITRO libraries, you must set the environment variable to include the folder containing the KNITRO libraries. Follow the instructions for your operating system below to get started using KNITRO-MATLAB.

In Linux:

  1. Type in your command line:

setenv LD_LIBRARY_PATH <file_absolute_path>:$LD_LIBRARY_PATH

In MacIntosh:

  1. In Terminal (in the Utilities folder of the Applications folder) enter the following: edit /etc/profile
  2. Add the following line:

export DYLD_LIBRARY_PATH=<file_absolute_path>:$DYLD_LIBRARY_PATH

In Windows:

  1. At the Windows desktop, right-click My Computer (Windows XP) or Computer (Vista) and select Properties
  2. Click the Advanced tab (Windows XP) or Advanced System Settings (Vista).
  3. Click Environment Variables. Then under System Variables, edit the Path variable to add the KNITRO library folder.

To test whether your installation was successful, restart MATLAB and type in the expression
[x fval] = ktrlink(@(x)cos(x),1) in the command line. If your installation was successful, ktrlink returns x = 3.1416, fval = -1.

Further instructions are available on the ktrlink page on The MathWorks® website.

If you are having trouble, contact info@ziena.com.

shim  

 

 Ziena Optimization, Inc.  |   Webmaster   | © 2001-2009 Ziena Optimization Inc.   |   KNITRO® is developed by Ziena and is distributed worldwide by Artelys.