330 likes | 343 Views
This chapter provides an introduction to modeling complex systems using simlib, a simple simulation language. Topics include list processing in simulation, single-server queueing system, time-shared computer model, multi-teller bank with jockeying, job-shop model, and efficient event-list manipulation.
E N D
Chapter 2 Modeling Complex Systems
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
Introduction • Most real-world systems • Quite complex • A difficult and time-consuming task Prof. Huei-Wen Ferng
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
List Processing in Simulation • Complex simulations require many lists • Use FIFO manner to process the list • Two approaches to storing lists • Sequential allocation • Linked allocation Prof. Huei-Wen Ferng
Advantages of Linked Allocation • Time can be significantly reduced • We can speed up event-list processing considerably • Memory can be reduced • It is a general framework Prof. Huei-Wen Ferng
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
A Simple Simulation Language: simlib • An easy-to-understand C-based simulation “language” • Symbols, declarations, and definitions see pp 114-122 • Source codes Prof. Huei-Wen Ferng
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
Single-Server Queueing System with simlib • Source codes for the M/M/1 queueing system Prof. Huei-Wen Ferng
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
Problem Statement Prof. Huei-Wen Ferng
Time-Shared Computer Model • Source code Prof. Huei-Wen Ferng
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
Problem Statement Prof. Huei-Wen Ferng
Multi-teller Bank with Jockeying • Source code Prof. Huei-Wen Ferng
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
Problem Statement Prof. Huei-Wen Ferng
Job-Shop Model • Source code Prof. Huei-Wen Ferng
Outline • Introduction • List Processing in Simulation • A Simple Simulation Language: simlib • Single-Server Queueing System with simlib • Time-Shared Computer Model • Multi-teller Bank with Jockeying • Job-Shop Model • Efficient Event-List Manipulation Prof. Huei-Wen Ferng
Efficient Event-List Manipulation • Efficient searching method • Data structures etc. Prof. Huei-Wen Ferng