Optimization Method for Inventory and Supply Chain Management