Changes between Version 1 and Version 2 of Ticket #20328


Ignore:
Timestamp:
03/30/16 18:30:37 (5 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20328

    • Property Summary changed from stupid doctest related to gurobi to tests related to cplex / gurobi
  • Ticket #20328 – Description

    v1 v2  
    1 In `numerical/backends/generic_backend.pyx` the following doctest (line 1153) is wrong if gurobi is available
     1* File "numerical/backends/generic_backend.pyx", line 1153, the following doctest is wrong if gurobi is available
    22{{{
    33sage: default_mip_solver("GUROBI")
     
    77documentation to install it.
    88}}}
     9
     10* File "numerical/backends/cplex_backend.pyx", line 861
     11{{{
     12Failed example:
     13    p.solve()                                                      # optional - CPLEX
     14Expected:
     15    Traceback (most recent call last):
     16    ...
     17    MIPSolverException: 'CPLEX: The primal has no feasible solution'
     18Got:
     19    Traceback (most recent call last):
     20    ...
     21    MIPSolverException: CPLEX: The primal has no feasible solution
     22}}}
     23
     24* File "numerical/backends/gurobi_backend.pyx", line 686
     25{{{
     26Failed example:
     27    p.solve()                                                       # optional - Gurobi
     28Expected:
     29    Traceback (most recent call last):
     30    ...
     31    MIPSolverException: 'Gurobi: The problem is infeasible'
     32Got:
     33    Traceback (most recent call last):
     34    ...
     35    MIPSolverException: Gurobi: The problem is infeasible
     36}}}
     37
     38* File "numerical/backends/gurobi_backend.pyx", line 449
     39{{{
     40Failed example:
     41    p.get_values([x,y])                          # optional - Gurobi
     42Expected:
     43    [0.0, 3.0]
     44Got:
     45    [-0.0, 3.0]
     46}}}
     47
     48* File "numerical/backends/gurobi_backend.pyx", line 484
     49{{{
     50Failed example:
     51    p.row(0)                                                                # optional - Gurobi
     52Expected:
     53    ([0, 1, 2, 3, 4], [0.0, 1.0, 2.0, 3.0, 4.0])
     54Got:
     55    ([1, 2, 3, 4], [1.0, 2.0, 3.0, 4.0])
     56}}}
     57
     58* File "numerical/backends/gurobi_backend.pyx", line 554
     59{{{
     60Failed example:
     61    p.row(0)                                                         # optional - Gurobi
     62Expected:
     63    ([0, 1, 2, 3, 4], [0.0, 1.0, 2.0, 3.0, 4.0])
     64Got:
     65    ([1, 2, 3, 4], [1.0, 2.0, 3.0, 4.0])
     66}}}
     67
     68* File "numerical/backends/gurobi_backend.pyx", line 607
     69{{{
     70Failed example:
     71    p.row(0)                                                          # optional - Gurobi
     72Expected:
     73    ([0, 1, 2, 3, 4], [0.0, 1.0, 2.0, 3.0, 4.0])
     74Got:
     75    ([1, 2, 3, 4], [1.0, 2.0, 3.0, 4.0])
     76}}}