MATLAB SIMEVENTS RELEASE NOTES Podręcznik Użytkownika

Przeglądaj online lub pobierz Podręcznik Użytkownika dla Oprogramowanie MATLAB SIMEVENTS RELEASE NOTES. MATLAB SIMEVENTS RELEASE NOTES User guide Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 114
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - Getting Started Guide

SimEvents®Getting Started GuideR2015a

Strona 2 - How to Contact MathWorks

1 Introduction1-2SimEvents Product DescriptionModel and simulate discrete-event systemsSimEvents provides a discrete-event simulation engine and compo

Strona 3 - Revision History

5 Designing Paths for Entities5-10The three Set Attribute blocks assign a Type attribute to each entity, where the attributevalue depends on which ent

Strona 4

Select Arrival Path Using Input Switch5-11

Strona 5 - Contents

5 Designing Paths for Entities5-12Combine Entity PathsIn this section...“Role of the Path Combiner” on page 5-12“Sequence Simultaneous Pending Arrival

Strona 6

Combine Entity Paths5-13• Connecting a feedback path: A feedback path enters the same queue as anordinary path.Sequence Simultaneous Pending Arrivals

Strona 7 - Basic Queues and Servers

5 Designing Paths for Entities5-14to be notified of the change is the first to advance an entity to the Path Combinerblock. The Input port precedence

Strona 8

Combine Entity Paths5-15Path Combiner Versus Input SwitchThe Input Switch block, described in “Select Arrival Path Using Input Switch” on page5-9, ha

Strona 9 - Introduction

5 Designing Paths for Entities5-16Model a Packet SwitchIn this section...“Overview” on page 5-16“Generate Packets” on page 5-17“Store Packets in Input

Strona 10 - SimEvents Product Description

Model a Packet Switch5-17Generate PacketsThe packet switch example models each packet as an entity. The Time-Based EntityGenerator block creates enti

Strona 11

5 Designing Paths for Entities5-18Note: The entity does not actually carry a payload. This example models thetransmission of data at a level of abstra

Strona 12 - 1 Introduction

Model a Packet Switch5-19The queue uses a FIFO queuing discipline, which does not take into account thedestination of each packet. Note that such a m

Strona 13 - Related Products

Discrete-Event Simulation in Simulink Models1-3Discrete-Event Simulation in Simulink ModelsSimEvents software incorporates discrete-event system mode

Strona 14 - What Is an Entity?

5 Designing Paths for Entities5-20This part of the example is similar to the model shown in “Use an Attribute to Select anOutput Port” on page 5-8.Con

Strona 15 - What Is an Event?

Model a Packet Switch5-21• The priorities of the entity generation events. In this example, all Time-BasedEntity Generator blocks share the same Gene

Strona 16

5 Designing Paths for Entities5-22

Strona 17 - Run a Sample Model

6Selected Bibliography[1] Banks, Jerry, John Carlson, and Barry Nelson. Discrete-Event System Simulation,Second Ed. Upper Saddle River, N.J.: Prentice

Strona 19 - Run a Sample Model

1 Introduction1-4of time- and event-based modeling facilitates the simulation of large-scale systemsthat incorporate smaller subsystems from multiple

Strona 20

Related Products1-5Related ProductsIn this section...“Information About Related Products” on page 1-5“Limitations on Usage with Related Products” on

Strona 21 - Running the Simulation

1 Introduction1-6What Is an Entity?Discrete-event simulations typically involve discrete items of interest. By definition,these items are called entit

Strona 22

What Is an Event?1-7What Is an Event?In this section...“Overview of Events” on page 1-7“Relationships Among Events” on page 1-7“Viewing Events” on pa

Strona 23 - SimEvents Software

1 Introduction1-8not causally related to each other, the processing sequence can significantly affect thesimulation behavior. For an example, see “Cho

Strona 24 - Build a Discrete-Event Model

Run a Sample Model1-9Run a Sample ModelIn this section...“Overview of the Model” on page 1-9“Accessing the Model” on page 1-9“Examining Entities and

Strona 25 - Open a Model and Libraries

1 Introduction1-10Click Open This Example to open the model.Examining Entities and Signals in the ModelThis section describes the different kinds of p

Strona 26

