GithubHelp home page GithubHelp logo

zdsjjttlg / mmn-queue-gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mondaycha/mmn-queue-gui

0.0 0.0 0.0 11.36 MB

Python + DearPyGui 实现的M-M-N队列模型仿真可视化界面

License: BSD 2-Clause "Simplified" License

Python 100.00%

mmn-queue-gui's Introduction

Python + DearPyGui 实现的M-M-N队列模型仿真,初始化时建立事件对象类Event,存储事件序号、对应窗口、事件类型、事件开始时间、事件结束时间,并为事件配置比较和输出方法。

当从GUI的仿真按钮确认开始仿真后,按照事件处理流程,所用到的主要函数如下:

a) 初始化,根据平均到达时间生成随机的用户到达间隔时间,将这些未来事件放入事件序列。

b) 对运行过程进行仿真,这里直接模拟了M/M/n模型,具体实现如下:

c) 仿真结束后将结果输出到日志和GUI上。图像绘制按照固定时间步长推进方法,以每分钟为间隔刷新图像。绘制了当前排队人数的折线图,同时刷新当前时间、平均等待时间、平均等待客户数、平均服务器利用率等值。

对应GUI效果图: image

视频演示地址:

mmn-queue-gui's People

Contributors

mondaycha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.