oplrun command does not work

3 次查看(过去 30 天)
Zi
Zi 2022-3-25
评论: Zi 2022-3-27
Does anyone know why my "oplrun command" does not run my cplex model?
I wrote two following lines in matlab and expected it to run my cplex model. But it only opens IBM ILGO CPLEX without runing the model.
command = 'oplrun model.mod model.dat';
[status, cmdout] = system(commandx);
Any help is greatly appreciated.
Thanks.
  2 个评论
Walter Roberson
Walter Roberson 2022-3-25
Could you confirm that model.mod and model.dat are in the current directory at the time you system() ?
And could you confirm that oplrun is in your Windows path ?
Zi
Zi 2022-3-27
Thank you so much @Walter Roberson. Directory was the problem.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by