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. 

13 comments:

  1. Thanks so much!! This worked perfectly.

    ReplyDelete
  2. I can´t download the academic version, in the link there is only fixes... Help!

    ReplyDelete
  3. Thank you so much; quite useful.

    ReplyDelete
  4. I also can´t download the academic version, in the link there is only fixes...

    ReplyDelete
  5. I also can´t download the academic version!!!!!!!!

    ReplyDelete
  6. The description online was so confusing, yours was simple and direct.Thanks so much.

    ReplyDelete
  7. Does CPLEX only work on 64 bit windows. I could not find a 32 bit version. If you know kindly let me know.

    ReplyDelete
  8. I want to share with you all here on how I get my loan from Mr Benjamin who help me with a loan of 400,000.00 Euro to improve my business, It was easy and swift when i apply for the loan when things was getting rough with my business Mr Benjamin grant me loan without delay. here is Mr Benjamin email/whatsapp contact: +1 989-394-3740, 247officedept@gmail.com / 

    ReplyDelete