2016-03-06 53 views
0

我想了解如何使用NEOS Server for SCIP。我已阅读关于CPLEX LP file format的教程。但是我仍然无法获得任何结果。如何将NEOS服务器用于SCIP?

让我们在教程中提供的示例:

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并使用1st按钮上传(输入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. 

回答

3

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

MPS格式(例如参见http://lpsolve.sourceforge.net/5.5/mps-format.htm)是一种替代方案,但远不如LP格式那样可读。

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

相关问题