Originally posted by: trxw
Hi,
I have an int array Work[Instants 1 to 47] which values are 1 (person working) or 0 (person not working). I want to count the consecutive numbers of 1s on the last rotation, i.e. when the last value of the array is 1.
Example:
Work[Instants ]: 1 0 0 0 0 0 1...... 1 1 1 1 1 0 0 0 0 1 1 1 Count should be 3
Work[Instants ] 1 0 0 0 0 0 1 1.......1 1 1 1 0 0 0 0 1 1 0 Count should be 0
Thanks again
#DecisionOptimization#OPLusingCPLEXOptimizer