使用Matlab触发CPLEX [英] Triggering CPLEX using Matlab

查看:227
本文介绍了使用Matlab触发CPLEX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Matlab运行CPLEX OPL项目?代码将用CPLEX求解器编写,但将由Matlab触发(RUN).

Is there any way to run a CPLEX OPL project using Matlab? Code will be written in CPLEX solver but it will be triggered (RUN) by Matlab.

推荐答案

尽管我还没有尝试过,但这应该是可能的.您可以使用 oplrun 以从命令行执行OPL模型和项目".而且,在MATLAB中,您可以使用 system 来执行操作系统命令并返回输出".结合两者应该可以解决问题.

Although I have not tried, this should be possible. You can use oplrun to "execute OPL models and projects from the command line". And, in MATLAB you can use system to "execute operating system command and return output". Combining the two should do the trick.

这篇关于使用Matlab触发CPLEX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