【问题标题】:How to use NEOS Server for SCIP?如何使用 NEOS 服务器进行 SCIP?
【发布时间】:2016-03-06 21:36:14
【问题描述】:

我正在尝试了解如何使用NEOS Server for SCIP。我已经阅读了有关CPLEX LP file format 的教程。但我仍然无法得到任何结果。

让我们以该教程中提供的示例为例:

Maximize
 obj: x1 + 2 x2 + 3 x3 + x4
Subject To
 c1: - x1 + x2 + x3 + 10 x4 <= 20
 c2: x1 - 3 x2 + x3 <= 30
 c3: x2 - 3.5 x4 = 0
Bounds
 0 <= x1 <= 40
 2 <= x4 <= 3
General
 x4
End

我必须以什么格式(文件扩展名)保存它?我尝试了.MPS 并使用第一个按钮上传了它(输入 MPS 格式数据文件的完整路径)。但我得到了:

error reading file <sample.mps>
SCIP> file <sample.osil> not found
SCIP> limits/time = 36000
SCIP> loaded parameter file <scip.set>
SCIP> 
no problem exists

SCIP> 
written solution information to file <results1>

SCIP> 
written statistics to file <results2>

SCIP> solution status: unknown
no solution available
SCIP Status        : initialization
Original Problem   : no problem exists.

【问题讨论】:

    标签: algorithm cplex scip


    【解决方案1】:

    如果您以 CPLEX LP 文件格式编写文件,则应使用第二个按钮上载它,该按钮适用于该格式。我试了一下,运行流畅。文件扩展名应该是“.lp”,但 NEOS 服务器似乎会自动将其重命名为正确的结尾。

    MPS 格式(例如,请参阅http://lpsolve.sourceforge.net/5.5/mps-format.htm)是一种替代方案,但远不如 LP 格式的人类可读性。

    如果您想为更复杂的问题建模,您应该看看数学建模语言。 NEOS 服务器还允许读取 ZIMPL 文件(请参阅 zimpl.zib.de),这是与 SCIP 优化套件中的 SCIP 一起提供的建模语言。但也可以使用 GAMS、AMPL 和 OSIL。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-27
      • 1970-01-01
      • 1970-01-01
      • 2014-03-18
      • 2017-06-17
      • 2017-12-17
      相关资源
      最近更新 更多