Run a Sample Model1-11Entity connection lineEntityoutputportEntityinputportEntity connection lines represent relationships among two blocks (or among

Strona 27 - Build a Discrete-Event Model

How to Contact MathWorksLatest news:www.mathworks.comSales and services:www.mathworks.com/sales_and_servicesUser community:www.mathworks.com/matlabcen

Strona 28 - Queues library

1 Introduction1-12SignalconnectionlineSignaloutputportSignal input portIn a discrete-event system, the signal input port coming into a block changes t

Strona 29

Run a Sample Model1-13This block can process at most one job at a time and thus limits the availability of themicrocontroller to process new jobs. Wh

Strona 30

1 Introduction1-14

Strona 31

2Building Simple Models withSimEvents Software• “Build a Discrete-Event Model” on page 2-2• “Explore Simulations Using the Debugger and Plots” on page

Strona 32 - Configure Blocks

2 Building Simple Models with SimEvents Software2-2Build a Discrete-Event ModelIn this section...“Overview” on page 2-2“Open a Model and Libraries” on

Strona 33

Build a Discrete-Event Model2-3Note: When you later create your own models, use the conversion blocks from theGateways library (gateway blocks) to co

Strona 34

2 Building Simple Models with SimEvents Software2-4Open Simulink LibrariesIn the MATLAB Command Window, entersimulinkThe Simulink Library Browser open

Strona 35 - Run the Simulation

Build a Discrete-Event Model2-5Move Blocks into the Model WindowTo move blocks from libraries into the model window, follow these steps:1In the main

Strona 36

2 Building Simple Models with SimEvents Software2-63In the main SimEvents library window, double-click the Queues icon to open theQueues library.

Strona 37 - Insert Blocks

Build a Discrete-Event Model2-74Drag the FIFO Queue block from the library into the model window.5In the main SimEvents library window, double-click

Strona 38

Revision HistoryNovember 2005 Online only New for Version 1.0 (Release 14SP3+)March 2006 First printing Revised for Version 1.1 (Release 2006a)Septemb

Strona 39 - *** SimEvents Debugger ***

2 Building Simple Models with SimEvents Software2-86Drag the Single Server block from the library into the model window.7In the main SimEvents library

Strona 40 - Initializing Model dd1

Build a Discrete-Event Model2-98Drag the Signal Scope block and the Entity Sink block from the library into themodel window.As a result, the model wi

Strona 41 - One entity

2 Building Simple Models with SimEvents Software2-10Configure BlocksConfiguring the blocks in dd1 means setting their parameters appropriately to repr

Strona 42

Build a Discrete-Event Model2-113Click Cancel in both dialog boxes to dismiss them without changing anyparameters.The Period and Service time paramet

Strona 43

2 Building Simple Models with SimEvents Software2-12Then click OK. The Single Server block acquires a signal output port labeled #d.During the simulat

Strona 44

Build a Discrete-Event Model2-13Connect BlocksNow that the model window for dd1 contains blocks that represent the key processes,connect the blocks a

Strona 45

2 Building Simple Models with SimEvents Software2-14inappropriate for this particular example model, which is completely event-based andcontains no bl

Strona 46

Build a Discrete-Event Model2-15• Starting at T=1, the plot is a stairstep plot. The stairs have height 1 because theserver processes one entity at a

Strona 47

2 Building Simple Models with SimEvents Software2-16set_param('MyModel/Time-Based Entity Generator','position',[65 63 150 117]);Th

Strona 48

Explore Simulations Using the Debugger and Plots2-17Explore Simulations Using the Debugger and PlotsIn this section...“Explore the D/D/1 System Using

Strona 50

2 Building Simple Models with SimEvents Software2-18Functions | Help | Watch Video Tutorial%==========================================================

Strona 51 - Build a Hybrid Model

Explore Simulations Using the Debugger and Plots2-19Table of entities in the blockOne entityis in serviceEnd the SimulationThe simulation is still su

Strona 52

2 Building Simple Models with SimEvents Software2-20Enable the Queue-Length SignalThe FIFO Queue block can report the queue length, that is, the numbe

Strona 53 - Build a Hybrid Model

Explore Simulations Using the Debugger and Plots2-21Simulate with Different Intergeneration TimesBy changing the intergeneration time (that is, the r

Strona 54

2 Building Simple Models with SimEvents Software2-22First entitydeparts fromqueueEntity departsfrom queue, whichbecomes emptyOne entitydeparts fromque

Strona 55

Explore Simulations Using the Debugger and Plots2-235Reopen the Time-Based Entity Generator block's dialog box and set Period to 1.1.6Run the si

Strona 56

2 Building Simple Models with SimEvents Software2-241Double-click the FIFO Queue block to open its dialog box. Click the Statistics tab,set the Averag

Strona 57

Explore Simulations Using the Debugger and Plots2-258Run the simulation with different values of the Period parameter in theTime-Based Entity Generat

Strona 58

2 Building Simple Models with SimEvents Software2-26• The utilization of the server is nondecreasing if the intergeneration time is small(such as 0.3)

Strona 59

Explore Simulations Using the Debugger and Plots2-27• The average waiting time in the queue increases throughout the simulation if theintergeneration

Strona 60

vContentsIntroduction1SimEvents Product Description . . . . . . . . . . . . . . . . . . . . . . . 1-2Key Features . . . . . . . . . . . . . . . . . .

Strona 61

2 Building Simple Models with SimEvents Software2-28Information About Race Conditions and Random TimesOther examples modify this one by varying the pr

Strona 62

Build a Hybrid Model2-29Build a Hybrid ModelIn this section...“Overview” on page 2-29“Lesson 1: Run the Time-Based Model” on page 2-30“Lesson 2: Expl

Strona 63

2 Building Simple Models with SimEvents Software2-30• Use discrete events to update signals that influence time-based dynamics.• Adjust parameters in

Strona 64

Build a Hybrid Model2-31• ABS Controller subsystem that accepts a setpoint from the Desired Relative Slipblock and provides a control signal to the b

Strona 65 - Entity Ports and Paths

2 Building Simple Models with SimEvents Software2-32Lesson 2: Explore the Time-Based ModelBefore you modify the model to add discrete-event behavior,

Strona 66 - Data and Signals

Build a Hybrid Model2-33Desired Relative Slip BlockThe desired slip value is based on some physical modeling known as the mu-slip curve.The mu-slip c

Strona 67

2 Building Simple Models with SimEvents Software2-34Brake System Dynamics SubsystemThe Brake System Dynamics subsystem is complex. What follows is a h

Strona 68 - Data and Entities

Build a Hybrid Model2-35Sensor Relative Slip SubsystemThe Sensor Relative Slip subsystem contains a Gain block where you can specify theaccuracy of t

Strona 69

2 Building Simple Models with SimEvents Software2-36To learn about the Network Delay subsystem behavior and for instructions on buildingand integratin

Strona 70

Build a Hybrid Model2-37• Periodically, the Time-Based Entity Generator block creates an entity that conveysthe control signal value from the ABS con

Strona 71 - How to Specify a Distribution

vi ContentsMove Blocks into the Model Window . . . . . . . . . . . . . . . . . . . 2-5Configure Blocks . . . . . . . . . . . . . . . . . . . . . . . .

Strona 72 - Minimum Maximum

2 Building Simple Models with SimEvents Software2-38Add the Network Delay Subsystem ContentsIn this procedure, you add event-based blocks that model a

Strona 73

Build a Hybrid Model2-397Double-click the Get Attribute block. The Get Attribute tab of the dialog boxcontains a table. On the first row of the table

Strona 74

2 Building Simple Models with SimEvents Software2-407Connect the previously created Network Delay block between the ABS Controllerand Brake System Dyn

Strona 75

Build a Hybrid Model2-41• Between 6s and 8s, the measured slip increases and the wheel speed begins to lock up(decrease rapidly towards zero).• At ab

Strona 76

2 Building Simple Models with SimEvents Software2-42Event-Based and Time-Based Dynamics in the SimulationIn the abs_hybrid model, the time-based dynam

Strona 77

Key Concepts in SimEvents Software2-43Key Concepts in SimEvents SoftwareIn this section...“Meaning of Entities in Different Applications” on page 2-4

Strona 78

2 Building Simple Models with SimEvents Software2-44entities try and fail to advance along that same entity path. For example, an entitydeparts from a

Strona 79

3Create Entities Using IntergenerationTimes• “Role of Entities in SimEvents Models” on page 3-2• “Specify Intergeneration Times for Entities” on page

Strona 80 - Queues in SimEvents Models

3 Create Entities Using Intergeneration Times3-2Role of Entities in SimEvents ModelsIn this section...“Create Entities in a Model” on page 3-2“Vary th

Strona 81 - Access Queue Blocks

Role of Entities in SimEvents Models3-3• How the block determines the time intervals between successive entities. To learnmore, see “Specify Intergen

Strona 82 - Servers in SimEvents Models

viiUse an Arbitrary Discrete Distribution as IntergenerationTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9

Strona 83 - Access Server Blocks

3 Create Entities Using Intergeneration Times3-4Specify Intergeneration Times for EntitiesIn this section...“Definition of Intergeneration Time” on pa

Strona 84 - Model Basic Queueing Systems

Specify Intergeneration Times for Entities3-5Comparison of ApproachesUsing intergeneration times from a distribution might be appropriate if you have

Strona 85 - Model Basic Queueing Systems

3 Create Entities Using Intergeneration Times3-6f xx( ) =-< <ÏÌÔÓÔ1Maximum MinimumMinimum Maximum0 OtherwiseThe exponential distribution with me

Strona 86 - 4 Basic Queues and Servers

Specify Intergeneration Times for Entities3-7Role of initial seed for uniform and exponential distributionsIf you set Distribution to Uniform or Expo

Strona 87 - Example of a Logical Queue

3 Create Entities Using Intergeneration Times3-8For more informationFor examples of how to create such signals, see:• “Use a Step Function as Intergen

Strona 88

Specify Intergeneration Times for Entities3-9Parameter Values Simulation Results• Distribution = Uniform• Minimum = 1• Maximum = 3The first entity, g

Strona 89

3 Create Entities Using Intergeneration Times3-10P tP tP t( ) .( . ) .( ) .DDD= == == =1 0 251 5 0 52 0 25When you run the simulation, the plot shows

Strona 90

Specify Intergeneration Times for Entities3-11• Step time = 2.8• Initial value = 1• Final value = 2As a result, the block generates a signal whose va

Strona 91

3 Create Entities Using Intergeneration Times3-12Entity Generation Time Intergeneration Time UntilNext Entity GenerationDeparture Time of Entity fromS

Strona 92 - Implications of Entity Paths

4Basic Queues and Servers• “Queues in SimEvents Models” on page 4-2• “Servers in SimEvents Models” on page 4-4• “Model Basic Queueing Systems” on page

Strona 93

viii ContentsSelect Arrival Path Using Input Switch . . . . . . . . . . . . . . . . . 5-9Role of the Input Switch . . . . . . . . . . . . . . . . . .

Strona 94

4 Basic Queues and Servers4-2Queues in SimEvents ModelsIn this section...“Behavior and Features of Queues” on page 4-2“Physical Queues and Logical Que

Strona 95 - Sample Use Cases

Queues in SimEvents Models4-3called a logical queue. For example, you might use a queue to provide a temporarystorage area for entities that might ot

Strona 96

4 Basic Queues and Servers4-4Servers in SimEvents ModelsIn this section...“Behavior and Features of Servers” on page 4-4“What Servers Represent” on pa

Strona 97

Servers in SimEvents Models4-5• A person (such as a bank teller) who performs a transaction with each arrivingcustomer• A transmitter that processes

Strona 98

4 Basic Queues and Servers4-6Model Basic Queueing SystemsIn this section...“Constructs Involving Queues and Servers” on page 4-6“Example of a Logical

Strona 99 - Role of the Input Switch

Model Basic Queueing Systems4-7on an entity before the second server is available, the entity must stay in the first serverpast the end of service an

Strona 100 - Designing Paths for Entities

4 Basic Queues and Servers4-8Serial Connection of QueuesTwo queues connected in series might be useful if you are using entities to model itemsthat ph

Strona 101

Model Basic Queueing Systems4-9a jammed exit ramp of the freeway. You might model the tollbooth as a server and thetraffic jam as a gate.Example of a

Strona 102 - Combine Entity Paths

4 Basic Queues and Servers4-10Determining the proportion of time the physical queue length exceeds 10 is equivalent todetermining the proportion of ti

Strona 103 - Combine Entity Paths

Model Basic Queueing Systems4-11• You want the service time to arise from dynamics of the simulation. In this case, setthe Single Server block's

Strona 104

1Introduction• “SimEvents Product Description” on page 1-2• “Discrete-Event Simulation in Simulink Models” on page 1-3• “Related Products” on page 1-5

Strona 106 - Model a Packet Switch

5Designing Paths for Entities• “Role of Paths in SimEvents Models” on page 5-2• “Select Departure Path Using Output Switch” on page 5-5• “Select Arriv

Strona 107 - Generate Packets

5 Designing Paths for Entities5-2Role of Paths in SimEvents ModelsIn this section...“Definition of Entity Paths” on page 5-2“Implications of Entity Pa

Strona 108

Role of Paths in SimEvents Models5-3model below shows two queues in a parallel arrangement, preceded by a block that hasone entity input port and two

Strona 109 - Model a Packet Switch

5 Designing Paths for Entities5-4Other libraries in the SimEvents library set contain some blocks whose secondaryfeatures, such as preemption from a s

Strona 110

Select Departure Path Using Output Switch5-5Select Departure Path Using Output SwitchIn this section...“Role of the Output Switch” on page 5-5“Sample

Strona 111 - Model the Channels

5 Designing Paths for Entities5-6The topics listed below illustrate the use of the Output Switch block.Topic Features of Example“Select the First Avai

Strona 112

Select Departure Path Using Output Switch5-7This deterministic model creates one entity every second and attempts to advance theentity to one of two

Strona 113 - Selected Bibliography

5 Designing Paths for Entities5-8Use an Attribute to Select an Output PortConsider the situation in which parcels are sorted among several delivery ve

Strona 114

Select Arrival Path Using Input Switch5-9Select Arrival Path Using Input SwitchIn this section...“Role of the Input Switch” on page 5-9“Round-Robin A

Komentarze do niniejszej Instrukcji

Brak uwag