Ticket #11371: trac_11371.patch

File trac_11371.patch, 1016 bytes (added by ncohen, 10 years ago)
  • doc/en/thematic_tutorials/linear_programming.rst

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1306230956 -7200
    # Node ID e887591179401bba2def03a9ec760959a5773bea
    # Parent  596830b11f40e2c828d47484ce7299f3acd7d087
    trac 11371 - Error in MILP documentation
    
    diff -r 596830b11f40 -r e88759117940 doc/en/thematic_tutorials/linear_programming.rst
    a b  
    216216
    217217.. MATH::
    218218    \text{Max: } & \sum_{o \in L} \text{usefulness}_o \times \text{taken}_o\\
    219     \text{Such that: } & \sum_{o \in L} \text{usefulness}_o \times \text{taken}_o \leq C\\
     219    \text{Such that: } & \sum_{o \in L} \text{weight}_o \times \text{taken}_o \leq C\\
    220220
    221221Using Sage, we will give to our items a random weight::
    222222
     
    232232
    233233::
    234234
    235     sage: L.extend(["divers_" + str(i) for i in range(20)])
     235    sage: L.extend(["random_stuff_" + str(i) for i in range(20)])
    236236
    237237.. link
    238238