Inventory model using Machine Learning for demand forecast with imperfect deteriorating products and partial backlogging under carbon emissions