Development and application of an inventory system for managing quality, quantities, time, price and production by optimization techniques