Modeling following constraints in MILP. I want to know how I should formulate the following constraints in my MIP problem? x=x_1z_1+⋯+x_n z_n and y_1 <= y <= y_n and z_1+ cdots +z_n=1
caritatsjq
Answered question
2022-10-24
Modeling following constraints in MILP I want to know how I should formulate the following constraints in my MIP problem?
OR
x and y are continuous variables. and are binary decision variables. and are parameters.
Answer & Explanation
Szulikto
Beginner2022-10-25Added 22 answers
Step 1 Brace yourself, the notation is about to get a little ugly. Let me list the variables first. In addition to x and y (continuous), we will have and , plus and one more binary variable . The constraints will be as follows:
Step 2 If , the fourth equation zeroes out the last two terms of the first equation and the third equation plus the first equation result in x being one of the . Meanwhile, the fifth equation zeroes out the summation in the second equation and the sixth equation and what's left of the second equation make y a convex combination of the endpoints , , so basically any value in the interval . If , the reverse occurs.
varsa1m
Beginner2022-10-26Added 4 answers
Step 1
Step 2 Constraints (1) and (2) are valid for both sides of the desired disjunction. Constraints (3) and (4) enforce