Suppose I have a set at time t = 1, Damage = {1,5,6,9,11,21,23,29}. The element of this set gets updated at different periods depending on the decision variable repair[n][t]. So to update the element of the set I am writing the Code in OPL Cplex that is given below. But I am not getting results with this code. Please guide me so that I can find out the decision variable dependent time varying set
{int} Damage[time];
// objective function
max sum(n in bus)(t in time)pd[n][t];
// Constraints
subjected to {
forall ( t in time, rc in repair_crew, n in DamagedLines){
(StatusLine[rc][n][t] == 1) => (repair[n][s]==1);
(StatusLine[rc][n][t] == 0) => (repair[n][s]==0);
}
}
forall (l in Damage, t in time:!(t==1)){
(repair[n][t]==1) => Damage[s].remove(l);
}
}
}