Originally posted by: Lav4n
Hi all,
hope you can help me with this:
I have a decision expression, using the prev function on an index "period". In order to avoid an error I would like to constrain the calculation for all periods except the first one, where all values should be 0. So
dexpr float CostCalc [t in period] = CostPrameter[t] * (varX[t] - varX[prev(period,t)])
How could i prevend the error on t = 1 and condition it something like forall(t in period: t != 1)?
Thanks for your help!
#DecisionOptimization#OPLusingCPLEXOptimizer