[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] [Fwd: Difference between glpsol and C-API]
From: |
Andrew Makhorin |
Subject: |
[Help-glpk] [Fwd: Difference between glpsol and C-API] |
Date: |
Sat, 01 Mar 2014 00:09:46 +0400 |
-------- Forwarded Message --------
From: Gabriel Gelius-Dietrich <address@hidden>
To: address@hidden
Subject: Difference between glpsol and C-API
Date: Fri, 28 Feb 2014 15:58:34 +0100
Hi,
I have a question concerning the difference between glpsol and the C-API
of glpk.
The attached C source code file test.c contains a very tiny linear
optimization problem, the problem gets solved by glp_simplex and the
value of the objective function and of the primary variables after
optimization are printed out. Before the optimization, the problem will
be written to an lp file test.lp.
Using this file with glpsol, gives another result than the C-API
(objective value stays the same, but the values of the variables differ
in some cases).
glpsol --lp test.lp -o test.sol
I am using glpk version 4.45 on debian wheezy (stable).
Is there any explanation for this behavior?
Thanks a lot fir help,
Gabriel Gelius-Dietrich
test.c
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-glpk] [Fwd: Difference between glpsol and C-API],
Andrew Makhorin <=