Rev | Line | |
---|
[37] | 1 | function [p,feasible,vol_reduction] = domain_reduction(p,upper,lower,lpsolver); |
---|
| 2 | % This is just too expensive |
---|
| 3 | t1 = p.binary_variables; |
---|
| 4 | t2 = p.integer_variables; |
---|
| 5 | p.binary_variables = []; |
---|
| 6 | p.integer_variables = []; |
---|
| 7 | if ~p.options.bmibnb.lpreduce | (size(p.lpcuts,1)==0) |
---|
| 8 | vol_reduction = 1; |
---|
| 9 | p.feasible = 1; |
---|
| 10 | |
---|
| 11 | p.lb(p.integer_variables) = ceil(p.lb(p.integer_variables)); |
---|
| 12 | p.ub(p.integer_variables) = floor(p.ub(p.integer_variables)); |
---|
| 13 | p.lb(p.binary_variables) = ceil(p.lb(p.binary_variables)); |
---|
| 14 | p.ub(p.binary_variables) = floor(p.ub(p.binary_variables)); |
---|
| 15 | |
---|
| 16 | else |
---|
| 17 | [p,p.feasible,vol_reduction] = boxreduce(p,upper,lower,lpsolver,p.options); |
---|
| 18 | end |
---|
| 19 | p.binary_variables = t1; |
---|
| 20 | p.integer_variables = t2; |
---|
Note: See
TracBrowser
for help on using the repository browser.