13
Modeling and Simulation Dr. X

Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Embed Size (px)

Citation preview

Page 1: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Modeling and Simulation

Dr. X

Page 2: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Simulation Design

• Event Advance• Unit Time Advance• Activity Based

Page 3: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Event advance design

• System changes when event occurs• Each event is associated with a clock• Master clock advances based on event time

Page 4: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Event advance

Page 5: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Future event list

• Contains events• Event has the following fields:– Type– Time– Other?

• Performance considerations:– Add event– Remove event– Find next event

Page 6: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Unit-time advance design

• Master clock is advanced in fixed increments of time

Page 7: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based
Page 8: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Selecting time unit

• Problems:– Inaccuracies– Speed

Page 9: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Implementation

• Compare master clock with future event list time

Page 10: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Activity based design

• Event driven: event changes system state• Activity driven: system model is a collection of

activities of services• Machine oriented models• SSQ:– Interarriving– Being served– Waiting for service

Page 11: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

SSQ Activity based

Page 12: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

What to do on Wednesday• Besides being sad that we are missing class…• Look for open source simulation software in the areas of your interest:

– Biology– Physics– Chemistry– Business– Engineering– Computer science– Games simulations– other?

• Download and run the software• Think about your project: can you design something similar? How?• Write a paragraph of ideas that you have for your project

Page 13: Modeling and Simulation Dr. X. Simulation Design Event Advance Unit Time Advance Activity Based

Suggestions of free Simulation Software

• Minskyhttp://sourceforge.net/projects/minsky/

• Open Source Physicshttp://www.compadre.org/osp/index.cfm

• PALhttp://www.adrianboeing.com/pal/engines.html

• OpenModelicahttps://www.openmodelica.org/

• SimPyhttp://simpy.readthedocs.org/en/latest/

• PHEThttp://phet.colorado.edu/en/simulations/category/new

• Roboworkshttp://www.newtonium.com/

• WeBotshttp://www.cyberbotics.com/