#16858: Doctest failures when cbc is installed
----------------------------------+----------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: blocker | Milestone: sage-6.4
Component: linear programming | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------------------+----------------------------
With the optional package `cbc` installed:
{{{
sage -t --long src/sage/numerical/mip.pyx
**********************************************************************
File "src/sage/numerical/mip.pyx", line 1470, in
sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.add_constraint
Failed example:
p.solve() # rel tol 1e-15
Expected:
6.666666666666666
Got:
6.66666666667
Tolerance exceeded: 5e-13 > 1e-15
**********************************************************************
[...several similar failures not shown...]
}}}
The underlying reason is that the `coin` solver returns an `RDF` element,
while the `glpk` solver returns a Python float. These are printed
differently, even though they have the same value.
--
Ticket URL: <http://trac.sagemath.org/ticket/16858>
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.