Is there an easy way to apply a condition into a sum in OPL or to get around this problem ?
For example is it possible to do something like :
forall (i in Factories)
forall( j in Time)
Stock[i][j] == sum (i_ in Factories where j-LeadTime[i_][i]>0) (expression)
The only way I found to get around this problem is to extend my dataset in order to avoid out of range exception but in my case that don't make any sense so I would like to apply a condition into the sum before.