help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] using glpk_exact


From: Andrew Makhorin
Subject: Re: [Help-glpk] using glpk_exact
Date: Thu, 15 Aug 2013 07:53:49 +0400

> I am using GLPK to solve an LP problem. I would like to solve my LP
> problem in exact arithmetic by using the routine glp_exact. However, I
> am confused about how to use it. In theory one should use this after
> invoking glp_simplex to save time.
> 
> For example, is it just:
> 
> lp = glp_create_prob();
> .
> .
> .
> (problem definition)
> .
> .
> .
> glp_smcp parm;        
> glp_init_smcp(&parm); 
> parm.meth = GLP_PRIMAL; 
> glp_simplex(lp, &parm); 
> glp_exact(lp);
> 
> Z = glp_get_obj_val(lp);
> 
> ?
> 

Yes, your code should work. 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]