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 mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to