Get index of a set constraint
Using SageMath I'm trying to implement a method for the solution of a problem where I in an iterative way add a set of constraints, try to solve the problem to check if exist a solution, if not i remove the constraints and restart.
try:
p.solve()
except RuntimeError:
p.remove_constraint(index)
Given a set of constraint that I add, how to get their indexes so that I can remove them?