如何在oplrun中更改CPLEX参数? [英] How to change CPLEX parameters in oplrun?

查看:194
本文介绍了如何在oplrun中更改CPLEX参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以让 oplrun 采用特定的CPLEX参数,例如CPX_PARAM_LPMETHOD(线性编程方法)。在此处的引用 ,它用不同语言的各种名称来调用:

Is there a way to let oplrun take a specific CPLEX parameter, such as CPX_PARAM_LPMETHOD (Linear Programming method). In the reference here, it is called by various names for different languages:

C Name: CPX_PARAM_LPMETHOD

C++ Name: RootAlg

Java Name: RootAlg

.NET Name: RootAlg

InteractiveOptimizer: lpmethod 

但是没有关于OPL或oplrun的参考。

But there is no reference about the OPL or oplrun.

是否可以在 oplrun 会话?还是我必须使用其他语言/界面?

Is it possible to change this parameter in an oplrun session? Or do I have to use these other languages/interfaces?

推荐答案

在您可能会写的.mod中

in the .mod you may write

execute
{
  cplex.lpmethod=4;
}

,然后您将在日志中看到

and then you will see in the log

CPXPARAM_LPMethod                                4

致谢

这篇关于如何在oplrun中更改CPLEX参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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