Originally posted by: JohannesNL
Hi guys,
There are some compatibility issues between MATLAB and CPLEX, so I hope I can get some help :).
Everything would be much appreciated!
I'm programming in Matlab and using it as a wrapper for Cplex.
Matlab has a built-in command to create a stand-alone executable (mcc).
It's my first time using this command and the script doesn't have any problems running it.
However, when I run this command, I get the following error:
Error using matlab.depfun.internal.cacheMtree (line 29)
MATLAB code 'C:\Program
Files\IBM\ILOG\CPLEX_Studio126\cplex\matlab\x86_win32\@Cplex\Cplex.m' contains
the following syntax error(s):
L 248 (C 7-14): FUNCTION keyword use is invalid here. This might cause later
messages about END.
L 1040 (C 4-6): Parse error at END: usage might be invalid MATLAB syntax.
Googling this problem leads to mathworks pointing fingers at IBM.
So, I checked the compatibility on this website:
https://www-01.ibm.com/support/docview.wss?uid=swg27019100 .
I use Matlab 2015a and Cplex 12.6.0.
My laptop has a 32 bit OS and Matlab 2015a is one of the last versions that supports 32 bit systems.
Hence I can't take a newer version for now.
Using the website stated above, I should use Cplex 12.7.0.
But I can't download older versions of Cplex. Only the 12.8 version shows up on the productfinder.
So, should I stick to 12.6 or upgrade to 12.8?
Is Matlab 2017b with Cplex 12.8 the best combination atm?
Can I use multiple versions of Cplex at the same time?
The stand-alone executable looks really handy and it would mean that I'ld only have to install Cplex on a machine to run my script.
I have a 64 bit desktop at home, so if my laptop can't create the executable, then I should still be able to create it using my desktop.
However, I'ld rather keep the versions on my systems close to each other as it would mean that the code can't be transferred as easily as now (I use 2015a or b on my desktop).
But in case I might resort to this option;
Which known combination of Matlab and Cplex would run the mcc-command?
Thanks in advance :).
Kind regards,
Johannes
#CPLEXOptimizers#DecisionOptimization