Originally posted by: gregman
Hello Alex and the rest of you,
thanks a lot for your reply. Unfortunately, it does not solve my problem, maybe because I wasn't precise enough.
- What you proposed for my first problem are arrays but what I need are ranges:
range A1 = 1,2,3,4,5,6,7 which is equal to range A1 = 1..7
range A2 = 2,3,4,5,6 (or 2..6)
range A3 = 3,4,5,6,7
Is it possible to create only one multi-dimensional range A_i = {A1,A2,A3} that obtains all given ranges instead of creating i separate ranges so that I can use e.g. forall (i in I, j in A(i) )
- For the max-problem I need a syntax that allows me to code the following part:
forall (i in I) sum (j in 1.. max(i,b)) ...
The max-function has to be directly integrated in the sum statement because it is dependent on the current state of the loop index i inside forall.
Is there a synthax for that?
Thank you very much.
Greg
#DecisionOptimization#OPLusingCPLEXOptimizer