Optimal control problems over an infinite Horizon