readme

来自「简单的 Discrete Event Simulator M/M/K/K q」· 代码 · 共 36 行

TXT
36
字号
Simulation of M/M/m/K queueing system-----------------------------------Description:  This program simulates an M/M/m/K queueing system.  The simulation outputs the number of customers in the queue after 500000 departures from the system, and perfomance measures includingaverage number of customers in the system over the entire simulation,average time in sysmtem and average blocking rate.  Theoretical values of these measures were also given as a comparison.Platform/compiler: UNIX, g++Files:event.cpp - Functions for inserting and removing Events from EventLists event.h - Data structures for Events and EventListsmain.cpp - Main program for simulationMakefile - Makefile for simulationout.txt - output of the simulationqueuemmmk.cpp -- Class for an M/M/m/K queueing system, including methods		of simulation and outputing measures as well as theoretical		valuesqueuemmmk.h -- Header file for queuemmmk.cpprv.cpp - Functions which return uniform and exponential random variablesrv.h - Header file for rv.cppsize.pdf -- Plot for system sizetime.pdf -- Plot for system timeblocking.pdf -- Plot for blocking probabilityCompiling instructions:Edit Makefile to point to the c++ compiler on the local machine.To compile, place all files within a single directory and type "make".To run, type "sim" or "./sim"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?