Changes between Initial Version and Version 1 of Ticket #20326


Ignore:
Timestamp:
04/05/16 18:54:13 (6 years ago)
Author:
dimpase
Comment:

with the second example I only get segfault with Coin - with other backends I get gracefully handled errors. (on a branch with lots of recent positively reviewed LP-related tickets)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20326 – Description

    initial v1  
    11The doctest of `add_linear_constraint_vector` from generic_backend.pyx (which is never run for any real backend!), when applied to COIN or GLPK leads to segfaults:
    22{{{
    3 sage:             sage: coeffs = ([0, vector([1, 2])], [1, vector([2, 3])])
    4 sage:             sage: upper = vector([5, 5])
    5 sage:             sage: lower = vector([0, 0])
    6 sage:             sage: from sage.numerical.backends.generic_backend import get_solver
    7 sage:             sage: p = get_solver(solver = "Coin")                         # optional - cbc
     3sage: coeffs = ([0, vector([1, 2])], [1, vector([2, 3])])
     4sage: upper = vector([5, 5])
     5sage: lower = vector([0, 0])
     6sage: from sage.numerical.backends.generic_backend import get_solver
     7sage: p = get_solver(solver = "Coin")      # optional - cbc
    88sage: p.add_linear_constraint_vector(2, coeffs, lower, upper, 'foo')
    99------------------------------------------------------------------------
     
    1818$ sage
    1919SageMath Version 7.2.beta0, Release Date: 2016-03-24
    20 sage: sage:             sage: coeffs = ([0, vector([1, 2])], [1, vector([2, 3])])
    21 sage: sage:             sage: upper = vector([5, 5])
    22 sage: sage:             sage: lower = vector([0, 0])
    23 sage: sage:             sage: from sage.numerical.backends.generic_backend import get_solver
    24 sage: sage:             sage: p = get_solver(solver = "Coin")                         # optional - cbc
     20sage: coeffs = ([0, vector([1, 2])], [1, vector([2, 3])])
     21sage: upper = vector([5, 5])
     22sage: lower = vector([0, 0])
     23sage: from sage.numerical.backends.generic_backend import get_solver
     24sage: p = get_solver(solver = "Coin")       # optional - cbc
    2525sage: p.add_linear_constraint_vector(2, coeffs, lower, upper)
    2626------------------------------------------------------------------------