Modelling production cost with the effects of learning and forgetting