IBM Support

Installation and setup of the CPLEX Matlab connector

Technote (FAQ)


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


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:




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.

Document information

More support for: IBM ILOG CPLEX Optimization Studio

Software version: 12.2,, 12.3, 12.4, 12.5,, 12.5.1, 12.6

Operating system(s): Linux, Windows, iOS

Software edition: Edition Independent

Reference #: 1626396

Modified date: 29 October 2014

Translate this page: