Optimal control design via successive approximations