Well-posedness of a Optimal Model for the Supply Chain