Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Lingo0 1 integer programming, if the constraint condition shows that the variable is a range of values, how to write the code and how to calculate it?
Lingo0 1 integer programming, if the constraint condition shows that the variable is a range of values, how to write the code and how to calculate it?
min = a 1 * x 1+a2 * x2+a3 * x3;

n 1 * x 1+N2 * x2+n3 * x3 & gt; =5320;

n 1 * x 1+N2 * x2+n3 * x3 & lt; =5600;

n 1 & gt; = 2 * z 1;

n 1 & lt; = 5 * z 1;

Don't write the back, and so on.