Model and algorithm of an inventory problem with the consideration of transportation cost