Timeline for linear program with zeros
Current License: CC BY-SA 2.5
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 20, 2010 at 4:35 | comment | added | freddy smith | now suppose in addition to a Q1 (Q1=0 or a <= Q1 <= b) and Q2 (Q2 = 0 or c <= Q2 <= d), how would I formulate the same thing for an additional constraint using those 2 vars, i.e. (Q1 + Q2) = 0, or e <= Q1 + Q2 <= f ? Do I need to introduce a 3rd binary for this or use some combination of the existing two binary vars for Q1 and Q2? | |
Jan 17, 2010 at 9:38 | vote | accept | freddy smith | ||
Jan 17, 2010 at 9:30 | comment | added | freddy smith | thanks that solution worked well. I also found in the lp solve documentation that a decision var can be declared as "semi-continuous", in this case the result is the same so underneath it might be doing the same modelling trick. | |
Jan 17, 2010 at 5:38 | history | edited | F_G | CC BY-SA 2.5 |
added 102 characters in body
|
Jan 17, 2010 at 5:25 | history | answered | F_G | CC BY-SA 2.5 |