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



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

Reply via email to