Nonlinear programming by mesh adaptive direct searches 1