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

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

Added original make3d

File size: 290 bytes
Line 
1function p = clean_bounds(p)
2close = 1e-10>abs(p.ub - round(p.ub));
3p.ub(close) = round(p.ub(close));
4
5close = 1e-10>abs(p.lb - round(p.lb));
6p.lb(close) = round(p.lb(close));
7p.ub(p.binary_variables) = floor(p.ub(p.binary_variables) + 1e-2);
8p.lb(p.lb<-1e12) = -inf;
9p.ub(p.ub>1e12) = inf;
Note: See TracBrowser for help on using the repository browser.