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

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

Added original make3d

File size: 3.5 KB
Line 
1%YALMIPDEMO Brief tutorial and examples.
2%
3% See also YALMIPTEST
4
5% Author Johan Löfberg
6% $Id: yalmipdemo.m,v 1.6 2006/01/17 15:49:08 joloef Exp $
7
8% Check for paths
9if ~(exist('socpex')==2)
10    disp('You have to set the path to the demo library (...\yalmip\demos\)')
11    return;
12end
13
14
15i = 1;
16problems{i}.class = 0;
17problems{i}.info = 'Getting started, the basics';
18problems{i}.call = 'basicsex';i = i+1;
19
20problems{i}.class = 1;
21problems{i}.info = 'Linear and quadratic programming';
22problems{i}.call = 'regressex';i = i+1;
23
24problems{i}.class = 1;
25problems{i}.info = 'Second order cone programming';
26problems{i}.call = 'socpex';i = i+1;
27
28problems{i}.class = 2;
29problems{i}.info = 'Lyapunov stability (SDP)';
30problems{i}.call = 'stabilityex';i = i+1;
31
32problems{i}.class = 0;
33problems{i}.info = 'Model predictive control (LP,QP,SDP)';
34problems{i}.call = 'mpcex';i = i+1;
35
36problems{i}.class = 2;
37problems{i}.info = 'Determinant maximization (MAXDET)';
38problems{i}.call = 'maxdetex';i = i+1;
39
40problems{i}.class = 2;
41problems{i}.info = 'Decay-rate estimation (SDP)';
42problems{i}.call = 'decayex';i = i+1;
43
44problems{i}.class = 0;
45problems{i}.info = 'Mixed integer programming (MILP,MIQP,MICP)';
46problems{i}.call = 'milpex';i = i+1;
47
48problems{i}.class = 3;
49problems{i}.info = 'Working with polynomial expressions';
50problems{i}.call = 'nonlinex';i = i+1;
51
52problems{i}.class = 3;
53problems{i}.info = 'Working with nonlinear operators';
54problems{i}.call = 'nonlinopex';i = i+1;
55
56problems{i}.class = 3;
57problems{i}.info = 'Nonlinear semidefinite programming using PENBMI (BMI)';
58problems{i}.call = 'bmiex1';i = i+1;
59
60problems{i}.class = 3;
61problems{i}.info = 'Decay-rate estimation revisited with PENBMI (BMI)';
62problems{i}.call = 'decaybmiex';i = i+1;
63
64problems{i}.class = 3;
65problems{i}.info = 'Simultaneous stabilization with PENBMI (BMI)';
66problems{i}.call = 'simstabex';i = i+1;
67
68problems{i}.class = 4;
69problems{i}.info = 'Sum-of-squares decompositions';
70problems{i}.call = 'sosex';i = i+1;
71
72problems{i}.class = 4;
73problems{i}.info = 'Polynomial programming using moment-relaxations';
74problems{i}.call = 'momentex';i = i+1;
75
76problems{i}.class = 4;
77problems{i}.info = 'Global nonlinear programming';
78problems{i}.call = 'globalex';i = i+1;
79
80problems{i}.class = 5;
81problems{i}.info = 'Multi-parametric programming';
82problems{i}.call = 'mptex';i = i+1;
83
84problems{i}.class = 5;
85problems{i}.info = 'KYP problems (SDP)';
86problems{i}.call = 'kypdex';i = i+1;
87
88problems{i}.class = 5;
89problems{i}.info = 'Posynomial geometric programming';
90problems{i}.call = 'geometricex';i = i+1;
91
92problems{i}.class = 5;
93problems{i}.info = 'Complex-valued problems';
94problems{i}.call = 'complexex';i = i+1;
95
96problems{i}.class = 5;
97problems{i}.info = 'Dual variables';
98problems{i}.call = 'dualex';i = i+1;
99
100
101while (1)
102    clc
103    echo off
104   
105    disp(' ')
106    disp(' ')
107    disp('                    YALMIP DEMO')
108    disp(' ')
109    oldclass = 0;
110    for i = 1:length(problems)
111    %    if problems{i}.class == oldclass
112    %        fprintf('\n');
113    %    end
114       
115        fprintf(['       %1.2d) ' problems{i}.info '\n'],i);
116    %    oldclass = problems{i}.class;
117    end
118   
119    disp('         ');
120    disp('         0) quit')
121    inp = input('Select demo: ');
122    try
123        if ~isempty(inp)
124            switch(inp)
125                case 0
126                    return
127                otherwise
128                    if inp<=length(problems)
129                        feval(problems{inp}.call);
130                    end
131            end
132        end
133    catch
134        disp(lasterr)
135        pause
136    end
137end
138
Note: See TracBrowser for help on using the repository browser.