Monday, July 15, 2013

Installing CPLEX for MATLAB -- Step by Step Instructions

Probably you are angry this time because of confusing instruction found on internet to use CPLEX solver through MATLAB. Same thing happened to me.  Don't worry, it is very simple just follow the steps below:

1.  Download and install acedamic version of IBM ILOG CPLEX Optimization Studio

Click here to download from IBM website

2. After Completion of installation, open MATLAB and type:

>> pathtool

This command open up a Set Path window. Click on add folder and browse following folder:
 
     C:\Program Files\IBM\ILOG\CPLEX_Studio_Preview125\cplex\matlab\x64_win64
Once you add folder click on save and close. This step will enable CPLEX functions into the matlab.

3. Repeat the step 2 for following folder to use example file from your help window.
C:\Program Files\IBM\ILOG\CPLEX_Studio_Preview125\cplex\examples\src\matlab

4. Once Step 3 complete, click on start menu of MATLAB and select toolboxs option. Now, you can see CPLEX for MATLAB. Select CPLEX for MATLAB and click on help. Now you can use example files and run program to get results.

Have fun working with CPLEX and optimization.

If someone found this information is helpful, please comment. This will keep motivating me to write more on various topics.