Ziena Optimization Inc.        




shim


Follow these instructions to install KNITRO-MATLAB

(student edition)

In order to use KNITRO-MATLAB, you need MATLAB® R2008a or later with Optimization Toolbox™.

  1. Visit the download page and click "Download a Copy". After filling out the online form, download the Student/Evaluation version of KNITRO. This will create a directory called "knitro-x.x.x-student".
  2. Read the file INSTALL-student. It tells you to do the following:
    a) Run the executable get_machine_ID in the command line.
    b) With the ID provided, go to www.ziena.com/trial.html and fill in the form.
    c) A license number will appear. Create a NEW text file called ziena_license.txt and paste the license number in this file. This license number should be the only information contained in ziena_license.txt.
  3. The ziena_license.txt file must be made accessible to KNITRO. INSTALL-student describes the ways in which to do this.
  4. To run KNITRO in MATLAB, you must set the environment variable to point to
    the directory in which the KNITRO libraries are stored (the lib folder included in the download).

    In Linux:

    1. Type in your command line: setenv LD_LIBRARY_PATH <absolute path name>

    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.
  5. To test whether your installation was successfull, 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.