Installation and setup of the CPLEX Matlab connector

Technote (FAQ)


Question

After installing CPLEX Optimization Studio, how do I set up the CPLEX Matlab connector?

Answer

This information is available in <CPLEX_Optimization_Studio>/cplex/readme<OS_type>.html file where <OS_type> refers to the type of your OS, like Windows, UNIX and so on.

Essentially one needs to use MATLAB command 'addpath' to add the folder containing the mex files to MATLAB path like such:

addpath('<CPLEX_Optimization_Studio>/cplex/matlab/<port>')

or

addpath('<CPLEX_Optimization_Studio>/cplex/matlab')

depending on the folder in which you can find the cplexlink mex file.

Please note that you need to use 32-bit CPLEX MATLAB connector if you are using 32-bit MATLAB, even if your operating system is 64-bit.

Rate this page:

(0 users)Average rating

Document information


More support for:

IBM ILOG CPLEX Optimization Studio
Installation

Software version:

12.2, 12.2.0.1, 12.3, 12.4, 12.5, 12.5.0.1, 12.5.1, 12.6

Operating system(s):

Linux, Mac OS, Windows

Software edition:

Edition Independent

Reference #:

1626396

Modified date:

2014-06-02

Translate my page

Machine Translation

Content navigation