如何在没有 IDE 的情况下执行 Cplex 运行 配置

How to execute Cplex Run Configuration without IDE

我不知道这是否可能,但我想在不打开 Cplex IDE 和 [=19] 中的项目的情况下执行我的 Cplex 项目的 运行 配置=]从那里开始。

我能否以某种方式双击配置 运行 的内容,或者可能是带有执行 运行 配置的命令行的批处理文件?

任何帮助/想法将不胜感激。

要从命令行执行 OPL 项目,您可以使用 oplrun. The most basic usage 如下:

oplrun [options] "model-file" "[data-file ...]"

要在项目中执行特定的 运行 配置,请遵循以下语法:

oplrun [options] -p project-dir [run-configuration]

要了解更多信息,请参阅 run configurations and the oplrun command line options 的文档。特别是,请参阅 -ph 选项,其中:

Displays the run configurations available in the specified project. This is most useful on Unix platforms, where one cannot view this information in the CPLEX Studio IDE.

如果您不知道 运行 配置的名称,请尝试 运行 -ph 选项以获取列表。