Changes In Branch origin/optimise-algebraic-equations Excluding Merge-Ins
This is equivalent to a diff from e168fd1202 to 324f841c3c
2002-07-10
| ||
15:52:17 | Updated from main branch. Leaf check-in: 324f841c3c user: geraint@users.sourceforge.net tags: origin/optimise-algebraic-equations, trunk | |
15:22:30 | Updated from main branch. check-in: df5f842a8c user: geraint@users.sourceforge.net tags: origin/optimise-algebraic-equations, trunk | |
2002-06-10
| ||
08:27:33 | Updated description check-in: 6c463de05f user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2002-06-05
| ||
10:54:13 | Created branch optimise-algebraic-equations check-in: 28ad1630ec user: gawthrop@users.sourceforge.net tags: origin/optimise-algebraic-equations, trunk | |
10:54:12 | #include "useful-functions.hh" added to files. check-in: e168fd1202 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-05-29
| ||
18:40:43 | Made file C compliant. check-in: 27de151df7 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Deleted CVSROOT/checkoutlist version [db1d2d9b69].
| - - - - - - - - - - - - - - |
|
Deleted CVSROOT/commitinfo version [85654ac9a8].
| - - - - - - - - - - - - - - - |
|
Deleted CVSROOT/config version [28e7a42550].
| - - - - - - - - - - - |
|
Deleted CVSROOT/cvswrappers version [9d41597c29].
| - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted CVSROOT/editinfo version [dfa5fb459c].
| - - - - - - - - - - - - - - - - - - - - - |
|
Deleted CVSROOT/loginfo version [7508d75767].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted CVSROOT/modules version [84b74e5335].
| - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted CVSROOT/notify version [2a5259e3c5].
| - - - - - - - - - - - - |
|
Deleted CVSROOT/rcsinfo version [c276b88ba1].
| - - - - - - - - - - - - - |
|
Deleted CVSROOT/syncmail version [c9554ab114].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Deleted CVSROOT/taginfo version [364dad5373].
| - - - - - - - - - - - - - - - - - - - - |
|
Deleted CVSROOT/verifymsg version [cbc796537d].
| - - - - - - - - - - - - - - - - - - - - - |
|
Modified mttroot/mtt/bin/mtt from [68d41245b0] to [a4c3c642a3].
︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | + + + | # Copyright (C) 2001 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.353 2002/05/28 18:08:38 geraint ## Fixed [ 547294 ] CRs are not sought from MTT_CRS. ## ## Revision 1.352 2002/05/24 11:04:10 geraint ## Removed unnecessary message about *.log file not existing when -D option is used. ## ## Revision 1.351 2002/05/23 17:08:20 geraint ## `mtt sys sfun zip` now produces an input block and an interface block for MTT models. ## Models can be embedded within larger Simulink models by the 2 ports. ## The user must edit 2 code blocks in <sys>_sfun_interface.c before compiling with mex. |
︙ | |||
2699 2700 2701 2702 2703 2704 2705 | 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 | - + | ${sys}_rdae.r: ${sys}_ese.r ${sys}_def.r $1_modpar.r ${Subsystem}_cr.r ${Subsystem}_subs.r ifneq ($partition,) echo Doing subsystems mtt_make_subsystems ${sys} rdae r endif mtt_prepend.sh -p $1_modpar.r $1_ese.r # Add modulated parameters to start |
︙ |
Modified mttroot/mtt/bin/trans/dae2cse_r from [e055f9ba28] to [4bd66676aa].
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + + + + | # Copyright (c) P.J.Gawthrop 1991, 1992, 1994. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.20 2002/04/28 18:41:26 geraint ## Fixed [ 549658 ] awk should be gawk. ## Replaced calls to awk with call to gawk. ## ## Revision 1.19 2001/10/26 01:01:49 geraint ## fixcc when rdae_is_dae (-cr). ## ## Revision 1.18 2001/10/05 23:37:32 geraint ## Fixed assignment statement in ae.r when RHS=0. ## ## Revision 1.17 2001/07/27 23:29:10 geraint |
︙ | |||
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | 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 | + + - + | *) echo "$1 is an invalid argument - ignoring" ;; esac shift done # Create the reduce output code def2write_r $optimise $1 ae def2write_r $optimise $1 cse def2write_r $optimise $1 csex # Version without E matrix def2write_r $optimise $1 cseo echo "Creating $1_ae.r $optimise_msg" echo "Creating $1_cse.r $solve_msg $optimise_msg $fix_msg" echo "Creating $1_csex.r $optimise_msg" echo "Creating $1_cseo.r $optimise_msg" # Remove the old log file rm -f dae2cse_r.log # Remove some files |
︙ | |||
317 318 319 320 321 322 323 | 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 | - - - - - - - - - - - + + + + + + + + + + + + | set(lhs(MTT_sol_i),rhs(MTT_sol_i)); END; % No algebraic variables left! MTTNYz := 0; END; % IF MTTNyz>0 and $solve |
︙ | |||
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 | 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 | + + | in ("$1_cseo_write.r"); write "END;"; SHUT "$1_cseo.r2"; END; quit; EOF touch $1_ae.r1 $1_ae.r2 touch $1_cseo.r1 touch $1_cseo.r2 cat $1_ae.r1 $1_ae.r2 > $1_ae.r cat $1_cse.r1 $1_cse.r2 > $1_cse.r cat $1_csex.r1 $1_csex.r2 > $1_csex.r cat $1_cseo.r1 $1_cseo.r2 > $1_cseo.r if [ "$solve" = "1" ]; then echo "Setting MTTNyz=0 in $1_def.r and updating other $1_def files" gawk '{ |
︙ |
Modified mttroot/mtt/bin/trans/def2write_r from [10c4312f8d] to [ec2007c6a1].
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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 | + + + + + + + + + + + + + + + + + + + + + + | # Copyright (C) 2000 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.11.2.4 2002/06/05 23:34:33 geraint ## Eliminated argument list too long warnings. ## Now get a Segmentation Fault with very long equations! ## ## Revision 1.11.2.3 2002/06/05 18:23:38 geraint ## Cosmetic change. ## ## Revision 1.11.2.2 2002/06/05 17:57:47 geraint ## Main part of optimisation routine moved to separate file. ## ## Revision 1.11.2.1 2002/06/05 11:14:51 geraint ## ae.r now generated using def2write_r like cse?.r ## fix_c.r called at ese2rdae stage so that pow gets fixed in ae.r. ## ## These changes produce the desired result (optimised algebraic equations) but ## have highlighted a problem; when optimisation fails, Reduce does not write ## a result. For complicated systems, this can lead to missing assignments in ## the resultant code. ## ## Revision 1.11 2002/05/17 09:14:58 geraint ## Optimises each line in a separate session. Allows larger models to be built. ## ## Revision 1.10 2002/04/28 18:41:27 geraint ## Fixed [ 549658 ] awk should be gawk. ## Replaced calls to awk with call to gawk. ## ## Revision 1.9 2001/07/27 23:29:10 geraint ## Optimises only when requested (-opt). ## |
︙ | |||
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | + + + + + | Nu=`mtt_getsize $sys u` # Inputs Ny=`mtt_getsize $sys y` # Outputs Nyz=`mtt_getsize $sys yz` # Zero outputs #Npar=`wc -l $sys\_sympar.txt | gawk '{print $1}'` # Set up representation-specific stuff case $rep in ae) matrices='Yz' ns="$Nyz" ms="1" ;; cse) matrices='EdX E' ns="$Nx $Nx" ms="1 $Nx" ;; csex) matrices='EdX' |
︙ | |||
142 143 144 145 146 147 148 | 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 | - + + - - + - - - - - - - - - - - - + - - - - + - - - - - - - + - - - - + + - - - - - + | }' } mtt_optimise () { sys="$1" lhs="$2" |
︙ | |||
206 207 208 209 210 211 212 | 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | - + | m=`first "$ms"`; ms=`rest "$ms"` is=`n2m 1 $n`; js=`n2m 1 $m`; for i in $is; do for j in $js; do if [ ${opt:-""} = "-optimise" ]; then name=`echo MTT$matrix'('$i','$j')'` |
Modified mttroot/mtt/bin/trans/ese2rdae_r from [713fa3d927] to [2f139cc4dc].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 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 | + + + + + + + + + + + + + | # Copyright (c) P.J.Gawthrop, 1991, 1994, 1996 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.12.2.1 2002/06/05 11:14:51 geraint ## ae.r now generated using def2write_r like cse?.r ## fix_c.r called at ese2rdae stage so that pow gets fixed in ae.r. ## ## These changes produce the desired result (optimised algebraic equations) but ## have highlighted a problem; when optimisation fails, Reduce does not write ## a result. For complicated systems, this can lead to missing assignments in ## the resultant code. ## ## Revision 1.12 2001/07/23 23:31:17 gawthrop ## Added -cr option to load CRs first - avoids alg. loops with R ## implementation of mutiports. ## ## Revision 1.11 2001/07/06 00:46:50 gawthrop ## Added -cr option -- forces cr to be loaded before the ese.r file ## This avoids causality problems when using multi-port Rs to represent ## arbitary equations ## ## Revision 1.10 2000/11/30 15:23:16 peterg ## Taken out all subsystem stuff - now done in mtt using |
︙ | |||
96 97 98 99 100 101 102 103 104 105 106 107 108 109 | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | + + + + | case $1 in -I ) info=info;; -cr ) load_cr=yes; blurb2=' using cr and subs first'; ;; -fixcc ) include=`echo 'in "'$MTT_LIB'/reduce/fix_c.r";'` blurb3='fixing c and cc code'; ;; -partition ) partition=yes; blurb='with partitioning'; ;; *) echo "$1 is an invalid argument - ignoring"; exit ;; |
︙ | |||
132 133 134 135 136 137 138 | 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 | - + + + + | if [ -n "${load_cr}" ]; then load_cr_comm="in \"${crname}\";" load_subs_comm="in \"${subsname}\";" fi # Inform user |
︙ |
Modified mttroot/mtt/bin/trans/m/args2arg.m from [88e206959b] to [b6ee5ada28].
︙ | |||
24 25 26 27 28 29 30 31 | 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 | + + + + + + + + + + + + + + + + + + + + + + | % %% % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Field separator if nargin<3 FS = ';'; end; arg = ''; if strcmp(args, '')==0 L = length(args); args_count = 0; for i=1:n arg_count = 0; arg = ''; if args_count == L break; end; while args_count < L args_count = args_count+1; arg_count = arg_count+1; ch = str2ch(args,args_count); if ch==FS break; end; arg = [arg ch]; end; end; end; |
Modified mttroot/mtt/bin/trans/mtt_header from [b648dacad1] to [22e73f90c4].
︙ | |||
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 25 26 27 28 29 30 | + + + + + + + + + | # Copyright (C) 2000 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.53 2002/06/10 23:22:16 geraint ## Fixed problem with Matlab fsolve failing because of "user function returned Inf or Nan" (fsolve.m, line 245). ## ## Revision 1.52 2002/05/27 14:52:15 geraint ## Parameters in sfun reps are now declared using sympar.h at the top of the ## sfun*.c file instead of in individual functions. This causes the optimisation ## variables (mtt_tmp*) to be declared correctly without causing conflicts in the ## scope of parameter declarations. ## ## Revision 1.51 2002/05/19 13:01:21 geraint ## Numerical solution of algebraic equations implemented for S-function target. ## ## Equation solving requires the Matlab Optimization Toolbox to be installed. ## ## Code has been changed from C++ to C to allow mex files to be built with LCC, ## the compiler bundled with Matlab. |
︙ | |||
494 495 496 497 498 499 500 | 503 504 505 506 507 508 509 510 511 512 513 514 515 516 | - | ;; c) modeline="/* -*-c-*- Put Emacs into c-mode */"; Lc='/*' Rc='*/' Lb='[' Rb=']' |
︙ |
Added mttroot/mtt/bin/trans/mtt_optimise.sh version [51933f155d].
|
Modified mttroot/mtt/bin/trans/mtt_txt2m from [cf306685c7] to [ab89c60014].
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | + + + + + + + | # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %% Revision 1.18 2002/06/17 08:50:00 geraint # %% Changed pattern to prevent 'max(' from being translated to 'mamttx('. # %% # %% Revision 1.17 2002/04/28 18:41:27 geraint # %% Fixed [ 549658 ] awk should be gawk. # %% Replaced calls to awk with call to gawk. # %% # %% Revision 1.16 2002/04/18 17:51:11 gawthrop # %% Put default values in _simpar.m in case of missing values in txt file # %% # %% Revision 1.15 2002/03/26 12:00:37 geraint # %% Escaped characters to eliminate awk warnings. # %% # %% Revision 1.14 2001/07/13 04:54:04 geraint |
︙ | |||
253 254 255 256 257 258 259 | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | - - + + | statement = $1; if (NF<2) print " " statement if (NF>1) print statement " # " $2 }' | sed\ -e 's/\[\([0-9]*\)\]/(\1)/g' \ -e 's/\([^a-zA-Z_0-9]\)t\([^a-zA-Z_0-9]\)/\1mttt\2/g' \ |
︙ |
Added mttroot/mtt/bin/trans/optimise_max2r.awk version [d3a19e1a09].
|
Modified mttroot/mtt/cc/include/useful-functions.hh from [381e0e03ee] to [f0062089cf].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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 | + + + + + + + + + | #ifndef HAVE_USEFUL_FUNCTIONS_HH #define HAVE_USEFUL_FUNCTIONS_HH /* Code generation directives */ #define STANDALONE 0 #define OCTAVEDLD 1 #define MATLABMEX 2 #if (! defined (CODEGENTARGET)) #define CODEGENTARGET -1 #endif /* (! defined (CODEGENTARGET)) */ #ifndef __cplusplus #define inline /* strip */ #define cast_to_double (double) /* typedef unsigned int bool; const bool true = 1; const bool false = 0; */ #else #define cast_to_double static_cast<double> #endif /* ! __cplusplus */ static inline double max (const double x1, const double x2) { |
︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | + | sign (const double x) { return cast_to_double ((x > 0) ? +1 : (x < 0) ? -1 : 0); } /* Octave functions */ #if ((CODEGENTARGET == STANDALONE) || (CODEGENTARGET == OCTAVEDLD)) #ifdef __cplusplus static Matrix ones (const int r = 1, const int c = 1) { Matrix m (r, c, 1.0); return m; } |
︙ | |||
78 79 80 81 82 83 84 85 86 87 88 | 88 89 90 91 92 93 94 95 96 97 98 99 | + | static Matrix zeros (const int r, const int c) { Matrix m (r, c, 0.0); return m; } #endif /* __cplusplus */ #endif /* ((CODEGENTARGET == STANDALONE) || (CODEGENTARGET == OCTAVEDLD)) */ #endif /* HAVE_USEFUL_FUNCTIONS_HH */ |
Modified mttroot/mtt/cc/sympar_txt2h.sh from [9a054e0600] to [d4f156ac26].
1 2 3 4 5 6 7 8 9 10 | 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 | + + + + + + + + + + + + + + + | #! /bin/sh # $Id$ # $Log$ # Revision 1.7 2002/07/10 11:53:32 geraint # Replaced shell loop with template expansion - perceptibly quicker generation of sympar.h. # # Revision 1.6 2002/05/19 13:01:22 geraint # Numerical solution of algebraic equations implemented for S-function target. # # Equation solving requires the Matlab Optimization Toolbox to be installed. # # Code has been changed from C++ to C to allow mex files to be built with LCC, # the compiler bundled with Matlab. # # Parameters are now obtained from numpar.c instead of a dialogue box. # # `mtt <sys> sfun zip` creates all necessary files for building the model mex files. # # Revision 1.5 2002/04/28 18:58:06 geraint # Fixed [ 549658 ] awk should be gawk. # Replaced calls to awk with call to gawk. # # Revision 1.4 2001/08/24 21:41:04 geraint # Fixed problem with declaration when there are no numerical parameters. # |
︙ | |||
64 65 66 67 68 69 70 | 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 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 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 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 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + | } declare_temp_vars () { for name in ${TMP_VAR_NAMES} do echo "" cat <<EOF | head -`expr ${NUM_OF_TMP_VAR} + 1` static double ${name}0 MTT_UNUSED; static double ${name}1 MTT_UNUSED; static double ${name}2 MTT_UNUSED; static double ${name}3 MTT_UNUSED; static double ${name}4 MTT_UNUSED; static double ${name}5 MTT_UNUSED; static double ${name}6 MTT_UNUSED; static double ${name}7 MTT_UNUSED; static double ${name}8 MTT_UNUSED; static double ${name}9 MTT_UNUSED; static double ${name}10 MTT_UNUSED; static double ${name}11 MTT_UNUSED; static double ${name}12 MTT_UNUSED; static double ${name}13 MTT_UNUSED; static double ${name}14 MTT_UNUSED; static double ${name}15 MTT_UNUSED; static double ${name}16 MTT_UNUSED; static double ${name}17 MTT_UNUSED; static double ${name}18 MTT_UNUSED; static double ${name}19 MTT_UNUSED; static double ${name}20 MTT_UNUSED; static double ${name}21 MTT_UNUSED; static double ${name}22 MTT_UNUSED; static double ${name}23 MTT_UNUSED; static double ${name}24 MTT_UNUSED; static double ${name}25 MTT_UNUSED; static double ${name}26 MTT_UNUSED; static double ${name}27 MTT_UNUSED; static double ${name}28 MTT_UNUSED; static double ${name}29 MTT_UNUSED; static double ${name}30 MTT_UNUSED; static double ${name}31 MTT_UNUSED; static double ${name}32 MTT_UNUSED; static double ${name}33 MTT_UNUSED; static double ${name}34 MTT_UNUSED; static double ${name}35 MTT_UNUSED; static double ${name}36 MTT_UNUSED; static double ${name}37 MTT_UNUSED; static double ${name}38 MTT_UNUSED; static double ${name}39 MTT_UNUSED; static double ${name}40 MTT_UNUSED; static double ${name}41 MTT_UNUSED; static double ${name}42 MTT_UNUSED; static double ${name}43 MTT_UNUSED; static double ${name}44 MTT_UNUSED; static double ${name}45 MTT_UNUSED; static double ${name}46 MTT_UNUSED; static double ${name}47 MTT_UNUSED; static double ${name}48 MTT_UNUSED; static double ${name}49 MTT_UNUSED; static double ${name}50 MTT_UNUSED; static double ${name}51 MTT_UNUSED; static double ${name}52 MTT_UNUSED; static double ${name}53 MTT_UNUSED; static double ${name}54 MTT_UNUSED; static double ${name}55 MTT_UNUSED; static double ${name}56 MTT_UNUSED; static double ${name}57 MTT_UNUSED; static double ${name}58 MTT_UNUSED; static double ${name}59 MTT_UNUSED; static double ${name}60 MTT_UNUSED; static double ${name}61 MTT_UNUSED; static double ${name}62 MTT_UNUSED; static double ${name}63 MTT_UNUSED; static double ${name}64 MTT_UNUSED; static double ${name}65 MTT_UNUSED; static double ${name}66 MTT_UNUSED; static double ${name}67 MTT_UNUSED; static double ${name}68 MTT_UNUSED; static double ${name}69 MTT_UNUSED; static double ${name}70 MTT_UNUSED; static double ${name}71 MTT_UNUSED; static double ${name}72 MTT_UNUSED; static double ${name}73 MTT_UNUSED; static double ${name}74 MTT_UNUSED; static double ${name}75 MTT_UNUSED; static double ${name}76 MTT_UNUSED; static double ${name}77 MTT_UNUSED; static double ${name}78 MTT_UNUSED; static double ${name}79 MTT_UNUSED; static double ${name}80 MTT_UNUSED; static double ${name}81 MTT_UNUSED; static double ${name}82 MTT_UNUSED; static double ${name}83 MTT_UNUSED; static double ${name}84 MTT_UNUSED; static double ${name}85 MTT_UNUSED; static double ${name}86 MTT_UNUSED; static double ${name}87 MTT_UNUSED; static double ${name}88 MTT_UNUSED; static double ${name}89 MTT_UNUSED; static double ${name}90 MTT_UNUSED; static double ${name}91 MTT_UNUSED; static double ${name}92 MTT_UNUSED; static double ${name}93 MTT_UNUSED; static double ${name}94 MTT_UNUSED; static double ${name}95 MTT_UNUSED; static double ${name}96 MTT_UNUSED; static double ${name}97 MTT_UNUSED; static double ${name}98 MTT_UNUSED; static double ${name}99 MTT_UNUSED; static double ${name}100 MTT_UNUSED; static double ${name}101 MTT_UNUSED; static double ${name}102 MTT_UNUSED; static double ${name}103 MTT_UNUSED; static double ${name}104 MTT_UNUSED; static double ${name}105 MTT_UNUSED; static double ${name}106 MTT_UNUSED; static double ${name}107 MTT_UNUSED; static double ${name}108 MTT_UNUSED; static double ${name}109 MTT_UNUSED; static double ${name}110 MTT_UNUSED; static double ${name}111 MTT_UNUSED; static double ${name}112 MTT_UNUSED; static double ${name}113 MTT_UNUSED; static double ${name}114 MTT_UNUSED; static double ${name}115 MTT_UNUSED; static double ${name}116 MTT_UNUSED; static double ${name}117 MTT_UNUSED; static double ${name}118 MTT_UNUSED; static double ${name}119 MTT_UNUSED; static double ${name}120 MTT_UNUSED; static double ${name}121 MTT_UNUSED; static double ${name}122 MTT_UNUSED; static double ${name}123 MTT_UNUSED; static double ${name}124 MTT_UNUSED; static double ${name}125 MTT_UNUSED; static double ${name}126 MTT_UNUSED; static double ${name}127 MTT_UNUSED; static double ${name}128 MTT_UNUSED; static double ${name}129 MTT_UNUSED; static double ${name}130 MTT_UNUSED; static double ${name}131 MTT_UNUSED; static double ${name}132 MTT_UNUSED; static double ${name}133 MTT_UNUSED; static double ${name}134 MTT_UNUSED; static double ${name}135 MTT_UNUSED; static double ${name}136 MTT_UNUSED; static double ${name}137 MTT_UNUSED; static double ${name}138 MTT_UNUSED; static double ${name}139 MTT_UNUSED; static double ${name}140 MTT_UNUSED; static double ${name}141 MTT_UNUSED; static double ${name}142 MTT_UNUSED; static double ${name}143 MTT_UNUSED; static double ${name}144 MTT_UNUSED; static double ${name}145 MTT_UNUSED; static double ${name}146 MTT_UNUSED; static double ${name}147 MTT_UNUSED; static double ${name}148 MTT_UNUSED; static double ${name}149 MTT_UNUSED; static double ${name}150 MTT_UNUSED; static double ${name}151 MTT_UNUSED; static double ${name}152 MTT_UNUSED; static double ${name}153 MTT_UNUSED; static double ${name}154 MTT_UNUSED; static double ${name}155 MTT_UNUSED; static double ${name}156 MTT_UNUSED; static double ${name}157 MTT_UNUSED; static double ${name}158 MTT_UNUSED; static double ${name}159 MTT_UNUSED; static double ${name}160 MTT_UNUSED; static double ${name}161 MTT_UNUSED; static double ${name}162 MTT_UNUSED; static double ${name}163 MTT_UNUSED; static double ${name}164 MTT_UNUSED; static double ${name}165 MTT_UNUSED; static double ${name}166 MTT_UNUSED; static double ${name}167 MTT_UNUSED; static double ${name}168 MTT_UNUSED; static double ${name}169 MTT_UNUSED; static double ${name}170 MTT_UNUSED; static double ${name}171 MTT_UNUSED; static double ${name}172 MTT_UNUSED; static double ${name}173 MTT_UNUSED; static double ${name}174 MTT_UNUSED; static double ${name}175 MTT_UNUSED; static double ${name}176 MTT_UNUSED; static double ${name}177 MTT_UNUSED; static double ${name}178 MTT_UNUSED; static double ${name}179 MTT_UNUSED; static double ${name}180 MTT_UNUSED; static double ${name}181 MTT_UNUSED; static double ${name}182 MTT_UNUSED; static double ${name}183 MTT_UNUSED; static double ${name}184 MTT_UNUSED; static double ${name}185 MTT_UNUSED; static double ${name}186 MTT_UNUSED; static double ${name}187 MTT_UNUSED; static double ${name}188 MTT_UNUSED; static double ${name}189 MTT_UNUSED; static double ${name}190 MTT_UNUSED; static double ${name}191 MTT_UNUSED; static double ${name}192 MTT_UNUSED; static double ${name}193 MTT_UNUSED; static double ${name}194 MTT_UNUSED; static double ${name}195 MTT_UNUSED; static double ${name}196 MTT_UNUSED; static double ${name}197 MTT_UNUSED; static double ${name}198 MTT_UNUSED; static double ${name}199 MTT_UNUSED; static double ${name}200 MTT_UNUSED; static double ${name}201 MTT_UNUSED; static double ${name}202 MTT_UNUSED; static double ${name}203 MTT_UNUSED; static double ${name}204 MTT_UNUSED; static double ${name}205 MTT_UNUSED; static double ${name}206 MTT_UNUSED; static double ${name}207 MTT_UNUSED; static double ${name}208 MTT_UNUSED; static double ${name}209 MTT_UNUSED; static double ${name}210 MTT_UNUSED; static double ${name}211 MTT_UNUSED; static double ${name}212 MTT_UNUSED; static double ${name}213 MTT_UNUSED; static double ${name}214 MTT_UNUSED; static double ${name}215 MTT_UNUSED; static double ${name}216 MTT_UNUSED; static double ${name}217 MTT_UNUSED; static double ${name}218 MTT_UNUSED; static double ${name}219 MTT_UNUSED; static double ${name}220 MTT_UNUSED; static double ${name}221 MTT_UNUSED; static double ${name}222 MTT_UNUSED; static double ${name}223 MTT_UNUSED; static double ${name}224 MTT_UNUSED; static double ${name}225 MTT_UNUSED; static double ${name}226 MTT_UNUSED; static double ${name}227 MTT_UNUSED; static double ${name}228 MTT_UNUSED; static double ${name}229 MTT_UNUSED; static double ${name}230 MTT_UNUSED; static double ${name}231 MTT_UNUSED; static double ${name}232 MTT_UNUSED; static double ${name}233 MTT_UNUSED; static double ${name}234 MTT_UNUSED; static double ${name}235 MTT_UNUSED; static double ${name}236 MTT_UNUSED; static double ${name}237 MTT_UNUSED; static double ${name}238 MTT_UNUSED; static double ${name}239 MTT_UNUSED; static double ${name}240 MTT_UNUSED; static double ${name}241 MTT_UNUSED; static double ${name}242 MTT_UNUSED; static double ${name}243 MTT_UNUSED; static double ${name}244 MTT_UNUSED; static double ${name}245 MTT_UNUSED; static double ${name}246 MTT_UNUSED; static double ${name}247 MTT_UNUSED; static double ${name}248 MTT_UNUSED; static double ${name}249 MTT_UNUSED; static double ${name}250 MTT_UNUSED; static double ${name}251 MTT_UNUSED; static double ${name}252 MTT_UNUSED; static double ${name}253 MTT_UNUSED; static double ${name}254 MTT_UNUSED; static double ${name}255 MTT_UNUSED; static double ${name}256 MTT_UNUSED; static double ${name}257 MTT_UNUSED; static double ${name}258 MTT_UNUSED; static double ${name}259 MTT_UNUSED; static double ${name}260 MTT_UNUSED; static double ${name}261 MTT_UNUSED; static double ${name}262 MTT_UNUSED; static double ${name}263 MTT_UNUSED; static double ${name}264 MTT_UNUSED; static double ${name}265 MTT_UNUSED; static double ${name}266 MTT_UNUSED; static double ${name}267 MTT_UNUSED; static double ${name}268 MTT_UNUSED; static double ${name}269 MTT_UNUSED; static double ${name}270 MTT_UNUSED; static double ${name}271 MTT_UNUSED; static double ${name}272 MTT_UNUSED; static double ${name}273 MTT_UNUSED; static double ${name}274 MTT_UNUSED; static double ${name}275 MTT_UNUSED; static double ${name}276 MTT_UNUSED; static double ${name}277 MTT_UNUSED; static double ${name}278 MTT_UNUSED; static double ${name}279 MTT_UNUSED; static double ${name}280 MTT_UNUSED; static double ${name}281 MTT_UNUSED; static double ${name}282 MTT_UNUSED; static double ${name}283 MTT_UNUSED; static double ${name}284 MTT_UNUSED; static double ${name}285 MTT_UNUSED; static double ${name}286 MTT_UNUSED; static double ${name}287 MTT_UNUSED; static double ${name}288 MTT_UNUSED; static double ${name}289 MTT_UNUSED; static double ${name}290 MTT_UNUSED; static double ${name}291 MTT_UNUSED; static double ${name}292 MTT_UNUSED; static double ${name}293 MTT_UNUSED; static double ${name}294 MTT_UNUSED; static double ${name}295 MTT_UNUSED; static double ${name}296 MTT_UNUSED; static double ${name}297 MTT_UNUSED; static double ${name}298 MTT_UNUSED; static double ${name}299 MTT_UNUSED; static double ${name}300 MTT_UNUSED; static double ${name}301 MTT_UNUSED; static double ${name}302 MTT_UNUSED; static double ${name}303 MTT_UNUSED; static double ${name}304 MTT_UNUSED; static double ${name}305 MTT_UNUSED; static double ${name}306 MTT_UNUSED; static double ${name}307 MTT_UNUSED; static double ${name}308 MTT_UNUSED; static double ${name}309 MTT_UNUSED; static double ${name}310 MTT_UNUSED; static double ${name}311 MTT_UNUSED; static double ${name}312 MTT_UNUSED; static double ${name}313 MTT_UNUSED; static double ${name}314 MTT_UNUSED; static double ${name}315 MTT_UNUSED; static double ${name}316 MTT_UNUSED; static double ${name}317 MTT_UNUSED; static double ${name}318 MTT_UNUSED; static double ${name}319 MTT_UNUSED; static double ${name}320 MTT_UNUSED; static double ${name}321 MTT_UNUSED; static double ${name}322 MTT_UNUSED; static double ${name}323 MTT_UNUSED; static double ${name}324 MTT_UNUSED; static double ${name}325 MTT_UNUSED; static double ${name}326 MTT_UNUSED; static double ${name}327 MTT_UNUSED; static double ${name}328 MTT_UNUSED; static double ${name}329 MTT_UNUSED; static double ${name}330 MTT_UNUSED; static double ${name}331 MTT_UNUSED; static double ${name}332 MTT_UNUSED; static double ${name}333 MTT_UNUSED; static double ${name}334 MTT_UNUSED; static double ${name}335 MTT_UNUSED; static double ${name}336 MTT_UNUSED; static double ${name}337 MTT_UNUSED; static double ${name}338 MTT_UNUSED; static double ${name}339 MTT_UNUSED; static double ${name}340 MTT_UNUSED; static double ${name}341 MTT_UNUSED; static double ${name}342 MTT_UNUSED; static double ${name}343 MTT_UNUSED; static double ${name}344 MTT_UNUSED; static double ${name}345 MTT_UNUSED; static double ${name}346 MTT_UNUSED; static double ${name}347 MTT_UNUSED; static double ${name}348 MTT_UNUSED; static double ${name}349 MTT_UNUSED; static double ${name}350 MTT_UNUSED; static double ${name}351 MTT_UNUSED; static double ${name}352 MTT_UNUSED; static double ${name}353 MTT_UNUSED; static double ${name}354 MTT_UNUSED; static double ${name}355 MTT_UNUSED; static double ${name}356 MTT_UNUSED; static double ${name}357 MTT_UNUSED; static double ${name}358 MTT_UNUSED; static double ${name}359 MTT_UNUSED; static double ${name}360 MTT_UNUSED; static double ${name}361 MTT_UNUSED; static double ${name}362 MTT_UNUSED; static double ${name}363 MTT_UNUSED; static double ${name}364 MTT_UNUSED; static double ${name}365 MTT_UNUSED; static double ${name}366 MTT_UNUSED; static double ${name}367 MTT_UNUSED; static double ${name}368 MTT_UNUSED; static double ${name}369 MTT_UNUSED; static double ${name}370 MTT_UNUSED; static double ${name}371 MTT_UNUSED; static double ${name}372 MTT_UNUSED; static double ${name}373 MTT_UNUSED; static double ${name}374 MTT_UNUSED; static double ${name}375 MTT_UNUSED; static double ${name}376 MTT_UNUSED; static double ${name}377 MTT_UNUSED; static double ${name}378 MTT_UNUSED; static double ${name}379 MTT_UNUSED; static double ${name}380 MTT_UNUSED; static double ${name}381 MTT_UNUSED; static double ${name}382 MTT_UNUSED; static double ${name}383 MTT_UNUSED; static double ${name}384 MTT_UNUSED; static double ${name}385 MTT_UNUSED; static double ${name}386 MTT_UNUSED; static double ${name}387 MTT_UNUSED; static double ${name}388 MTT_UNUSED; static double ${name}389 MTT_UNUSED; static double ${name}390 MTT_UNUSED; static double ${name}391 MTT_UNUSED; static double ${name}392 MTT_UNUSED; static double ${name}393 MTT_UNUSED; static double ${name}394 MTT_UNUSED; static double ${name}395 MTT_UNUSED; static double ${name}396 MTT_UNUSED; static double ${name}397 MTT_UNUSED; static double ${name}398 MTT_UNUSED; static double ${name}399 MTT_UNUSED; static double ${name}400 MTT_UNUSED; static double ${name}401 MTT_UNUSED; static double ${name}402 MTT_UNUSED; static double ${name}403 MTT_UNUSED; static double ${name}404 MTT_UNUSED; static double ${name}405 MTT_UNUSED; static double ${name}406 MTT_UNUSED; static double ${name}407 MTT_UNUSED; static double ${name}408 MTT_UNUSED; static double ${name}409 MTT_UNUSED; static double ${name}410 MTT_UNUSED; static double ${name}411 MTT_UNUSED; static double ${name}412 MTT_UNUSED; static double ${name}413 MTT_UNUSED; static double ${name}414 MTT_UNUSED; static double ${name}415 MTT_UNUSED; static double ${name}416 MTT_UNUSED; static double ${name}417 MTT_UNUSED; static double ${name}418 MTT_UNUSED; static double ${name}419 MTT_UNUSED; static double ${name}420 MTT_UNUSED; static double ${name}421 MTT_UNUSED; static double ${name}422 MTT_UNUSED; static double ${name}423 MTT_UNUSED; static double ${name}424 MTT_UNUSED; static double ${name}425 MTT_UNUSED; static double ${name}426 MTT_UNUSED; static double ${name}427 MTT_UNUSED; static double ${name}428 MTT_UNUSED; static double ${name}429 MTT_UNUSED; static double ${name}430 MTT_UNUSED; static double ${name}431 MTT_UNUSED; static double ${name}432 MTT_UNUSED; static double ${name}433 MTT_UNUSED; static double ${name}434 MTT_UNUSED; static double ${name}435 MTT_UNUSED; static double ${name}436 MTT_UNUSED; static double ${name}437 MTT_UNUSED; static double ${name}438 MTT_UNUSED; static double ${name}439 MTT_UNUSED; static double ${name}440 MTT_UNUSED; static double ${name}441 MTT_UNUSED; static double ${name}442 MTT_UNUSED; static double ${name}443 MTT_UNUSED; static double ${name}444 MTT_UNUSED; static double ${name}445 MTT_UNUSED; static double ${name}446 MTT_UNUSED; static double ${name}447 MTT_UNUSED; static double ${name}448 MTT_UNUSED; static double ${name}449 MTT_UNUSED; static double ${name}450 MTT_UNUSED; static double ${name}451 MTT_UNUSED; static double ${name}452 MTT_UNUSED; static double ${name}453 MTT_UNUSED; static double ${name}454 MTT_UNUSED; static double ${name}455 MTT_UNUSED; static double ${name}456 MTT_UNUSED; static double ${name}457 MTT_UNUSED; static double ${name}458 MTT_UNUSED; static double ${name}459 MTT_UNUSED; static double ${name}460 MTT_UNUSED; static double ${name}461 MTT_UNUSED; static double ${name}462 MTT_UNUSED; static double ${name}463 MTT_UNUSED; static double ${name}464 MTT_UNUSED; static double ${name}465 MTT_UNUSED; static double ${name}466 MTT_UNUSED; static double ${name}467 MTT_UNUSED; static double ${name}468 MTT_UNUSED; static double ${name}469 MTT_UNUSED; static double ${name}470 MTT_UNUSED; static double ${name}471 MTT_UNUSED; static double ${name}472 MTT_UNUSED; static double ${name}473 MTT_UNUSED; static double ${name}474 MTT_UNUSED; static double ${name}475 MTT_UNUSED; static double ${name}476 MTT_UNUSED; static double ${name}477 MTT_UNUSED; static double ${name}478 MTT_UNUSED; static double ${name}479 MTT_UNUSED; static double ${name}480 MTT_UNUSED; static double ${name}481 MTT_UNUSED; static double ${name}482 MTT_UNUSED; static double ${name}483 MTT_UNUSED; static double ${name}484 MTT_UNUSED; static double ${name}485 MTT_UNUSED; static double ${name}486 MTT_UNUSED; static double ${name}487 MTT_UNUSED; static double ${name}488 MTT_UNUSED; static double ${name}489 MTT_UNUSED; static double ${name}490 MTT_UNUSED; static double ${name}491 MTT_UNUSED; static double ${name}492 MTT_UNUSED; static double ${name}493 MTT_UNUSED; static double ${name}494 MTT_UNUSED; static double ${name}495 MTT_UNUSED; static double ${name}496 MTT_UNUSED; static double ${name}497 MTT_UNUSED; static double ${name}498 MTT_UNUSED; static double ${name}499 MTT_UNUSED; static double ${name}500 MTT_UNUSED; EOF if [ ${NUM_OF_TMP_VAR} -gt 500 ]; then |
︙ |
Modified mttroot/mtt/doc/mtt.texi from [95bf219a63] to [677998cd3f].
︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | + + + + + + + + + | @comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @comment Version control history @comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @comment $Id$ @comment $Log$ @comment Revision 1.9 2002/07/05 13:29:34 geraint @comment Added notes about generating dynamically linked functions for Octave and Matlab. @comment @comment Revision 1.8 2002/07/04 21:34:12 geraint @comment Updated gnuplot view description to describe Tcl/Tk interface instead of obsolete txt method. @comment @comment Revision 1.7 2002/04/23 09:51:54 gawthrop @comment Changed incorrect statement about searching for components. @comment @comment Revision 1.6 2001/10/15 14:29:50 gawthrop @comment Added documentaton on [1:N] style port labels @comment @comment Revision 1.5 2001/07/23 03:35:29 geraint @comment Updated file structure (mtt/bin). @comment @comment Revision 1.4 2001/07/23 03:25:02 geraint |
︙ | |||
431 432 433 434 435 436 437 438 439 440 441 442 443 444 | 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 | + + + + | Simulation parameters * Euler integration:: * Implicit integration:: * Runge Kutta IV integration:: * Hybrd algebraic solver:: Simulation code * Dynamically linked functions:: Simulation output * Viewing results with gnuplot:: * Exporting results to SciGraphica:: Representations |
︙ | |||
658 659 660 661 662 663 664 665 666 667 668 669 670 671 | 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 | + + + | * Text editors:: * Octave:: * LaTeX:: Octave * Octave control system toolbox (OCST):: * Creating GNU Octave .oct files:: * Creating Matlab .mex files:: * Embedding MTT models in Simulink:: Administration * Software components:: * REDUCE setup:: * Octave setup:: * Paths:: |
︙ | |||
2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 | 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | @end example To generate an executable based on the C++ representation: @example mtt -cc [options] sys ode2odes exe @end example @menu * Dynamically linked functions:: @end menu @node Dynamically linked functions, , Simulation code, Simulation code @comment node-name, next, previous, up @subsection Dynamically linked functions Some model representations can be compiled into dynamically loaded code (shared objects) which are compiled prior to use in other modelling and simulation environments; in particular, .oct files can be generated for use in GNU Octave (@pxref{Creating GNU Octave .oct files}) and .mex files can be generated for use in Matlab (@pxref{Creating Matlab .mex files}) or Simulink (@pxref{Embedding MTT models in Simulink}). The use of compiled (and possibly compiler-optimised) code can offer significant processing speed advantages over equivalent interpreted functions (e.g. .m files) for computationally intensive procedures. The C++ code generated by @strong{MTT} allows the same code to be generated as standalone code, Octave .oct files or Matlab .mexglx files. Although @strong{MTT} usually takes care of the compilation options, if it is necessary to compile the code on a machine on which @strong{MTT} is not installed, the appropriate flag should be passed to the compiler pre-processor: @itemize @bullet @item @code{-DCODEGENTARGET=STANDALONE} @item @code{-DCODEGENTARGET=OCTAVEDLD} @item @code{-DCODEGENTARGET=MATLABMEX} @end itemize @node Simulation output, , Simulation code, Simulation @comment node-name, next, previous, up @section Simulation output @cindex Simulation output The view (@pxref{Views}) representation provides a graphical representation of the results of a simulation; the postscript language provides the same thing in a form that can be included in a document. |
︙ | |||
2357 2358 2359 2360 2361 2362 2363 | 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 | - - + + + - - + - - - - + - + - - - - - - + - - - - - - + | @end menu @node Viewing results with gnuplot, Exporting results to SciGraphica, Simulation output, Simulation output @comment node-name, next, previous, up@subsection @subsection Viewing results with gnuplot @cindex gnuplot |
︙ | |||
3559 3560 3561 3562 3563 3564 3565 | 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 | - + | %% ss1 is both a source and sensor ss1 SS external,external %% ss1 acts as a flow sensor - it imposes zero effort. ss2 SS 0,external @end example |
︙ | |||
4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 | 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 | + + + + + + + + + | # Generated by MTT at Mon Jun 16 15:10:17 BST 1997 # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %% Revision 1.9 2002/07/05 13:29:34 geraint # %% Added notes about generating dynamically linked functions for Octave and Matlab. # %% # %% Revision 1.8 2002/07/04 21:34:12 geraint # %% Updated gnuplot view description to describe Tcl/Tk interface instead of obsolete txt method. # %% # %% Revision 1.7 2002/04/23 09:51:54 gawthrop # %% Changed incorrect statement about searching for components. # %% # %% Revision 1.6 2001/10/15 14:29:50 gawthrop # %% Added documentaton on [1:N] style port labels # %% # %% Revision 1.5 2001/07/23 03:35:29 geraint # %% Updated file structure (mtt/bin). # %% # %% Revision 1.4 2001/07/23 03:25:02 geraint |
︙ | |||
5812 5813 5814 5815 5816 5817 5818 5819 5820 | 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 | + + + - + | step(rc); bode(rc); @end example @menu * Octave control system toolbox (OCST):: * Creating GNU Octave .oct files:: * Creating Matlab .mex files:: * Embedding MTT models in Simulink:: @end menu |
︙ | |||
5852 5853 5854 5855 5856 5857 5858 | 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 | + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | The following octave commands then generate the step reponse and bode diagram respectively: @example step(rc); bode(rc); @end example @node Creating GNU Octave .oct files, Creating Matlab .mex files, Octave control system toolbox (OCST), Octave @comment node-name, next, previous, up @subsection Creating GNU Octave .oct files @cindex Creating GNU Octave .oct files |
︙ | |||
5982 5983 5984 5985 5986 5987 5988 | 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 | - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + | empty_list_elements_ok = 1; @end example @node .oct file dependencies, , .octaverc, Octave setup @comment node-name, next, previous, up Additionally, it is necessary to @subsection .oct file dependencies |
︙ |
Modified mttroot/mtt/lib/comp/compound/Sensitivity/sEMTF/sEMTF_lbl.txt from [c9d0e3e307] to [9abf0eb7d9].
1 2 | 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 | + + + + + + + - + + + + + + + + + + + | %% Label file for system sEMTF (sEMTF_lbl.txt) %SUMMARY sEMTF Effort modulated TF - sensitivity version %DESCRIPTION It is assumed that no sensitivity parameter is associated %DESCRIPTION with this component. %DESCRIPTION This is a built out of EMTFs and the 4 port AE3 component %DESCRIPTION There is one argument alias - the transformer (flow) gain %DESCRIPTION There are two CR aliases: one for the EMTF and one for %DESCRIPTION the AE3 %DESCRIPTION Examples: |
︙ |
Modified mttroot/mtt/lib/control/PPP/ppp_optimise.m from [d6b999b722] to [32d0c90e52].
︙ | |||
25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | + + + + + + | ###################################### ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.12 2002/06/11 11:25:25 gawthrop ## No longer delay the simulated data. ## ## Revision 1.11 2002/05/20 13:32:36 gawthrop ## Sanity check on y_0 ## ## Revision 1.10 2002/05/13 16:01:09 gawthrop ## Addes Q weighting matrix ## ## Revision 1.9 2002/05/08 10:14:21 gawthrop ## Idetification now OK (Moved data range in ppp_optimise by one sample interval) ## ## Revision 1.8 2002/04/23 17:50:39 gawthrop |
︙ | |||
116 117 118 119 120 121 122 | 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 | - + - + + + - - - + + + - - - - + + + + + + + + | printf("\n"); endif while (abs(reduction)>extras.criterion)&&\ (abs(err)>extras.criterion)&&\ (iterations<extras.max_iterations) |
︙ |
Modified mttroot/mtt/lib/cr/r/slin.cr from [5d71e66c46] to [ac0389ce2b].
︙ | |||
36 37 38 39 40 41 42 43 44 | 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 | + + + + + + + + + + + + + + + + + + + + + + + + + + + | SUCH THAT sgain EQ 0 LET slin(gain_causality, gain, sgain, other_causality, 2, input, causality, 1, sinput, causality, 2) = lin(gain_causality, gain, other_causality, 1, sinput, causality, 1); %% This is the version to go with sEMTF %% It is the CR passed to the AE3 components %DESCRIPTION four port component - effort i/o FOR ALL gain, input, junk, m_input, dm_input LET slin(gain, effort, 2, input, effort, 1, junk, flow, 2, m_input, effort, 3, dm_input,effort, 4) = gain*dm_input*input; %DESCRIPTION four port component - flow i/o FOR ALL gain, input, junk, m_input, dm_input LET slin(gain, flow, 2, input, flow, 1, junk, effort, 2, m_input, effort, 3, dm_input,effort, 4) = gain*dm_input*input; END;; |
Modified mttroot/mtt/lib/reduce/fix_c.r from [551406cfe8] to [d6d8abfc53].
1 2 3 4 5 6 7 8 9 10 11 | 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 | - + + + | %% Fixes for c-code generation %% Set PI explicitly here to avoid later conflict with cc headers %% if PI is not already a number (i.e. on rounded has not been set) IF NOT NUMBERP (pi) THEN LET PI = 3.14159$ ON ROUNDED$ % No integer output %% Changes x^y to pow(x,y) OPERATOR pow$ FOR ALL x,y LET x^y = pow(x,y)$ % Use the pow function |
Added mttroot/mtt/lib/rep/ident_rep.make version [042982e678].