Originally posted by: SaschaTS
Hi everyone,
I am trying to assign values to an array of sets. I am a beginner and have a little trouble.
GIVEN:
range J=1..maxJ; // days per planning period e.g. 28
range W = 0..maxW-1;// number of weeks per planning period e.g. 4
{int} DaysOfWeek[W];
how can I assign values to DaysOfWeek using execute block.
execute createDaysOfWeek {
}
Result should be[ {1, 2,3,4,5,6,7},{8,9,10,11,12,13,14},{15,16,17,18,19,20,21},{22,23,24,25,26,27,28}]
I hope, that my explanation is understandable.
Thanks a lot for your help.
Kind regards,
Sascha
#DecisionOptimization#OPLusingCPLEXOptimizer