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 <[email protected]>
> Subject:     Re: [Help-glpk] glpsol exit codes (was: a suggestion concerning a
> Message-ID: <[email protected]>
> From:        Xypron <[email protected]>
> 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) : [email protected]
Webmail (preferred)           : [email protected]
[from IMAP client]




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

Reply via email to