Hi.
As a first-time user of glpk, I tried an example from an old university
text book. The model is given in comments in the enclosed C source code
below.
I am using a Fedora 11 machine; uname gives this output:
2.6.29.6-217.2.3.fc11.x86_64 #1 SMP Wed Jul 29 16:02:42 EDT 2009 x86_64
x86_64
> As a first-time user of glpk, I tried an example from an old university
> text book. The model is given in comments in the enclosed C source code
> below.
> I am using a Fedora 11 machine; uname gives this output:
> 2.6.29.6-217.2.3.fc11.x86_64 #1 SMP Wed Jul 29 16:02:42 EDT 2009 x86_64
> x86_
On 08/25/2009 08:41 AM, Andrew Makhorin wrote:
Glp_intopt requires an optimal solution to lp relaxation, i.e. in case
of mip you need to call glp_simplex first and then call glp_intopt.
That's funny, I specifically issued the statement
control_params.presolve = GLP_ON;
before calling glp_in
> That's funny, I specifically issued the statement
> control_params.presolve = GLP_ON;
> before calling glp_intopt(). My understanding from the documentation
> is that this would tell it to do the simplex pre-solve on its own.
> Furthermore, the trace it showed on the screen indicated that it ha
On 08/25/2009 09:49 AM, Andrew Makhorin wrote:
However, to obtain mip solution components you need to use api
routine glp_mip_col_val rather than glp_get_col_prim (the latter
retrieves basic lp solution, not mip solution).
Yup, that worked. Also glp_mip_obj_val(). Thanks.
-Will
___