I have a list x(variable in MIP) of outcomes.
x = [1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,1]
1 represent a win and -1 represent a loss. In this case the max winning streak is 4 and max losing streak is 3, thus overall max streak is 4.
How can we formulate an MIP where the objective is to minimize maximum overall streak?
How should the constraints look like?