#19525: Improve GLPK error handling
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  cython             |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  Not yet reported   |  Work issues:
  upstream; Will do shortly.         |       Commit:
         Branch:                     |  18265ee99fd0165d87b30324e7d81ea54e0b7c47
  u/jdemeyer/improve_glpk_error_handling|     Stopgaps:
   Dependencies:  #19527             |
-------------------------------------+-------------------------------------
Changes (by jdemeyer):

 * upstream:  Fixed upstream, in a later stable release. => Not yet reported
     upstream; Will do shortly.


Old description:

> This ticket adds a proper error handler for GLPK (similar to what we
> already have for PARI, NTL, ...). It suffices to add
> `sig_on()`/`sig_off()` around a GLPK call to get an error message.
>
> Some more cleanup is also done:
> 1. change the implementation of `MIPSolverException` to just inherit from
> `RuntimeError` without any custom implementation.
> 2. use `MemoryAllocator` in a few places to make some allocations safer.
>
> This branch requires a patch to GLPK which has been submitted upstream:
> [http://lists.gnu.org/archive/html/help-glpk/2015-11/msg00008.html]

New description:

 This ticket adds a proper error handler for GLPK (similar to what we
 already have for PARI, NTL, ...). It suffices to add
 `sig_on()`/`sig_off()` around a GLPK call to get an error message.

 Some more cleanup is also done:
 1. change the implementation of `MIPSolverException` to just inherit from
 `RuntimeError` without any custom implementation.
 2. use `MemoryAllocator` in a few places to make some allocations safer.

 This branch requires a patch to GLPK, a '''broken''' version of it was
 accepted upstream: [http://lists.gnu.org/archive/html/help-
 glpk/2015-11/msg00008.html]

--

--
Ticket URL: <http://trac.sagemath.org/ticket/19525#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to