Originally posted by: tl_yjq
I have Matlab( R2007b) and Cplex 12.4 in my computer and my PC OS is Windows 7 Ultimate 64bit. I can use Matlab and Cplex separately. But I cannot use Matlab to call Cplex.
The Cplex is 32-bit. But a friend of mine whose OS is also Windows 7 Ultimate 64bit, has already call the Cplex124 in his Matlab 2007b. However, he forgot the specific installation method.
The "Set Path" in Matlab is :
-
E:\Program Files (x86)\IBM\ILOG\CPLEX_Studio124\cplex\examples\src\matlab
-
E:\Program Files (x86)\IBM\ILOG\CPLEX_Studio124\cplex\matlab
-
E:\Program Files (x86)\IBM\ILOG\CPLEX_Studio124\cplex\matlab\x86_win32
-
E:\Program Files (x86)\IBM\ILOG\CPLEX_Studio124\cplex\matlab\x86_win32\help
-
E:\Program Files (x86)\IBM\ILOG\CPLEX_Studio124\cplex\matlab\x86_win32\help\helpsearch
-
E:\Program Files (x86)\IBM\ILOG\CPLEX_Studio124\cplex\matlab\x86_win32\help\topics
In Matlab- Product Help, I can find some examples of Cplex.
When I choose an m file from "Examples of the Cplex Class API" and run it, then,
Usage: lpex1(X)
where X is one of the following options:
'r' generate problem by row
'c' generate problem by column
'a' generate problem by arrays
Exiting...
>> lpex1('r')
Could not open file cplexlink124.mexw64. Please update your path.
When I choose an m file from "Examples of the CPLEX for MATLAB Toolbox", the command window shows that,
Undefined function or method 'cplexlink124' for input arguments of type 'Cplex'.
How can I use Matlab to call Cplex?
#CPLEXOptimizers#DecisionOptimization