Originally posted by: TuPeM
I'm currently struggling to formulate the term which is attached and part of a longer formula. Cplex cannot extract it and i know the programming is not correct.
Currently i have the following formulation
forall (t in periods, ..., v in variants)
... + sum (s in periods: t-RT+1 <= s <= t) E[v][s] + ...
RT is a fixed value that is e.g. 4. while t<RT, s should start with the value of 1. for t is 5,6,7,... s should start at 2,3,4,... respectively and sum up to t.
the formulation somehow needs to be like this , but i don't know which expressions to use
sum(s in periods: max(1,t-RT+1 <= s) E[v][s]
Any help is much appreciated!
#DecisionOptimization#OPLusingCPLEXOptimizer