Hi, I have my model implemented in opl and I added a constraint, this constraint means rejected demand d if it is selected. I am using main script, I would like to iteratively change the vector selected so different demands will be rejected at each iteration. How can I do it? I've tried some approaches, but I can't change this vector. It only can be processed once in pre-processing execute blocks or if it is in external data file, but no success in changing it. Someone can help me?
int selected[Demands]; //1 if demands will be rejected at front or 0 let the cplex decide
minimize sum xd[d]*d.bd;
forall(d in Demands: selected[d]==1)
A similar approach is
sum(d in Demands: selected[d]==1)
xd[d] == RejectedCount;
Thanks in Advance!