Loading: How manufacturers optimize their inventories