IBM Support

Installation and setup of the CPLEX Matlab connector

Question & Answer


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.

[{"Product":{"code":"SSSA5P","label":"IBM ILOG CPLEX Optimization Studio"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Installation","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF014","label":"iOS"},{"code":"PF033","label":"Windows"}],"Version":"12.6;12.5.1;12.5.0.1;12.5;12.4;12.3;12.2.0.1;12.2","Edition":"Edition Independent","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21626396