首页 文章

SCIP无法读取我的输入

提问于
浏览
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>

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

EDIT:

详情请见我的回答 . 在以CPLEX格式提供输入后,一切正常 .

1 回答

  • 1

    答案是SCIP显然无法读取lpsolve输入文件 . 他们在overview of readable file formats中引用的LP格式实际上是CPLEX LP格式 .

相关问题