> 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. 



_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to