2

我正在尝试使用 SCIP 求解器(http://scip.zib.de/)。我的输入 ( 1.lp) 是lpsolve格式。它看起来像这样:

max:  +2 x_0_0;
 +x_0_0 <= 1;
 +x_0_0 <= 1;
 -3x_0_0 <= 0;
0 <= x_0_0 <= 1;
int x_0_0;

我像这样运行 SCIP:

"c:\Program Files\SCIP\scip.exe" -f 1.lp -l 1.lp.out

但是,SCIP 会生成以下输出:

SCIP version 3.0.0 [precision: 8 byte] [memory: block] [mode: optimized] [LP solver: SoPlex 1.7.0] [GitHash: c95600b]
Copyright (c) 2002-2012 Konrad-Zuse-Zentrum fuer Informationstechnik Berlin (ZIB)

External codes: 
  SoPlex 1.7.0         Linear Programming Solver developed at Zuse Institute Berlin (soplex.zib.de) [GitHash: 657dfe5]
  cppad-20120101.3     Algorithmic Differentiation of C++ algorithms developed by B. Bell (www.coin-or.org/CppAD)
  Ipopt 3.10.2         Interior Point Optimizer developed by A. Waechter et.al. (www.coin-or.org/Ipopt)

user parameter file <scip.set> not found - using default parameters

read problem <[...]1.lp>
============

  input: 
         ^
error reading file <[...]1.lp>

我想这意味着它在空白处窒息......我做错了什么?

编辑:

有关详细信息,请参阅我的答案。以 CPLEX 格式提供输入后,一切正常。

4

1 回答 1

1

答案是 SCIP 显然无法读取 lpsolve 输入文件。他们在此可读文件格式概述中所指的 LP 格式实际上是 CPLEX LP 格式。

于 2013-03-18T15:36:13.357 回答