help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] glp_get_status


From: Andrew Makhorin
Subject: Re: [Help-glpk] glp_get_status
Date: Mon, 17 Oct 2011 23:33:21 +0400

> I solve LP model like this 
> glp_simplex(lp, parm)
> 
> I wont like to have the status of the solution to ba able to write
> something like this
> 
> if(status ==optimal)... 
> 
> else if (status== infisible)....
> 
> how can I do that? 
> 

ret = glp_simplex(lp, parm);
if (ret != 0)
   goto fail;
status = glp_get_status(lp);
if (status == GLP_OPT)
   ...
else if (status == GLP_NOFEAS)
   ...

Please see the glpk reference manual for details.





reply via email to

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