[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] glpsol cannot solve exported CPLEX file
From: |
Heinrich Schuchardt |
Subject: |
[Bug-glpk] glpsol cannot solve exported CPLEX file |
Date: |
Fri, 11 Jul 2014 23:20:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
Hello Andrew,
given the following model:
var x, >=0;
minimize obj : x + 5;
end;
I export it with
glpsol -m test.mod --wlp test.lp --check
I get
\* Problem: test *\
Minimize
obj: + x
\* constant term = 5 *\
Subject To
End
Then I run
glpsol --lp test.lp
and receive the following output:
Reading problem data from 'test.lp'...
test.lp:9: missing variable name
CPLEX LP file processing error
The bug is in glpcpx.c. In parse_constraints() the token check should be
moved from the end of the loop to the start of the loop.
Best regards
Heinrich Schuchardt
- [Bug-glpk] glpsol cannot solve exported CPLEX file,
Heinrich Schuchardt <=