Originally posted by: Girish Dey
Sir, I apologise for my wrong questions. For recursion, I have written a separate function. In that function first I have to remove that constraint which I have written
for (int j =0; j < NbLocations; j++){
model.remove(Interdicted[j] <= 1 - Fortified[j]);}
After that I made change to my Fortified array and again add the same set of constraints by model.add(). The problem is this model.remove() is not working. So in every itearation the the constraints due to model.add() is multiplying. I have also tried this by IloRangeArray protection(env). In this case model.remove(protection) is working but after modification to Fortified array model.add(protection) is not taking the modification made to fortified array. Thanks
#CPLEXOptimizers#DecisionOptimization