change the ID of the constraint in NonlinearProgram, to avoid confusing with the index of the constraint