catch the error when fmincon tries to use trust-region-felective in NonlinearProgram
Merge pull request #550 from hongkai-dai/fix-NonlinearProgram-fmincon

catch the error thrown by fmincon in NonlinearProgram