Opened 7 years ago
Last modified 20 months ago
#19523 new defect
Adding constraints for the wrong MILP crashes Sage — at Version 3
Reported by: | Jeroen Demeyer | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-7.3 |
Component: | linear programming | Keywords: | |
Cc: | Yuan Zhou | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | #19525 | Stopgaps: |
Description (last modified by )
sage: p = MixedIntegerLinearProgram(solver="glpk") sage: q = MixedIntegerLinearProgram(solver="glpk") sage: q.add_constraint(p[0] <= 1) ------------------------------------------------------------------------ Unhandled SIGABRT: An abort() occurred in Sage. This probably occurred because a *compiled* component of Sage has a bug in it and is not properly wrapped with sig_on(), sig_off(). Sage will now terminate. ------------------------------------------------------------------------
With #19525, this improves to not crashing Sage:
sage: sage: p = MixedIntegerLinearProgram(solver="glpk") sage: sage: q = MixedIntegerLinearProgram(solver="glpk") sage: sage: q.add_constraint(p[0] <= 1) --------------------------------------------------------------------------- GLPKError Traceback (most recent call last) ... GLPKError: glp_set_mat_row: i = 1; len = 1; invalid row length Error detected in file glpapi01.c at line 760
This ticket is to actually fix the error completely or give a better error message.
Change History (3)
comment:1 Changed 7 years ago by
Dependencies: | → #19525 |
---|---|
Description: | modified (diff) |
comment:2 Changed 7 years ago by
Cc: | Nathann Cohen added |
---|
comment:3 Changed 7 years ago by
Description: | modified (diff) |
---|---|
Priority: | critical → major |
Note: See
TracTickets for help on using
tickets.