Follow these instructions to install KNITRO-MATLAB
(student edition)
In order to use KNITRO-MATLAB for Windows or Linux, you need MATLAB® R2008a or later with Optimization Toolbox™. For 64-bit Mac OS X you need MATLAB® R2010b or later.
- 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".
- 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.
- The ziena_license.txt file must be made accessible to KNITRO. INSTALL-student describes the ways in which to do this.
- 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:
- Type in your command line:
export LD_LIBRARY_PATH=<file_absolute_path>:$LD_LIBRARY_PATH
In MacIntosh:
- In Terminal (in the Utilities folder of the Applications folder) enter the following:
open /etc/profile
- Add the following line:
export DYLD_LIBRARY_PATH=<file_absolute_path>:$DYLD_LIBRARY_PATH
NOTE: Administrative priveleges are needed to modify the /etc/profile file.
NOTE: KNITRO for 64-bit Mac OS X requires MATLAB R2010b or later.
In Windows:
- At the Windows desktop, right-click My Computer (Windows XP) or Computer (Vista) and select Properties
- Click the Advanced tab (Windows XP) or Advanced System Settings (Vista).
- Click Environment Variables. Then under System Variables, edit the Path variable to add the KNITRO library folder.
- 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.
|
|
|