#15403: knapsack's docstring doesn't document an useful feature
------------------------+---------------------------------
  Reporter:  defeo      |             Type:  enhancement
    Status:  new        |         Priority:  minor
 Milestone:  sage-5.13  |        Component:  documentation
Resolution:             |  Report Upstream:  N/A
------------------------+---------------------------------
 `knapsack` can be passed a list of arbitrary tuples (not just pairs), as
 in

 {{{
 sage: knapsack( [(1,2,'spam'), (1.5,1,'a'), (0.5,3,'lot')], max=2)
 [5.0, [(1, 2, 'spam'), (0.500000000000000, 3, 'lot')]]
 }}}

 This is useful if one wants to attach data to a knapsack problem, however
 it
 is undocumented in the docstring. This ticket adds the relevant
 documentation.

--
Ticket URL: <http://trac.sagemath.org/ticket/15403>
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