0

I have an MIP where I want to assign at least two variables (binary) from the same location.

How to implement the or in this case. I want something like this:

x1 + x2 + x3 + x4 >= 2 or
x5 + x6 + x7 + x8 + x9 >= 2 or
x10 + x11 + x12 >= 2

x1,...,x12 are binary variables.

How could it be implemented?

I had a look here but could not work it out to my case.

0

1 Answer 1

3
x1 + x2 + x3 + x4 >= 2⋅δ1
x5 + x6 + x7 + x8 + x9 >= 2⋅δ2
x10 + x11 + x12 >= 2⋅δ3
δ1+δ2+δ3 = 1 
δ1,δ2,δ3 ∈ {0,1}

If you want, you can replace δ1+δ2+δ3=1 by δ1+δ2+δ3>=1.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.