  The paper is concerned with a general optimization problem for a nonlinear
control system, in the presence of a running cost and a terminal cost, with
free terminal time. We prove the existence of a patchy feedback whose
trajectories are all nearly optimal solutions, with pre-assigned accuracy.
