Overview
| Comment: | Removed debugging lines |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
53b055c7bbfc07c0a5acd8fedf14f22f |
| User & Date: | gawthrop@users.sourceforge.net on 2002-05-10 11:46:45.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2002-05-10
| ||
| 12:38:11 | Updated to new format check-in: a2ed2470df user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 11:46:45 | Removed debugging lines check-in: 53b055c7bb user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
| 09:08:55 |
Added EMTF and INTF Fixed bug in writing out component headings check-in: 0cb15cb36f user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/control/PPP/ppp_RT_sim_compute.m
from [d2604d4e33]
to [bbee59ecfc].
1 2 3 4 5 6 7 8 9 10 11 12 |
function ppp_RT_sim_compute (U)
## usage: [y,u] = ppp_RT_sim_compute (U)
##
## U PPP weight (column vector)
global system_name_sim i_ppp_sim x_0_sim y_sim u_sim A_u_sim simpar_sim
## System details -- defines simulation within ol interval
par = eval(sprintf("%s_numpar;", system_name_sim));
t = [0:simpar_sim.dt:simpar_sim.last];
n_t = length(t);
| | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
function ppp_RT_sim_compute (U)
## usage: [y,u] = ppp_RT_sim_compute (U)
##
## U PPP weight (column vector)
global system_name_sim i_ppp_sim x_0_sim y_sim u_sim A_u_sim simpar_sim
## System details -- defines simulation within ol interval
par = eval(sprintf("%s_numpar;", system_name_sim));
t = [0:simpar_sim.dt:simpar_sim.last];
n_t = length(t);
[n_x,n_y,n_u] = eval(sprintf("%s_def", system_name_sim));
[n_U,junk] = size(A_u_sim);
## Set up u_star
u_star = ppp_ustar(A_u_sim,1,t,0,0,n_u-n_U);
## Simulate
par(i_ppp_sim(:,3)) = U; # Update the simulation ppp weights
[y_sim,x] = eval(sprintf("%s_sim(x_0_sim, par, simpar_sim, u_star);", \
system_name_sim));
x_0_sim = x(n_t,:)'; # Extract state for next time
u_sim = u_star(:,1:n_U)*U;
endfunction
|