most-queue 1.29__tar.gz → 1.32__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of most-queue might be problematic. Click here for more details.
- {most_queue-1.29 → most_queue-1.32}/PKG-INFO +1 -15
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mgn_with_h2_delay_cold_warm.py +6 -3
- {most_queue-1.29 → most_queue-1.32}/most_queue/visualisation/smo_im_vis.py +21 -13
- {most_queue-1.29 → most_queue-1.32}/most_queue.egg-info/PKG-INFO +2 -16
- {most_queue-1.29 → most_queue-1.32}/most_queue.egg-info/SOURCES.txt +0 -1
- {most_queue-1.29 → most_queue-1.32}/pyproject.toml +1 -1
- {most_queue-1.29 → most_queue-1.32}/setup.py +1 -4
- most_queue-1.29/most_queue.egg-info/requires.txt +0 -14
- {most_queue-1.29 → most_queue-1.32}/LICENSE +0 -0
- {most_queue-1.29 → most_queue-1.32}/README.md +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/__init__.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/__init__.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/batch_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/fj_delta_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/fj_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/flow_sum_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/impatient_queue_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/priority_network.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/priority_queue_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/qs_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/queue_finite_source_sim.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/sim/rand_destribution.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/__init__.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/ek_d_n.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/fj_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/fj_im.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/flow_sum.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/gi_m_1_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/gi_m_n_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/m_d_n_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/m_h2_h2warm.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/m_ph_n_prty.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/mg1_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/mg1_warm_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/mgn_tt.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/mmn3_pnz_cox_approx.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/mmn_prty_pnz_approx.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/network_im_prty.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/smo_im.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/smo_im_prty.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/tests/weibull.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/__init__.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/batch_mm1.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/convolution_sum_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/diff5dots.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/ek_d_n_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/engset_model.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/fj_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/flow_sum.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/generate_pareto_noise.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/gi_m_1_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/gi_m_n_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/impatience_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/m_d_n_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/m_h2_h2warm.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/m_ph_n_prty.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mg1_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mg1_warm_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mgn_tt.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mmn3_pnz_cox_approx.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mmn_prty_pnz_approx.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mmn_with_h2_cold_and_h2_warmup.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/mmnr_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/network_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/network_viewer.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/passage_time.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/priority_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/q_poisson_arrival_calc.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/student_stat.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/theory/weibull.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/utils/__init__.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/utils/approx_cdf_make.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/utils/binom_probs.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/utils/tables.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/visualisation/__init__.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/visualisation/utils/__init__.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/visualisation/utils/result_table.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/visualisation/utils/settings_window.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue/visualisation/utils/splash_screen.py +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue.egg-info/dependency_links.txt +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue.egg-info/not-zip-safe +0 -0
- {most_queue-1.29 → most_queue-1.32}/most_queue.egg-info/top_level.txt +0 -0
- {most_queue-1.29 → most_queue-1.32}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: most_queue
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.32
|
|
4
4
|
Summary: Software package for calculation and simulation of queuing systems
|
|
5
5
|
Home-page: https://github.com/xabarov/mps
|
|
6
6
|
Author: Xabarov Roman
|
|
@@ -31,20 +31,6 @@ Classifier: Operating System :: OS Independent
|
|
|
31
31
|
Requires-Python: >=3.7
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
33
|
License-File: LICENSE
|
|
34
|
-
Requires-Dist: matplotlib
|
|
35
|
-
Requires-Dist: matplotlib-inline
|
|
36
|
-
Requires-Dist: numba
|
|
37
|
-
Requires-Dist: numpy
|
|
38
|
-
Requires-Dist: pandas
|
|
39
|
-
Requires-Dist: scipy
|
|
40
|
-
Requires-Dist: tqdm
|
|
41
|
-
Requires-Dist: tqdm-stubs
|
|
42
|
-
Requires-Dist: PyQt5
|
|
43
|
-
Requires-Dist: qt-material
|
|
44
|
-
Requires-Dist: PySide2
|
|
45
|
-
Requires-Dist: networkx
|
|
46
|
-
Requires-Dist: graphviz
|
|
47
|
-
Requires-Dist: colorama
|
|
48
34
|
|
|
49
35
|
# most_queue
|
|
50
36
|
Python package for calculation and simulation of queuing systems (QS) and networks
|
|
@@ -295,6 +295,9 @@ class MGnH2ServingColdWarmDelay:
|
|
|
295
295
|
|
|
296
296
|
return w
|
|
297
297
|
|
|
298
|
+
def get_idle_prob(self):
|
|
299
|
+
return self.Y[0][0, 0]
|
|
300
|
+
|
|
298
301
|
def get_w(self):
|
|
299
302
|
"""
|
|
300
303
|
Возвращает три первых начальных момента времени ожидания в СМО
|
|
@@ -303,10 +306,10 @@ class MGnH2ServingColdWarmDelay:
|
|
|
303
306
|
|
|
304
307
|
for i in range(3):
|
|
305
308
|
if self.stable_w_pls:
|
|
306
|
-
|
|
307
|
-
np.array(self.mu).astype('float')))
|
|
309
|
+
max_mu = np.max(list(chain(np.array(self.mu_w).astype('float'), np.array(self.mu_c).astype('float'),
|
|
310
|
+
np.array(self.mu).astype('float'))))
|
|
308
311
|
|
|
309
|
-
dx = self.w_pls_dt /
|
|
312
|
+
dx = self.w_pls_dt / max_mu
|
|
310
313
|
else:
|
|
311
314
|
dx = self.w_pls_dt
|
|
312
315
|
w[i] = derivative(self.calc_w_pls, 0, dx=dx, n=i + 1, order=9)
|
|
@@ -13,10 +13,11 @@ from PyQt5.QtWidgets import qApp
|
|
|
13
13
|
from splash_screen import MovieSplashScreen
|
|
14
14
|
|
|
15
15
|
qApp.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
|
16
|
-
from most_queue.sim.
|
|
17
|
-
from most_queue.sim.
|
|
16
|
+
from most_queue.sim.qs_sim import QueueingSystemSimulator
|
|
17
|
+
from most_queue.sim.priority_queue_sim import PriorityQueueSimulator
|
|
18
18
|
import time
|
|
19
19
|
import math
|
|
20
|
+
import numpy as np
|
|
20
21
|
|
|
21
22
|
COLORS = {"dark_amber.xml": (255, 215, 64, 255),
|
|
22
23
|
"dark_blue.xml": (68, 138, 255, 255),
|
|
@@ -82,12 +83,12 @@ class SmoThread(QtCore.QThread):
|
|
|
82
83
|
|
|
83
84
|
if not self.is_smo_created:
|
|
84
85
|
if self.model_type == "FCFS один класс":
|
|
85
|
-
self.smo =
|
|
86
|
+
self.smo = QueueingSystemSimulator(self.n, buffer=self.r, calc_next_event_time=True)
|
|
86
87
|
|
|
87
88
|
self.smo.set_sources(self.source_params["params"], self.source_params["type"])
|
|
88
89
|
self.smo.set_servers(self.server_params["params"], self.server_params["type"])
|
|
89
90
|
else:
|
|
90
|
-
self.smo =
|
|
91
|
+
self.smo = PriorityQueueSimulator(self.n, self.k, self.model_type, buffer=self.r, calc_next_event_time=True)
|
|
91
92
|
sources = []
|
|
92
93
|
servers_params = []
|
|
93
94
|
for j in range(self.k):
|
|
@@ -194,8 +195,12 @@ class QueueWidget(QWidget):
|
|
|
194
195
|
|
|
195
196
|
if i >= self.queue_count - self.number_of_jobs and i != self.queue_count:
|
|
196
197
|
qp.setRenderHint(QPainter.Antialiasing)
|
|
197
|
-
qp.setPen(QPen(QColor(*self.color), 1, Qt.SolidLine))
|
|
198
|
-
qp.setBrush(QBrush(QColor(*self.color), Qt.SolidPattern))
|
|
198
|
+
# qp.setPen(QPen(QColor(*self.color), 1, Qt.SolidLine))
|
|
199
|
+
# qp.setBrush(QBrush(QColor(*self.color), Qt.SolidPattern))
|
|
200
|
+
#
|
|
201
|
+
clr_num = np.random.randint(0, len(COLOR_LIST))
|
|
202
|
+
qp.setPen(QPen(QColor(*COLOR_LIST[clr_num]), 1, Qt.SolidLine))
|
|
203
|
+
qp.setBrush(QBrush(QColor(*COLOR_LIST[clr_num]), Qt.SolidPattern))
|
|
199
204
|
qp.drawEllipse(x, paddings, step,
|
|
200
205
|
step)
|
|
201
206
|
|
|
@@ -211,8 +216,9 @@ class QueueWidget(QWidget):
|
|
|
211
216
|
qp.drawLine(self.queue_count * step - x, bottom, (self.queue_count - 1) * step - x, bottom)
|
|
212
217
|
|
|
213
218
|
qp.setRenderHint(QPainter.Antialiasing)
|
|
214
|
-
|
|
215
|
-
qp.
|
|
219
|
+
|
|
220
|
+
qp.setPen(QPen(QColor(*COLOR_LIST[j + 1]), 1, Qt.SolidLine))
|
|
221
|
+
qp.setBrush(QBrush(QColor(*COLOR_LIST[j + 1]), Qt.SolidPattern))
|
|
216
222
|
qp.drawEllipse(self.queue_count * step - x, paddings, step,
|
|
217
223
|
step)
|
|
218
224
|
jobs_paint += 1
|
|
@@ -286,15 +292,17 @@ class ChannelsWidget(QWidget):
|
|
|
286
292
|
|
|
287
293
|
if self.channels_in_service:
|
|
288
294
|
if self.channels_in_service[i] != 0:
|
|
289
|
-
|
|
295
|
+
qp.setRenderHint(QPainter.Antialiasing)
|
|
290
296
|
if self.k == 1:
|
|
291
|
-
color_set = QColor(*self.color)
|
|
297
|
+
# color_set = QColor(*self.color)
|
|
298
|
+
clr_num = np.random.randint(0, len(COLOR_LIST))
|
|
299
|
+
qp.setPen(QPen(QColor(*COLOR_LIST[clr_num]), 1, Qt.SolidLine))
|
|
300
|
+
qp.setBrush(QBrush(QColor(*COLOR_LIST[clr_num]), Qt.SolidPattern))
|
|
292
301
|
else:
|
|
293
302
|
color_set = QColor(*COLOR_LIST[self.channels_in_service[i]])
|
|
303
|
+
qp.setPen(QPen(color_set, 1, Qt.SolidLine))
|
|
304
|
+
qp.setBrush(QBrush(color_set, Qt.SolidPattern))
|
|
294
305
|
|
|
295
|
-
qp.setRenderHint(QPainter.Antialiasing)
|
|
296
|
-
qp.setPen(QPen(color_set, 1, Qt.SolidLine))
|
|
297
|
-
qp.setBrush(QBrush(color_set, Qt.SolidPattern))
|
|
298
306
|
if channel_width > channel_height:
|
|
299
307
|
delta = int((channel_width - channel_height) / 2)
|
|
300
308
|
qp.drawEllipse(paddings_left + delta, x, min(channel_width, channel_height),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 1.
|
|
2
|
+
Name: most_queue
|
|
3
|
+
Version: 1.32
|
|
4
4
|
Summary: Software package for calculation and simulation of queuing systems
|
|
5
5
|
Home-page: https://github.com/xabarov/mps
|
|
6
6
|
Author: Xabarov Roman
|
|
@@ -31,20 +31,6 @@ Classifier: Operating System :: OS Independent
|
|
|
31
31
|
Requires-Python: >=3.7
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
33
|
License-File: LICENSE
|
|
34
|
-
Requires-Dist: matplotlib
|
|
35
|
-
Requires-Dist: matplotlib-inline
|
|
36
|
-
Requires-Dist: numba
|
|
37
|
-
Requires-Dist: numpy
|
|
38
|
-
Requires-Dist: pandas
|
|
39
|
-
Requires-Dist: scipy
|
|
40
|
-
Requires-Dist: tqdm
|
|
41
|
-
Requires-Dist: tqdm-stubs
|
|
42
|
-
Requires-Dist: PyQt5
|
|
43
|
-
Requires-Dist: qt-material
|
|
44
|
-
Requires-Dist: PySide2
|
|
45
|
-
Requires-Dist: networkx
|
|
46
|
-
Requires-Dist: graphviz
|
|
47
|
-
Requires-Dist: colorama
|
|
48
34
|
|
|
49
35
|
# most_queue
|
|
50
36
|
Python package for calculation and simulation of queuing systems (QS) and networks
|
|
@@ -7,7 +7,6 @@ most_queue.egg-info/PKG-INFO
|
|
|
7
7
|
most_queue.egg-info/SOURCES.txt
|
|
8
8
|
most_queue.egg-info/dependency_links.txt
|
|
9
9
|
most_queue.egg-info/not-zip-safe
|
|
10
|
-
most_queue.egg-info/requires.txt
|
|
11
10
|
most_queue.egg-info/top_level.txt
|
|
12
11
|
most_queue/sim/__init__.py
|
|
13
12
|
most_queue/sim/batch_sim.py
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
2
|
|
|
3
3
|
setup(name='most-queue',
|
|
4
|
-
version='1.
|
|
4
|
+
version='1.32',
|
|
5
5
|
description="Software package for calculation and simulation of queuing systems",
|
|
6
6
|
author='Xabarov Roman',
|
|
7
7
|
author_email='xabarov1985@gmail.com',
|
|
@@ -23,9 +23,6 @@ setup(name='most-queue',
|
|
|
23
23
|
"scipy",
|
|
24
24
|
"tqdm",
|
|
25
25
|
"tqdm-stubs",
|
|
26
|
-
'PyQt5',
|
|
27
|
-
'qt-material',
|
|
28
|
-
'PySide2',
|
|
29
26
|
'networkx',
|
|
30
27
|
'graphviz',
|
|
31
28
|
'colorama'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|