delete NonlinearProgramWConstraintObjects, move its content to NonlinearProgram