help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] glpsol exit codes


From: Robbie Morrison
Subject: Re: [Help-glpk] glpsol exit codes
Date: Thu, 04 Mar 2010 15:16:34 +0100
User-agent: Thunderbird 1.5.0.14ubu (X11/20080306)

Hello everyone, hello Andrew, Xypron

Thanks to Xypron for explaining the 'glpsol' return codes.

I suggest the following be added to the end of appendix
D "Stand-alone LP/MIP Solver" and to the 'glpsol'
manpage.  This information might also be appropriate
for "glpsol --help".  The final paragraph is advisory
and could be modified, included as a footnote, and/or
omitted altogether.

--- start ---

Return codes

0      all internal calls returned success
1      at least one internal call returned failure

A return code of 0 does not necessarily imply that the
problem (if supplied) is well-formed or feasible or
that a solution (if sought) was found.

The user can capture and process the console output as
text (using redirection and grep, for instance) to
determine the current status of submitted problem and
solution.

--- end ---

Let me know Andrew, if you would like patches for the
LaTeX (I presume) and manpage sources.

best wishes
Robbie
---

Xypron wrote:

> ------------------------------------------------------------
> To:          Robbie Morrison <address@hidden>
> Subject:     Re: [Help-glpk] glpsol exit codes (was: a suggestion concerning a
> Message-ID: <address@hidden>
> From:        Xypron <address@hidden>
> Date:        Wed, 24 Feb 2010 21:10:07 +0100
> ------------------------------------------------------------
>
> Hello Robbie,
>
> the relevant code is in
> src/glpapi19.c
>
> Two exit codes may occur in glpsol
> EXIT_SUCCESS and
> EXIT_FAILURE.
>
> The values are defined in stdlib.h
> #define EXIT_FAILURE    1       /* Failing exit status.  */
> #define EXIT_SUCCESS    0       /* Successful exit status.  */
>
> Best regards
>
> Xypron
>
>
> Robbie Morrison wrote:
>> Hello glpsol users, Andrew, Pietro Scionti
>>
>> Andrew suggested calling 'glpsol' from a script (see
>> below for his posting).
>>
>> In which case, interpreting the exit status from
>> 'glpsol' could be helpful.

[snip - sample bash scripts, scripting suggestion, original query]

---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : address@hidden
Webmail (preferred)           : address@hidden
[from IMAP client]






reply via email to

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