#15482: Say very loud that LP variables are non-negative by default
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_review
           Type:         |    Milestone:  sage-6.2
  defect                 |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:  Punarbasu Purkayastha, Karl-
  documentation          |  Dieter Crisman, Thierry Monteil
       Keywords:         |  Work issues:
        Authors:         |       Commit:
  Nathann Cohen          |  b87f1deb520451cc8d770c9b3e4f9268070912b8
Report Upstream:  N/A    |     Stopgaps:
         Branch:         |
  u/ncohen/15482         |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by ppurka):

 I got one doctest failure:
 {{{
 Running doctests with ID 2014-02-14-16-32-46-c7933957.
 Doctesting 1 file.
 sage -t --long src/doc/en/thematic_tutorials/linear_programming.rst
 **********************************************************************
 File "src/doc/en/thematic_tutorials/linear_programming.rst", line 181, in
 doc.en.thematic_tutorials.linear_programming
 Failed example:
     p.add_constraint(y[3,2] + x[5] == 6)
 Exception raised:
     Traceback (most recent call last):
       File
 "/home/basu/Installations/sage-6.1.beta2.server/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 480, in _run
         self.execute(example, compiled, test.globs)
       File
 "/home/basu/Installations/sage-6.1.beta2.server/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 839, in execute
         exec compiled in globs
       File "<doctest doc.en.thematic_tutorials.linear_programming[12]>",
 line 1, in <module>
         p.add_constraint(y[Integer(3),Integer(2)] + x[Integer(5)] ==
 Integer(6))
     TypeError: 'sage.numerical.linear_functions.LinearFunction' object has
 no attribute '__getitem__'
 **********************************************************************
 1 item had failures:
    1 of  48 in doc.en.thematic_tutorials.linear_programming
     [44 tests, 1 failure, 0.10 s]
 ----------------------------------------------------------------------
 sage -t --long src/doc/en/thematic_tutorials/linear_programming.rst  # 1
 doctest failed
 ----------------------------------------------------------------------
 Total time for all tests: 0.2 seconds
     cpu time: 0.1 seconds
     cumulative wall time: 0.1 seconds
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/15482#comment:38>
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/groups/opt_out.

Reply via email to