Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check GLPK bound errors #10232

Closed
malb opened this issue Nov 7, 2010 · 13 comments
Closed

check GLPK bound errors #10232

malb opened this issue Nov 7, 2010 · 13 comments

Comments

@malb
Copy link
Member

malb commented Nov 7, 2010

This should never happen:

sage: from sage.numerical.backends.generic_backend import get_solver
sage: p = get_solver(solver = "GLPK") 
sage: p.add_variable()
1
sage: p.variable_upper_bound(1)
sig_error() without sig_on()
...
------------------------------------------------------------------------
Unhandled SIGABRT: An abort() occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.
------------------------------------------------------------------------
Aborted

Depends on #19525

CC: @mkoeppe @dimpase

Component: numerical

Author: Vincent Delecroix

Branch/Commit: 6503bc5

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/10232

@malb malb added this to the sage-5.11 milestone Nov 7, 2010
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@videlec
Copy link
Contributor

videlec commented Mar 30, 2016

comment:5

The method name changed

AttributeError: 'sage.numerical.backends.glpk_backend.GLPKBackend' object has no attribute 'variable_max'

But still (with #19525 applied)

sage: p.variable_upper_bound(1)
sig_error() without sig_on()
...
------------
Unhandled SIGABRT: An abort() occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.
------------------------------------------------------------------------
Aborted

@videlec
Copy link
Contributor

videlec commented Mar 30, 2016

Dependencies: #19525

@videlec

This comment has been minimized.

@videlec videlec modified the milestones: sage-6.4, sage-7.2 Mar 30, 2016
@videlec
Copy link
Contributor

videlec commented Apr 3, 2016

New commits:

6503bc5Trac 10232: catch some errors in GLPK backend

@videlec
Copy link
Contributor

videlec commented Apr 3, 2016

Commit: 6503bc5

@videlec
Copy link
Contributor

videlec commented Apr 3, 2016

Author: Vincent Delecroix

@videlec
Copy link
Contributor

videlec commented Apr 3, 2016

Branch: u/vdelecroix/10232

@mkoeppe
Copy link
Member

mkoeppe commented Apr 3, 2016

comment:10

I think the title of this ticket needs to be changed to be more specific.

@videlec videlec changed the title MIP backends should perform bounds checks check GLPK bound errors Apr 3, 2016
@dimpase
Copy link
Member

dimpase commented Apr 3, 2016

comment:12

I've never seen <double?> syntax. What does it do?

@dimpase dimpase changed the title check GLPK bound errors MIP backends should perform bounds checks Apr 3, 2016
@videlec
Copy link
Contributor

videlec commented Apr 3, 2016

comment:13

Replying to @dimpase:

I've never seen <double?> syntax. What does it do?

It is a Cython cast with type checking: see the documentation.

@dimpase
Copy link
Member

dimpase commented Apr 3, 2016

comment:14

OK

@videlec
Copy link
Contributor

videlec commented Apr 3, 2016

Reviewer: Dima Pasechnik

@mkoeppe mkoeppe changed the title MIP backends should perform bounds checks check GLPK bound errors Apr 3, 2016
@vbraun
Copy link
Member

vbraun commented Apr 4, 2016

Changed branch from u/vdelecroix/10232 to 6503bc5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants