Originally posted by: J0FR_Victor_Pereira
Hello,
I am running my optimization model inside a script in cplex. In my model file, I have a tuple "D" and an array called "Dmnd[D]". I want to find a specific element in D, say "d", then delete such element from set D and the corresponding Dmnd[d] array element. I can add elements easily enough using the keyword "add", but I am having trouble deleting.
My script is pretty long, but this is the relevant part:
(...)
if (MyDataElements.Dmnd[d] != DemandStar[z]) {
MyDataElements.Dmnd[d].remove;
MyDataElements.D.remove(d);
}
(...)
Any help is greatly appreciated!
#CPLEXOptimizers#DecisionOptimization