In fact,the text also consider the factor of weight though the optimization process to the cost.That means the cost is required to be lowest in the case of the weight is as light as possible.Factly it is a question of multi-objectives optimization. 自己翻译的哦.