home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / engr / control / 290 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.2 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!usc!not-for-mail
  2. From: wang@nyquist.usc.edu (Weizheng Wang)
  3. Newsgroups: sci.engr.control
  4. Subject: Re: Simulink problem!
  5. Date: 18 Nov 1992 06:20:28 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Lines: 38
  8. Message-ID: <1edjfcINNia1@nyquist.usc.edu>
  9. NNTP-Posting-Host: nyquist.usc.edu
  10.  
  11. In article 289, Guoqiano Lu asked some questions about simulink.
  12. From the description of the problem, I guess that the problem system belong to
  13. one of two cases:
  14.  
  15. (1) The system has fast transient feature, or the system is a bang-bang
  16. control style caused by reseting parameters in self-tuning control.
  17. If the problem is bang-bang control system, the peaks may be the feature
  18. of the system.
  19. (2) The system contains both continuous time and discrete time models.
  20.  
  21. One should not be surprised if some crazy peaks appeared if the "max
  22. step size" in the integration is as large as 10 as default value in simulink
  23. parameters.
  24.  
  25. As pointed out by Mike Stoughton in article 291, some integration
  26. parameters need to be set up before the simulation.
  27.  
  28. As a rule of thumb, one shoul set the "max step size" to be less or equal to
  29. half of minimum sample time among all of discrete time models in the system.
  30. "min step size" should be less or equal to "max step size"/1000.
  31. Generally, a simulation integration algorithm starts the step size from "max
  32. step size", comparing the integration result with a smaller step size. If the
  33. error between these two are smaller than the tolerance value (which is 
  34. resetable by the user in simulink), then the result is accepted. Otherwise, 
  35. take a step size samller than the "smaller step size" in the previous 
  36. computation and compare the result again. The procedure goes on and on until
  37. the minimum step size is reached. Considering the computation procedure, 
  38. setup the parameters before simulation is very important.
  39.  
  40. For a stiff system, gear method or linsim method will be better. However,
  41. the computation is more complex than Euler or Runge-Kutta method. It is a good
  42. idea to switch between different algorithms and compare the results. One can
  43. choose the computation algorithms in the parameter window in simulink.
  44.  
  45. Weizheng Wang
  46. wang@bode.usc.edu
  47. wang@hot.caltech.edu
  48.  
  49.