#16504: A mandatory 'nonnegative' argument for
MixedIntegerLinearProgram.new_variable() until the standard changes
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.3
Component: linear | Resolution:
programming | Merged in:
Keywords: | Reviewers: Jeroen Demeyer
Authors: Nathann Cohen | Work issues:
Report Upstream: N/A | Commit:
Branch: public/16504 | 190393753fff48a6e210066fe0f0fff931ef404c
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by dimpase):
the following obvious change fixes the things:
{{{
diff --git a/src/sage/numerical/mip.pyx b/src/sage/numerical/mip.pyx
index 2f8d0e3..5741f68 100644
--- a/src/sage/numerical/mip.pyx
+++ b/src/sage/numerical/mip.pyx
@@ -265,6 +265,8 @@ cdef class MixedIntegerLinearProgram(SageObject):
....: box=p.get_values(box)
....: print(all(v in ZZ for v in box.values()))
True
+ doctest:839: DeprecationWarning: The default value of
'nonnegative' will change, to False inst
+ See http://trac.sagemath.org/15521 for details.
True
"""
@@ -362,8 +364,6 @@ cdef class MixedIntegerLinearProgram(SageObject):
sage: p = MixedIntegerLinearProgram()
sage: v = p.new_variable(real=True)
- doctest:839: DeprecationWarning: The default value of
'nonnegative' will change, to False
- See http://trac.sagemath.org/15521 for details.
sage: p.get_min(v[0])
0.0
"""
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16504#comment:56>
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.