public override void OnRemovalFromSolver(Solver oldSolver) { //This should only be called after the constraint has been removed from the solver. if (pair == null) { CleanUpReferences(); } }