Originally posted by: trxw
In fact, I find quite hard to operate with this arrays. Maybe I have not defined the right data type or just my ignorance. What I mean is that I need as well to count the number of "1" ending in the CtaTrabajando[person][Instantes] when the last value of the array is 1 (i.e. if a person works on the last instant, I need to count how many "1" are in that last rotation, so how many consecutive "1" are there)
Example:
CtaTrabajando[1][Instantes]: 1 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 Count should be 3
CtaTrabajando[2][Instantes] 1 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 1 0 Count should be 0
This is a dexpr so I could use it in a minimize staticLex (MaxTT-MinTT, LastRotation);
Hope it's clear... Thanks so much
#DecisionOptimization#OPLusingCPLEXOptimizer