0

我正在尝试在 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)。

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

4

1 回答 1

0

CPLEX 12.7.1 不支持 MATLAB R2013a(请参阅详细的系统要求)。您必须使用较新版本的 MATLAB 或较旧版本的 CPLEX。

于 2017-04-14T19:32:36.023 回答