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?

On Mon, Oct 17, 2011 at 6:45 PM, Robbie Morrison <[email protected]>wrote:

>
> ------------------------------------------------------------
> To:           name name <[email protected]>
> Subject:      Re: [Help-glpk] glp_get_status
> Message-ID:  <1318860955.25925.18.camel@corvax>
> From:         Andrew Makhorin <[email protected]>
> Date:         Mon, 17 Oct 2011 18:15:55 +0400
> ------------------------------------------------------------
>
> >> For the LP model the whot is the value for the
> >> GLP_INFEAS (solution is infeasible) ?
> >>
> >> Is there another value for the problems SUBOPTIMAL if
> >> not what the status will send?
> >
> > Your question is unclear. Please reformulate it.
> >
> > Solution statuses returned by glp_get_status,
> > glp_get_prim_stat, and glp_get_dual_stat are described
> > in the glpk reference manual included in the
> > distribution.
>
> Follow up (not the clearest question in the world,
> I gota say):
>
> The code GLP_FEAS implies the current solution is
> suboptimal and the code GLP_OPT means an optimal
> solution has been found.
>
> Robbie
> ---
> Robbie Morrison
> PhD student -- policy-oriented energy system simulation
> Technical University of Berlin (TU-Berlin), Germany
> University email (redirected) : [email protected]
> Webmail (preferred)           : [email protected]
> [from Webmail client]
>
>
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to