MATLAB SIMEVENTS RELEASE NOTES Betriebsanweisung Seite 73

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 114
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 72
Specify Intergeneration Times for Entities
3-7
Role of initial seed for uniform and exponential distributions
If you set Distribution to Uniform or Exponential, the dialog box includes an Initial
seed parameter. This parameter specifies the seed on which the stream of random
numbers is based. For a fixed seed, the random behavior is repeatable the next time
you run the simulation. Changing the seed changes the stream of random numbers.
Typically, you would set the Initial seed parameter to a large (for example, five-digit)
odd number.
Specify Other Probability Distributions
Entity intergeneration times can follow any distribution that the Event-Based Random
Number block supports. To specify the distribution, set up your model as follows:
1
In the Time-Based Entity Generator block, set the Generate entities with
parameter to Intergeneration time from port t. A signal input port labeled t
appears on the block.
2
In your model, insert the Event-Based Random Number block. Connect it to the t
signal input port of the Time-Based Entity Generator block.
3
In the Event-Based Random Number block dialog box, set parameters to describe the
probability distribution that you want to use for entity intergeneration times. For an
example, see “Use an Arbitrary Discrete Distribution as Intergeneration Time” on
page 3-9.
During the simulation, each time that the Time-Based Entity Generator block generates
an entity, the Event-Based Random Number block generates a new random number
which becomes the duration until the next entity generation.
How to Specify Intergeneration Times from a Signal
If you want to provide intergeneration times explicitly as values of a signal, set up your
model as follows:
1
In the Time-Based Entity Generator block, set the Generate entities with
parameter to Intergeneration time from port t. A signal input port labeled t
appears on the block.
2
In your model, create an event-based signal whose value at each generation time is
the time until the next entity generation.
Seitenansicht 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 113 114

Kommentare zu diesen Handbüchern

Keine Kommentare