[Top][All Lists]
[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.
Re: [Help-glpk] glp_get_status, Robbie Morrison, 2011/10/17