I am trying to model the operation of a system component, the component will have two operating modes, let's call them 1 and 2, plus the idle mode 0
There is no limit on idling, but each operating mode will last for exactly 3 time-series points, so x_{i}= 1 means x_{i+1} = x_{i+2} = 1 (cannot post images, please use the link below for the equation) operation mode 1
same goes for operating mode 2.
For example. 011102220 is valid, but 01110220 is not.
111111 or 222222 are not valid, but this is taken care of in other resource related constraints (the system will not have enough resource to operate for more than 3 time-series points), so as long as the issue regarding to forcing three consecutive 1s or 2s in the variable array is address, it should be fine.
Thanks in advance,