source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/modules/global/clean_bounds.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 290 bytes |
Line | |
---|---|
1 | function p = clean_bounds(p) |
2 | close = 1e-10>abs(p.ub - round(p.ub)); |
3 | p.ub(close) = round(p.ub(close)); |
4 | |
5 | close = 1e-10>abs(p.lb - round(p.lb)); |
6 | p.lb(close) = round(p.lb(close)); |
7 | p.ub(p.binary_variables) = floor(p.ub(p.binary_variables) + 1e-2); |
8 | p.lb(p.lb<-1e12) = -inf; |
9 | p.ub(p.ub>1e12) = inf; |
Note: See TracBrowser
for help on using the repository browser.