由于无效的 mex 文件,cplex 不会在 matlab 上 运行

cplex would not run on matlab due to invalid mex-file

我正在尝试在 matlab 上使用 cplex,但出现以下错误:

Error using cplexlp (line 256)
Invalid MEX-file 'C:\Program
Files\IBM\ILOG\CPLEX_Studio1271\cplex\matlab\x64_win64\cplexlink1271.mexw64': The specified
procedure could not be found.

Error in cplex_example (line 12)
[x,fval,exitflag,output] = cplexlp(f,A,b,Aeq,beq,lb,ub,options);

我已经添加了如下路径:

addpath ('C:\Program Files\IBM\ILOG\CPLEX_Studio1271\cplex\matlab\x64_win64')
addpath('C:\Program Files\IBM\ILOG\CPLEX_Studio1271\cplex\examples\src\matlab')
savepath

我的笔记本电脑运行 Windows 10 64 位,我的 matlab 是 R2013a 64 位,cplex 是 cplex 12.7.1 win-x86-64。

我看到一个类似问题的答案,他们说必须通过 dependency walker 检查。 Dependency walker 显示一大堆 API-MS-WIN-CORE、EVENTING、SECURITY、SERVICE、EXT-MS-WIN-GDI 等 dll 文件丢失。

我看了一些暗示这些包含在 Visual C++ Redistributable 包中的帖子,所以我安装了所有版本的 Microsoft Visual C++ Redistributable(x86 和 x64 只是为了确定)。

但我仍然有问题。我在这里错过了什么?任何帮助将不胜感激。

CPLEX 12.7.1 不支持 MATLAB R2013a(请参阅 detailed system requirements)。您要么必须使用较新版本的 MATLAB,要么必须使用较旧版本的 CPLEX。