Principles and applications of systems biology
ChE-411
CPLEX Installation - IMPORTANT
This page is part of the content downloaded from CPLEX Installation - IMPORTANT on Sunday, 25 January 2026, 00:02. Note that some content and any files larger than 50 MB are not downloaded.
Description
Here you find some additional instructions should CPLEX not straight forward communicate with Matlab.
Page content
To test whether CPLEX is found in Matlab please proceed with the following:
- Check whether you find the function cplex () in MATLAB. Type cplex in MATLAB hit enter does it ask for additional arguments or does Matlab find the function? If Matlab finds the function you are good to proceed with step 3, else proceed with 2.
- If Matlab does not find the cplex solver add interface function folder manually to the MATLAB path. Therefore add e.g C:\Program Files\IBM\ILOG\CPLEX_Studio129\cplex\matlab\x64_win64 to the path for windows. For mac the path. Please mind that the version number of CPLEX_Studio129 depends on the version of cplex installed on your computer. Thus it is strongly recommended that you search this path by navigating through the IMB\ILOG\... folders yourself. For mac systems, the path should be similar to the following: /Users/maria/Applications/IBM/ILOG/CPLEX_Studio1271/cplex/matlab. Please mind the sections marked in red, depend on your user name and the respective version of CPLEX.
- Finally, change the solver used by matTFA by running changeCobraSolver('cplex_direct')
Alternatively, you can run the modify the following code using the respective locations of mtfa and CPLEX_Studio and run it every time you start Matlab:
addpath(genpath('/Users/maria/GIT_Folders/matTFA/'));
addpath(genpath('/Users/maria/Applications/IBM/ILOG/CPLEX_Studio1271/cplex/matlab'))
changeCobraSolver('cplex_direct', 'LP');