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

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

Added original make3d

File size: 647 bytes
Line 
1function [lb,ub,redundant] = detect_and_improve_bounds(Matrices,lb,ub,binary_var_index,options);
2
3A = [ Matrices.G -Matrices.E];
4b = [ Matrices.W ];
5
6[global_lower,global_upper,bound_rows] = find_variable_bounds(A,b,[Matrices.Aeq Matrices.Beq],Matrices.beq);
7global_lower(binary_var_index) = max(global_lower(binary_var_index),0);
8global_upper(binary_var_index) = min(global_upper(binary_var_index),1);
9
10if ~isempty(lb)
11    global_lower = max([global_lower lb],[],2);
12end
13if ~isempty(ub)
14    global_upper = min([global_upper ub],[],2);
15end
16
17[lb,ub,redundant,psstruct,infeasible] = tightenbounds(A,b,global_lower,global_upper,[],binary_var_index);
Note: See TracBrowser for help on using the repository browser.