Overview
Comment: | Updated to account for new nonlinear ppp |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6632bcb60e10755fbfaeff588255efd5 |
User & Date: | gawthrop@users.sourceforge.net on 2001-05-26 15:46:38 |
Other Links: | branch diff | manifest | tags |
Context
2001-05-26
| ||
18:36:43 |
Further modifications. Now works on rcPPP -- next jobs: add identification to ppp_nlin_sim create real-time ppp_nlin_run check-in: 3f62cd4a52 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
15:46:38 | Updated to account for new nonlinear ppp check-in: 6632bcb60e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2001-05-24
| ||
07:48:17 | Include artwork in the cbg.fig file check-in: 39adc84a7e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mttrc.csh from [1bee2798af] to [689359fe62].
1 | 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 27 28 29 30 31 32 33 34 35 | - + + + + + + + + + + | #!/bin/csh |
︙ | |||
37 38 39 40 41 42 43 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | - | ## Initial merge of ode2odes.exe into main mtt. ## standalone_rep.make deleted: rules moved to mtt, variables to mttrc. ## ## Revision 1.17 2000/12/27 16:46:13 peterg ## Stripped the mtt- from paths ## ## Revision 1.16 2000/12/27 15:16:44 peterg |
︙ | |||
71 72 73 74 75 76 77 | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - + - + - - - | ## Revision 1.7 1998/03/24 09:11:49 peterg ## Compatible with .csh version ## ## Revision 1.6 1998/03/13 11:53:29 peterg ## reduce --> reduce 64 ## ## Revision 1.5 1998/01/16 08:55:01 peterg |
︙ | |||
155 156 157 158 159 160 161 | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | - + + - - - - - + + + + + - - - - + + + + - + - - - - - - + + + + + + - - - + + + - + - | # Setup latex2html setenv LATEX2HTML "latex2html -contents_in_navigation -index_in_navigation -address http://mtt.sourceforge.net" # Ascend stuff setenv ASCENDLIBRARY $MTTPATH/ascend/lib # Oct file generation - use version with no optimisation. |
Modified mttroot/mtt/bin/trans/make_ssim from [dcfc761ddf] to [3ba8b84f9a].
︙ | |||
11 12 13 14 15 16 17 18 19 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | + + + + + + + - - + + - + - + + | echo Creating $outfile make_m() { mtt_header ${sys} ssim m > ${outfile} cat >> ${outfile} <<EOF ## Pass input as a global global MTT_input MTT_input_index MTT_input_last if nargin>4 [n,m] = size(index); if (n>m) # Make sure its a row vector index = index'; endif endif [nx2,ny2] = ${sys}_def; |
︙ |
Modified mttroot/mtt/bin/trans/mtt_header from [dbbc0973db] to [63911c75bc].
︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + + + | # Copyright (C) 2000 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.32 2001/05/24 07:42:12 gawthrop ## Included and updated the missing tf_r2m ## ## Revision 1.31 2001/04/03 14:49:42 gawthrop ## Revised to incorporate new ssim (sensitivity simulation) ## representation (m only just now). ## ## Revision 1.30 2001/03/30 15:13:58 gawthrop ## Rationalised simulation modes to each return mtt_data ## |
︙ | |||
284 285 286 287 288 289 290 | 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | - + | args=mttpar declarestates=yes ;; ssim) states=no; inputs=no; parameters=no; |
︙ |
Modified mttroot/mtt/lib/comp/compound/Sensitivity/sCS/sCS_lbl.txt from [9950653fbb] to [da775c33bd].
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 27 28 29 | 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | + + + - + | %% Label file for system sCS (sCS_lbl.txt) %SUMMARY sCS C component with initial state % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %% $Id$ % %% $Log$ % %% Revision 1.1 2000/12/28 10:31:35 peterg % %% Put under RCS % %% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Port aliases %ALIAS in in_1,in_2 % Argument aliases %ALIAS $1 effort,c %ALIAS $2 e_0 %ALIAS $3 c_s %ALIAS $4 e_0s %% Each line should be of one of the following forms: % a comment (ie starting with %) % component-name cr_name arg1,arg2,..argn % blank % ---- Component labels ---- % Component type C |
Modified mttroot/mtt/lib/control/PPP/ppp_nlin.m from [0eacb03d2f] to [46741c2bd0].
| 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 27 28 29 30 31 32 | - + - + + + - + - + |
|
Modified mttroot/mtt/lib/control/PPP/ppp_nlin_sim.m from [93a2ec563f] to [7a76a326ac].
| 1 2 3 4 5 6 7 8 | - + |
|
︙ | |||
18 19 20 21 22 23 24 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | - + + - + - + + + - - - - - - + + + + + + - - + + + + + + - - + + - + - + + + + - + - - - - - - - - - - - - - - - - - + | endif ## Names s_system_name = sprintf("s%s", system_name); |
︙ | |||
123 124 125 126 127 128 129 | 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 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 184 185 186 187 188 189 | - + - + - + - - + - + + - - - - + + + + - + - - + - - - - - + + + + + + + - - - + + + - - - + + + - - + + - - - - - - - - | elseif strcmp(extras.U_initial,"zero") U = zeros(n_U,1); else error(sprintf("extras.U_initial = \"%s\" is invalid", extras.U_initial)); endif ## Reverse time to get "previous" U |
Modified mttroot/mtt/lib/control/PPP/ppp_optimise.m from [a4cd6bb37d] to [b7facdcf98].
︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | + + + | ###################################### ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 2001/04/05 11:50:12 gawthrop ## Tidied up documentation + verbose mode ## ## Revision 1.2 2001/04/04 08:36:25 gawthrop ## Restuctured to be more logical. ## Data is now in columns to be compatible with MTT. ## ## Revision 1.1 2000/12/28 11:58:07 peterg ## Put under CVS ## |
︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | + + + | extras.max_iterations = 10; extras.v = 1e-5; extras.verbose = 0; endif [n_data,n_y] = size(y_0); if n_data<n_y error("ppp_optimise: y_0 should be in columns, not rows") endif n_th = length(i_s); error_old = inf; error_old_old = inf; error = 1e50; reduction = inf; predicted_reduction = 0; |
︙ | |||
88 89 90 91 92 93 94 95 96 97 98 99 100 101 | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | + + + + + + + + + + | while (abs(reduction)>extras.criterion)&&\ (abs(error)>extras.criterion)&&\ (iterations<extras.max_iterations) iterations = iterations + 1; # Increment iteration counter [y,y_par] = eval(sim_command); # Simulate [N_data,N_y] = size(y); if (N_y!=n_y) mess = sprintf("n_y (%i) in data not same as n_y (%i) in model", n_y,N_y); error(mess); endif ## Use the last part of the simulation to compare with data y = y(1+N_data-n_data:N_data,:); y_par = y_par(1+N_data-n_data:N_data,:); ##Evaluate error, cost derivative J and cost second derivative JJ error = 0; J = zeros(n_th,1); JJ = zeros(n_th,n_th); for i = 1:n_y |
︙ |
Modified mttroot/mtt/lib/control/PPP/ppp_ustar.m from [7e105f13fe] to [0be0149c8e].
| 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - + - + + + + + + + + - + + + + + + + - + + + + |
|