Overview
Comment: | Don't use terminal weighting if no P argument |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a212aaaac62abacac7421af4dc96f2d2 |
User & Date: | gawthrop@users.sourceforge.net on 2003-05-15 08:09:13 |
Other Links: | branch diff | manifest | tags |
Context
2003-05-16
| ||
11:16:28 | Fixed bug with multiports check-in: bd26afc1a1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2003-05-15
| ||
08:09:13 | Don't use terminal weighting if no P argument check-in: a212aaaac6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2003-05-14
| ||
09:01:18 | *** empty log message *** check-in: 8fd4c4d09c user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/control/PPP/ppp_lin.m from [2951f6d250] to [a5131f4e21].
︙ | |||
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | + + + | if nargin<9 R = zeros(n_u,1); endif ## Default P (terminal weight) if nargin<10 P = zeros(n_x,n_x); P_weighting = 0 else P_weighting = 1 endif ## Default condittion number if nargin<11 max_cond = 1e20; endif |
︙ | |||
184 185 186 187 188 189 190 | 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + + - | QQ = ones(n_x,1)*Q(i,:); # Resize Q J_xw = J_xw + (QQ .* y_x(:,i:n_y:n_yx)') * Ws (:,i:n_y:n_yw); QQ = ones(n_W,1)*Q(i,:); # Resize Q J_ww = J_ww + (QQ .* Ws (:,i:n_y:n_yw)') * Ws (:,i:n_y:n_yw); endfor endif if P_weighting |