Overview
| Comment: | Make time horizon tau part of p_c struct |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
fb3311a46fd82ae5b87aeddcacb5af37 |
| User & Date: | gawthrop@users.sourceforge.net on 2003-10-21 09:55:02.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2003-10-22
| ||
| 23:49:43 | Put Xmtt into Debian|App|Math menu. check-in: cdfbf2e2fc user: geraint@users.sourceforge.net tags: origin/master, trunk | |
|
2003-10-21
| ||
| 09:55:02 | Make time horizon tau part of p_c struct check-in: fb3311a46f user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 09:30:24 | Revised to work with LQ on alnalogue circuit example with integration check-in: 19c0c38dde user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/control/PPP/ppp_lin_run.m
from [fdb48937ab]
to [afe5f8a794].
| ︙ | |||
102 103 104 105 106 107 108 109 110 111 112 113 114 115 | 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 | + + + + + + + + + + + + |
endif
endif
else
error(sprintf("Method %s not recognised", p_c.Method));
endif
endif
if !struct_contains(p_c,"tau") # Time horizon
if strcmp(p_c.Method,"lq")
p_c.tau = [0:0.1:1]*2;
elseif strcmp(p_c.Method,"original");
p_c.tau = [10:0.1:11];
else
error(sprintf("Method %s not recognised", p_c.Method));
endif
endif
if !struct_contains(p_o,"x_0")
p_o.x_0 = zeros(n_x,1);
endif
if !struct_contains(p_o,"method")
##p_o.method = "continuous";
p_o.method = "intermittent";
|
| ︙ | |||
135 136 137 138 139 140 141 | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | - + - + - + - + + + |
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);
else
I = ceil(p_c.T/p_c.delta_ol) # Number of large samples
if strcmp(p_c.Method, "original")
|
| ︙ |