Production scheduling and inventory management