Each of these six items, we see, has an associated dollar value and weight. The objective is to total value of the items loaded onto the truck without exceeding the truck’s weight capacity. We let X_i be the proportion of each item i loaded on the truck: