Overview
Comment: | Include LQ PPP option General tidy |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
17b804049396885b3b307bf694fbba1d |
User & Date: | gawthrop@users.sourceforge.net on 2003-06-06 07:18:27 |
Other Links: | branch diff | manifest | tags |
Context
2003-06-09
| ||
10:49:23 | Include error in out args check-in: 7337ff5fe9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2003-06-06
| ||
07:18:27 |
Include LQ PPP option General tidy check-in: 17b8040493 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
07:17:28 | Removed debug check-in: f9152ecb6b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/control/PPP/ppp_lin_run.m from [566d14aa8d] to [33262152e0].
︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | + + + + + | ##Defaults if nargin<1 # Default name to dir name names = split(pwd,"/"); [n_name,m_name] = size(names); Name = deblank(names(n_name,:)); endif ## System sys = mtt2sys(Name); # Create system [A,B,C,D] = sys2ss(sys); # SS form [n_x, n_u, n_y] = abcddim(A,B,C,D); # Dimensions if nargin<2 Simulate = 1; endif if nargin<3 ControlType = 2; |
︙ | |||
38 39 40 41 42 43 44 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | + - - - + + + + + + + + + + - - - - - - | p_c.N = 10; endif if nargin<6 p_o.sigma = 0.001; endif |
︙ | |||
97 98 99 100 101 102 103 | 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | + - - - + + + + + + + + + + + + - - - - - + + + + | K_w = zeros(p_c.N_u,n_y); K_w(1,1) = 1; K_w(2,1) = -1; K_x = zeros(p_c.N_u,n_x); U = K_w*w; # Initial control U else # PPP control I = ceil(p_c.T/p_c.delta_ol); # Number of large samples if strcmp(p_c.Method, "original") |
︙ | |||
145 146 147 148 149 150 151 | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | - + | data = from_rt(p_c.N); # Receive data [yi,ui] = convert_data(data); y_now = yi(:,p_c.N); # Current output endif ## Zero-gain (OL) observer with state resetting |
︙ |