This section describes the optimization of an inventory and sales supply chain to maximize profits. The model stock.mdl has an inventory that is drained by sales. Carrying too little inventory leads to loss of sales (and loss of profits) but carrying too much inventory costs more to stock and also leads to lower profits. To maximize profits, you need to balance the amount of inventory. You need to restock inventory when it is low, and build it to some maximum level.