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

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

Added original make3d

File size: 454 bytes
Line 
1function [Ax, Ay, b] = bound_exp(xL,xU)
2
3% Two lower bounds from tangents
4% y > exp(xL) + (x-xL)*exp(xL)
5% y > exp(xU) + (x-xU)*exp(xU)
6
7% Upper bound from conneting extreme points
8% y < exp(xU)(x-xL)/(xU-xL) +  exp(xL)(xU-x)/(xU-xL)
9
10% can be wrtitten as
11% Ax*x + Ay*y < b
12
13Ay = [-1;-1;1];
14b = [-exp(xL)+xL*exp(xL);
15    -exp(xU)+xU*exp(xU);
16    exp(xU)*(-xL)/(xU-xL) +  exp(xL)*(xU)/(xU-xL)];
17Ax = [exp(xL);exp(xU); -exp(xU)/(xU-xL) + exp(xL)/(xU-xL)];
Note: See TracBrowser for help on using the repository browser.