NonlinearProgram can handle the objective function