Originally posted by: LeonardH
Hello everyone,
sorry for the bad title but I just don't know how to explain it better.
I have the following problem:
I have a series of binaries (0 or 1). In this series, there shall always be at least three 1s after each other. Never only one or two 1s.
For example: No 0001000 or 00011000, but 0011100 is fine.
Now the first binary is x1, the second binary x2 and so on.
Does anyone know a way how to express the correct constraints to make my request possible?
Maybe I am overseeing a way how that is easily possible with CPLEX.
Thanks so much for your help, I am bit on a loss..!
Leo
#DecisionOptimization#OPLusingCPLEXOptimizer