首页 文章

由于mex文件无效,cplex将无法在matlab上运行

提问于
浏览
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 .

我看到了一个类似问题的答案,他们说必须通过依赖性walker进行检查 . Dependency walker显示了一大堆API-MS-WIN-CORE,EVENTING,SECURITY,SERVICE,EXT-MS-WIN-GDI等dll文件丢失的地方 .

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

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

1 回答

  • 0

    CPLEX 12.7.1不支持MATLAB R2013a(参见detailed system requirements) . 您将不得不使用较新版本的MATLAB或较旧版本的CPLEX .

相关问题