source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/demos/decaybmiex.m @ 37

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

Added original make3d

File size: 844 bytes
Line 
1clc
2echo on
3%*********************************************************
4%
5% Decay-rate estimation using non-convex SDP
6%
7%*********************************************************
8%
9% The problem we solve is estimatation of decay-rate of a
10% linear system x' = Ax. This can be formulated as a
11% generalized eigenvalue problem (GEVP)
12%
13% max alpha
14% s.t A'P+PA < -2alphaP
15%          P > I
16%
17% This time, we solve it as a BMI using PENBMI (hence you
18% need PENBMI to run this demo). Note, this is a quasi-convex
19% problem, and PENBMI is actually guaranteed to find the
20% global optima.
21pause
22clc
23
24% Define the variables
25A = [-1 2;-3 -4];
26P = sdpvar(2,2);
27alpha = sdpvar(1,1);
28pause
29
30% Define the GEVP
31F = set(P>eye(2))+set(A'*P+P*A < -2*alpha*P) + set(alpha > 0);
32pause
33% Maximize alpha (minimize -alpha)
34solvesdp(F,-alpha);
35double(alpha)
36pause
Note: See TracBrowser for help on using the repository browser.