# 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
|
|
216 | 216 | |
217 | 217 | .. MATH:: |
218 | 218 | \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\\ |
220 | 220 | |
221 | 221 | Using Sage, we will give to our items a random weight:: |
222 | 222 | |
… |
… |
|
232 | 232 | |
233 | 233 | :: |
234 | 234 | |
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)]) |
236 | 236 | |
237 | 237 | .. link |
238 | 238 | |