When the solver solves the NLP successfully, always return 1
Merge pull request #385 from hongkai-dai/fixGetInitialState

fix exitflag in NonlinearProgram