SimEvents® Pane

SimEvents® Pane Overview

Configure modelwide parameters related to discrete-event simulation and the logging of events and entities.

Configuration

This pane appears only if your model contains a SimEvents® block.

Execution order

Select an algorithm for determining the sequence for processing simultaneous events having equal priorities.

Settings

Default: Arbitrary

Arbitrary

Causes the simulation to use an internal algorithm to determine the sequence for processing simultaneous events having equal priorities.

Randomized

Causes the simulation to assign equal probability to all possible execution sequences of simultaneous events having equal numerical priorities.

Tip

The processing sequence might be different from the sequence in which the events were scheduled on the event calendar.

Dependency

Selecting Randomized enables Seed for event randomization.

Command-Line Information

Parameter: propIdentEvents
Type: double
Value: 0 | 1
Default: 0

See Also

Seed for event randomization

Initialize the random number generator for event processing.

Settings

Default: 123456789

Minimum: 0

Maximum: any value less than Inf

This is a number that initializes the random number generator used to determine the sequence for processing simultaneous events having equal priorities.

Tips

Dependency

This parameter is enabled by Execution order.

Command-Line Information

Parameter: propIdentEventSeed
Type: string
Value: any valid string
Default: '123456789'

See Also

Unexpected Correlation of Random Processes

Maximum events per block

Limit the number of entity generation, service completion, subsystem execution, and function-call events that each SimEvents block performs at each fixed time instant.

Settings

Default: 1000

Minimum: 2

Maximum: any value less than Inf

Command-Line Information

Parameter: propMaxDesBlkSimulEvents
Type: string
Value:
Default: '1000'

See Also

Livelock Prevention

Maximum events per model

Limit the total number of events scheduled via the event calendar at each fixed time instant.

Settings

Default: 100000

Minimum: 2

Maximum: any value less than Inf

Command-Line Information

Parameter: propMaxDesMdlSimulEvents
Type: string
Value:
Default: '100000'

See Also

Livelock Prevention

Display events in event calendar

Display a message and the list of events that are in the event calendar.

Settings

Default: false

True

Displays the list of events in the event calendar each time it schedules, executes, or deletes an event during the simulation. The list, as well as a message indicating the specific change in the event calendar, appears in the MATLAB® Command Window.

False

Does not display a list of events.

Dependencies

This parameter disables Log events when executed and Log events when scheduled.

Command-Line Information

Parameter: propDisplayEventCalendar
Type: logical
Value: true | false
Default: false

Recommended Settings

ApplicationSetting
DebuggingTrue
EfficiencyFalse

See Also

Logging the List of Events

Log events when executed

Display a message to indicate processing of an event in the event calendar.

Settings

Default: false

True

Displays a message each time the application processes an event in the event calendar during the simulation. The information appears in the MATLAB Command Window.

False

Does not display execution information.

Dependency

This parameter is disabled by Display events in event calendar.

Command-Line Information

Parameter: propLogEventsExecuted
Type: logical
Value: true | false
Default: false

Recommended Settings

ApplicationSetting
DebuggingTrue
EfficiencyFalse

See Also

Logging the Processing of Events

Log events when scheduled

Display a message to indicate scheduling of an event in the event calendar.

Settings

Default: false

True

Displays a message each time the application schedules an event in the event calendar during the simulation. The information appears in the MATLAB Command Window.

False

Does not display scheduling information.

Dependency

This parameter is disabled by Display events in event calendar.

Command-Line Information

Parameter: propLogEventsScheduled
Type: logical
Value: true | false
Default: false

Recommended Settings

ApplicationSetting
DebuggingTrue
EfficiencyFalse

See Also

Logging the Scheduling of Events

Log entities advancing from block to block

Display messages to indicate when entities advance from block to block during the simulation.

Settings

Default: false

True

Displays a message in the MATLAB Command Window each time an entity advances from block to block during the simulation.

False

Does not display information about entities advancing.

Command-Line Information

Parameter: propLogDepartureEvents
Type: logical
Value: true | false
Default: false

Recommended Settings

ApplicationSetting
DebuggingTrue
EfficiencyFalse

See Also

Viewing Entity Locations

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS