A dynamic programming based procedure for the synthesis of near-optimal controllers for sampled data systems is proposed. The main features of the proposed procedure are the approximation of nonlinear systems by piecewise affine systems, the synthesis of control strategy in the form of a piecewise constant map, and handling of state constraints and exogenous inputs. In order to increase accurac...