source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/modules/global/domain_reduction.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 709 bytes
Line 
1function [p,feasible,vol_reduction] = domain_reduction(p,upper,lower,lpsolver);
2% This is just too expensive
3t1 = p.binary_variables;
4t2 = p.integer_variables;
5p.binary_variables = [];
6p.integer_variables = [];
7if ~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
16else
17    [p,p.feasible,vol_reduction] =  boxreduce(p,upper,lower,lpsolver,p.options);
18end
19p.binary_variables  = t1;
20p.integer_variables = t2;
Note: See TracBrowser for help on using the repository browser.