most-queue 2.5__tar.gz → 2.7__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.
Files changed (223) hide show
  1. most_queue-2.7/.cursorrules +3 -0
  2. {most_queue-2.5 → most_queue-2.7}/.gitignore +4 -0
  3. most_queue-2.7/PKG-INFO +274 -0
  4. most_queue-2.7/README.md +233 -0
  5. most_queue-2.7/docs/README.md +108 -0
  6. most_queue-2.7/docs/calculation.md +472 -0
  7. most_queue-2.7/docs/concepts.md +317 -0
  8. most_queue-2.7/docs/custom_simulators.md +430 -0
  9. most_queue-2.7/docs/distributions.md +429 -0
  10. most_queue-2.7/docs/examples.md +405 -0
  11. most_queue-2.7/docs/getting_started.md +182 -0
  12. most_queue-2.7/docs/models.md +459 -0
  13. most_queue-2.7/docs/negative_networks_calculation.md +300 -0
  14. most_queue-2.7/docs/networks.md +647 -0
  15. most_queue-2.7/docs/priorities.md +330 -0
  16. most_queue-2.7/docs/simulation.md +380 -0
  17. most_queue-2.7/docs/tesaurus.md +283 -0
  18. most_queue-2.7/examples/custom_network_example.py +161 -0
  19. most_queue-2.7/examples/custom_simulator_example.py +143 -0
  20. most_queue-2.7/most_queue/__init__.py +18 -0
  21. most_queue-2.7/most_queue/constants.py +22 -0
  22. {most_queue-2.5 → most_queue-2.7}/most_queue/io/tables.py +129 -39
  23. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/calc_v_pls.py +3 -3
  24. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/run_mgn_with_h2_delay_cold_warm.py +11 -11
  25. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/tests/test_fj_delta.py +2 -2
  26. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/vacations_paper_utils.py +3 -3
  27. {most_queue-2.5/most_queue/io → most_queue-2.7/most_queue/random}/__init__.py +0 -0
  28. {most_queue-2.5 → most_queue-2.7}/most_queue/random/distributions.py +10 -10
  29. {most_queue-2.5 → most_queue-2.7}/most_queue/random/utils/fit.py +12 -10
  30. most_queue-2.7/most_queue/sim/__init__.py +10 -0
  31. most_queue-2.7/most_queue/sim/base.py +605 -0
  32. most_queue-2.7/most_queue/sim/base_core.py +89 -0
  33. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/batch.py +15 -12
  34. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/finite_source.py +2 -1
  35. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/flow_sum.py +42 -110
  36. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/fork_join.py +19 -5
  37. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/fork_join_delta.py +7 -0
  38. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/impatient.py +62 -53
  39. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/negative.py +70 -38
  40. most_queue-2.7/most_queue/sim/networks/base_network_sim.py +311 -0
  41. most_queue-2.7/most_queue/sim/networks/negative_network.py +623 -0
  42. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/networks/network.py +28 -27
  43. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/networks/priority_network.py +33 -35
  44. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/priority.py +136 -73
  45. {most_queue-2.5/most_queue/sim → most_queue-2.7/most_queue/sim/utils}/__init__.py +0 -0
  46. most_queue-2.7/most_queue/sim/utils/events.py +123 -0
  47. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/utils/qs_queue.py +3 -2
  48. most_queue-2.7/most_queue/sim/utils/stats_update.py +22 -0
  49. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/vacations.py +43 -47
  50. {most_queue-2.5 → most_queue-2.7}/most_queue/structs.py +17 -10
  51. most_queue-2.7/most_queue/theory/__init__.py +58 -0
  52. most_queue-2.7/most_queue/theory/base_queue.py +193 -0
  53. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/batch/mm1.py +9 -7
  54. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/calc_params.py +3 -1
  55. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/closed/engset.py +9 -7
  56. most_queue-2.7/most_queue/theory/fifo/__init__.py +25 -0
  57. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fifo/ek_d_n.py +11 -7
  58. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fifo/gi_m_1.py +212 -204
  59. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fifo/gi_m_n.py +22 -28
  60. most_queue-2.7/most_queue/theory/fifo/gmc_takahasi.py +332 -0
  61. most_queue-2.7/most_queue/theory/fifo/hkhk_takahasi.py +486 -0
  62. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fifo/m_d_n.py +159 -155
  63. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fifo/mg1.py +145 -132
  64. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fifo/mgn_takahasi.py +268 -73
  65. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fifo/mmnr.py +172 -165
  66. most_queue-2.7/most_queue/theory/fifo/takahasi_base.py +211 -0
  67. {most_queue-2.5/most_queue/theory → most_queue-2.7/most_queue/theory/fork_join}/__init__.py +0 -0
  68. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fork_join/m_m_n.py +9 -7
  69. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/fork_join/split_join.py +135 -135
  70. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/impatience/mm1.py +9 -7
  71. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/negative/mg1_disasters.py +19 -14
  72. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/negative/mg1_rcs.py +3 -3
  73. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/negative/mgn_disaster.py +37 -95
  74. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/negative/mgn_rcs.py +37 -101
  75. most_queue-2.7/most_queue/theory/networks/__init__.py +8 -0
  76. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/networks/base_network_calc.py +17 -9
  77. most_queue-2.7/most_queue/theory/networks/negative_network.py +247 -0
  78. most_queue-2.7/most_queue/theory/priority/__init__.py +13 -0
  79. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/priority/mgn_invar_approx.py +12 -12
  80. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/priority/non_preemptive/mg1.py +28 -21
  81. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/priority/preemptive/m_ph_n_busy_approx.py +8 -5
  82. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/priority/preemptive/mg1.py +31 -31
  83. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/priority/preemptive/mm2_3cls_busy_approx.py +8 -5
  84. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/priority/preemptive/mmn_2cls_pr_busy_approx.py +8 -5
  85. most_queue-2.7/most_queue/theory/utils/__init__.py +25 -0
  86. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/busy_periods.py +9 -9
  87. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/conditional.py +7 -5
  88. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/conv.py +5 -1
  89. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/max_dist.py +7 -7
  90. most_queue-2.7/most_queue/theory/utils/moments.py +42 -0
  91. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/residual.py +1 -1
  92. most_queue-2.7/most_queue/theory/utils/timing.py +81 -0
  93. most_queue-2.7/most_queue/theory/utils/validation.py +97 -0
  94. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/vacations/m_h2_h2warm.py +21 -16
  95. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/vacations/mg1_warm_calc.py +13 -11
  96. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/vacations/mgn_with_h2_delay_cold_warm.py +15 -13
  97. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/vacations/mmn_with_h2_cold_and_h2_warmup.py +19 -18
  98. {most_queue-2.5 → most_queue-2.7}/pyproject.toml +8 -3
  99. {most_queue-2.5 → most_queue-2.7}/tests/test_base_qs_sim.py +2 -2
  100. {most_queue-2.5 → most_queue-2.7}/tests/test_batch.py +2 -2
  101. {most_queue-2.5 → most_queue-2.7}/tests/test_ek_d_n.py +1 -1
  102. {most_queue-2.5 → most_queue-2.7}/tests/test_engset.py +5 -5
  103. {most_queue-2.5 → most_queue-2.7}/tests/test_fj_sim.py +2 -2
  104. {most_queue-2.5 → most_queue-2.7}/tests/test_gi_m_1_calc.py +90 -90
  105. {most_queue-2.5 → most_queue-2.7}/tests/test_gi_m_n_calc.py +4 -4
  106. most_queue-2.7/tests/test_h2_h2_n_calc.py +129 -0
  107. most_queue-2.7/tests/test_h2_m_n_calc.py +105 -0
  108. {most_queue-2.5 → most_queue-2.7}/tests/test_impatience.py +2 -2
  109. {most_queue-2.5 → most_queue-2.7}/tests/test_m_h2_h2warm.py +3 -3
  110. {most_queue-2.5 → most_queue-2.7}/tests/test_m_ph_n_prty.py +1 -1
  111. {most_queue-2.5 → most_queue-2.7}/tests/test_mg1_calc.py +85 -85
  112. {most_queue-2.5 → most_queue-2.7}/tests/test_mg1_disaster.py +3 -3
  113. {most_queue-2.5 → most_queue-2.7}/tests/test_mg1_rcs.py +2 -2
  114. {most_queue-2.5 → most_queue-2.7}/tests/test_mg1_warmup.py +2 -2
  115. {most_queue-2.5 → most_queue-2.7}/tests/test_mgn_disaster.py +5 -5
  116. {most_queue-2.5 → most_queue-2.7}/tests/test_mgn_rcs.py +5 -5
  117. {most_queue-2.5 → most_queue-2.7}/tests/test_mgn_tt.py +4 -4
  118. {most_queue-2.5 → most_queue-2.7}/tests/test_mgn_with_h2_delay_cold_warm.py +3 -3
  119. {most_queue-2.5 → most_queue-2.7}/tests/test_mm2_3cls_prty_busy.py +6 -4
  120. {most_queue-2.5 → most_queue-2.7}/tests/test_mmn_h2cold_h2warm.py +2 -2
  121. {most_queue-2.5 → most_queue-2.7}/tests/test_mmn_prty_busy_approx.py +4 -4
  122. most_queue-2.7/tests/test_negative_network.py +504 -0
  123. {most_queue-2.5 → most_queue-2.7}/tests/test_network_im_prty.py +4 -4
  124. most_queue-2.7/tests/test_network_negative_calc.py +182 -0
  125. {most_queue-2.5 → most_queue-2.7}/tests/test_network_no_prty.py +2 -2
  126. {most_queue-2.5 → most_queue-2.7}/tests/test_qs_sim.py +4 -4
  127. {most_queue-2.5 → most_queue-2.7}/tests/test_qs_sim_prty.py +6 -6
  128. most_queue-2.7/tests/test_tt_vs_sim_cv105.py +149 -0
  129. most_queue-2.7/tests/test_tt_vs_sim_gamma_cvl1.py +128 -0
  130. {most_queue-2.5 → most_queue-2.7}/tests/units/test_busy_moments_calc.py +2 -2
  131. most_queue-2.7/tests/units/test_central_moments.py +43 -0
  132. {most_queue-2.5 → most_queue-2.7}/tests/units/test_conditionals.py +4 -4
  133. {most_queue-2.5 → most_queue-2.7}/tests/units/test_h2_params_cv.py +5 -5
  134. {most_queue-2.5 → most_queue-2.7}/tests/units/test_queue_types.py +1 -1
  135. {most_queue-2.5 → most_queue-2.7}/tests/units/test_tt_up_probs.py +1 -1
  136. {most_queue-2.5 → most_queue-2.7}/tutorials/m_h2_h2warm.ipynb +4 -4
  137. {most_queue-2.5 → most_queue-2.7}/tutorials/mgn_takahasi_takami.ipynb +4 -4
  138. {most_queue-2.5 → most_queue-2.7}/tutorials/network_with_priorities.ipynb +6 -6
  139. {most_queue-2.5 → most_queue-2.7}/tutorials/priority_queue.ipynb +9 -9
  140. {most_queue-2.5 → most_queue-2.7}/tutorials/queue_sim.ipynb +5 -5
  141. {most_queue-2.5 → most_queue-2.7}/works/vacations/run_one_calc_vs_sim.py +3 -3
  142. most_queue-2.5/PKG-INFO +0 -204
  143. most_queue-2.5/README.md +0 -163
  144. most_queue-2.5/most_queue/sim/base.py +0 -406
  145. most_queue-2.5/most_queue/sim/networks/base_network_sim.py +0 -103
  146. most_queue-2.5/most_queue/sim/utils/stats_update.py +0 -19
  147. most_queue-2.5/most_queue/theory/base_queue.py +0 -75
  148. most_queue-2.5/most_queue/theory/priority/preemptive/__init__.py +0 -0
  149. most_queue-2.5/most_queue/theory/utils/__init__.py +0 -0
  150. most_queue-2.5/most_queue/theory/vacations/__init__.py +0 -0
  151. most_queue-2.5/setup.py +0 -31
  152. most_queue-2.5/tests/__init__.py +0 -0
  153. most_queue-2.5/works/__init__.py +0 -0
  154. most_queue-2.5/works/negative_queues/__init__.py +0 -0
  155. most_queue-2.5/works/vacations/__init__.py +0 -0
  156. {most_queue-2.5 → most_queue-2.7}/.pre-commit-config.yaml +0 -0
  157. {most_queue-2.5 → most_queue-2.7}/LICENSE +0 -0
  158. {most_queue-2.5 → most_queue-2.7}/assets/3.gif +0 -0
  159. {most_queue-2.5 → most_queue-2.7}/deploy.txt +0 -0
  160. {most_queue-2.5 → most_queue-2.7}/googleb31d3dccb40f969f.html +0 -0
  161. {most_queue-2.5/most_queue → most_queue-2.7/most_queue/io}/__init__.py +0 -0
  162. {most_queue-2.5 → most_queue-2.7}/most_queue/io/plots.py +0 -0
  163. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/approx_cdf_make.py +0 -0
  164. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/compare_fj_calc.py +0 -0
  165. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/flow_sum.py +0 -0
  166. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/tests/test_network_opt_approx.py +0 -0
  167. {most_queue-2.5 → most_queue-2.7}/most_queue/misc/tests/test_network_opt_plus.py +0 -0
  168. {most_queue-2.5 → most_queue-2.7}/most_queue/random/distributions.yaml +0 -0
  169. {most_queue-2.5 → most_queue-2.7}/most_queue/random/utils/base.py +0 -0
  170. {most_queue-2.5 → most_queue-2.7}/most_queue/random/utils/create.py +0 -0
  171. {most_queue-2.5 → most_queue-2.7}/most_queue/random/utils/load.py +0 -0
  172. {most_queue-2.5 → most_queue-2.7}/most_queue/random/utils/params.py +0 -0
  173. {most_queue-2.5/most_queue/random → most_queue-2.7/most_queue/sim/networks}/__init__.py +0 -0
  174. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/utils/phase.py +0 -0
  175. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/utils/servers.py +0 -0
  176. {most_queue-2.5 → most_queue-2.7}/most_queue/sim/utils/tasks.py +0 -0
  177. {most_queue-2.5/most_queue/sim/networks → most_queue-2.7/most_queue/theory/batch}/__init__.py +0 -0
  178. {most_queue-2.5/most_queue/sim/utils → most_queue-2.7/most_queue/theory/closed}/__init__.py +0 -0
  179. {most_queue-2.5/most_queue/theory/batch → most_queue-2.7/most_queue/theory/impatience}/__init__.py +0 -0
  180. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/negative/structs.py +0 -0
  181. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/networks/network_viewer.py +0 -0
  182. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/networks/open_network.py +0 -0
  183. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/networks/open_network_prty.py +0 -0
  184. {most_queue-2.5/most_queue/theory/closed → most_queue-2.7/most_queue/theory/networks/opt}/__init__.py +0 -0
  185. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/networks/opt/transition.py +0 -0
  186. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/networks/opt/transition_approx.py +0 -0
  187. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/networks/opt/transition_plus.py +0 -0
  188. {most_queue-2.5/most_queue/theory/fifo → most_queue-2.7/most_queue/theory/priority/non_preemptive}/__init__.py +0 -0
  189. {most_queue-2.5/most_queue/theory/fork_join → most_queue-2.7/most_queue/theory/priority/preemptive}/__init__.py +0 -0
  190. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/r_example.gexf +0 -0
  191. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/binom_probs.py +0 -0
  192. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/diff5dots.py +0 -0
  193. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/flow_sum.py +0 -0
  194. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/passage_time.py +0 -0
  195. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/q_poisson_arrival_calc.py +0 -0
  196. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/student_stat.py +0 -0
  197. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/transforms.py +0 -0
  198. {most_queue-2.5 → most_queue-2.7}/most_queue/theory/utils/utilization_approx.py +0 -0
  199. {most_queue-2.5/most_queue/theory/impatience → most_queue-2.7/most_queue/theory/vacations}/__init__.py +0 -0
  200. {most_queue-2.5 → most_queue-2.7}/requirements.txt +0 -0
  201. {most_queue-2.5 → most_queue-2.7}/tests/Dockerfile +0 -0
  202. {most_queue-2.5/most_queue/theory/networks → most_queue-2.7/tests}/__init__.py +0 -0
  203. {most_queue-2.5 → most_queue-2.7}/tests/default_params.yaml +0 -0
  204. {most_queue-2.5 → most_queue-2.7}/tests/run.sh +0 -0
  205. {most_queue-2.5 → most_queue-2.7}/tests/test_m_d_n_calc.py +0 -0
  206. {most_queue-2.5 → most_queue-2.7}/tests/test_network_opt.py +0 -0
  207. {most_queue-2.5 → most_queue-2.7}/tests/units/test_v1_on_channels.py +0 -0
  208. {most_queue-2.5 → most_queue-2.7}/tests/units/test_v1_utlization_approx.py +0 -0
  209. {most_queue-2.5 → most_queue-2.7}/tests/units/test_weibull.py +0 -0
  210. {most_queue-2.5/most_queue/theory/networks/opt → most_queue-2.7/works}/__init__.py +0 -0
  211. {most_queue-2.5/most_queue/theory/priority → most_queue-2.7/works/negative_queues}/__init__.py +0 -0
  212. {most_queue-2.5 → most_queue-2.7}/works/negative_queues/base_parameters.yaml +0 -0
  213. {most_queue-2.5 → most_queue-2.7}/works/negative_queues/work_mgn_negatives.py +0 -0
  214. {most_queue-2.5/most_queue/theory/priority/non_preemptive → most_queue-2.7/works/vacations}/__init__.py +0 -0
  215. {most_queue-2.5 → most_queue-2.7}/works/vacations/base_parameters.yaml +0 -0
  216. {most_queue-2.5 → most_queue-2.7}/works/vacations/channels.py +0 -0
  217. {most_queue-2.5 → most_queue-2.7}/works/vacations/cooling.py +0 -0
  218. {most_queue-2.5 → most_queue-2.7}/works/vacations/cooling_delay.py +0 -0
  219. {most_queue-2.5 → most_queue-2.7}/works/vacations/main.py +0 -0
  220. {most_queue-2.5 → most_queue-2.7}/works/vacations/service.py +0 -0
  221. {most_queue-2.5 → most_queue-2.7}/works/vacations/utilization.py +0 -0
  222. {most_queue-2.5 → most_queue-2.7}/works/vacations/utils.py +0 -0
  223. {most_queue-2.5 → most_queue-2.7}/works/vacations/warmup.py +0 -0
@@ -0,0 +1,3 @@
1
+ # Python Virtual Environment
2
+ Use `./.venv` for Python interpreter and package management.
3
+
@@ -170,3 +170,7 @@ tests/units/*.png
170
170
  # ignore all files in works/vacations/results
171
171
  works/vacations/results/*
172
172
 
173
+ # ignore article about negative queues
174
+ docs/negative_queues_takahasi_takami.md
175
+ docs/negative_queues_figures/
176
+ docs/books/
@@ -0,0 +1,274 @@
1
+ Metadata-Version: 2.4
2
+ Name: most_queue
3
+ Version: 2.7
4
+ Summary: Software package for calculation and simulation of queuing systems
5
+ Project-URL: Homepage, https://github.com/xabarov/most-queue
6
+ Author-email: Xabarov Roman <xabarov1985@gmail.com>
7
+ License: Copyright (c) 2018 The Python Packaging Authority
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+ License-File: LICENSE
27
+ Classifier: License :: OSI Approved :: MIT License
28
+ Classifier: Operating System :: OS Independent
29
+ Classifier: Programming Language :: Python :: 3
30
+ Requires-Python: >=3.9
31
+ Requires-Dist: colorama
32
+ Requires-Dist: graphviz
33
+ Requires-Dist: matplotlib
34
+ Requires-Dist: networkx
35
+ Requires-Dist: numpy
36
+ Requires-Dist: pandas
37
+ Requires-Dist: pyyaml
38
+ Requires-Dist: scipy<2.0,>=1.13.0
39
+ Requires-Dist: tqdm
40
+ Description-Content-Type: text/markdown
41
+
42
+ # Системы массового обслуживания: Симуляция и численные методы 🔄
43
+
44
+ ![Queue](assets/3.gif)
45
+
46
+ Python-библиотека для симуляции и анализа систем массового обслуживания (СМО) и сетей очередей.
47
+
48
+ ![PyPI version](https://img.shields.io/pypi/v/most-queue)
49
+ ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/xabarov/most-queue)
50
+
51
+ ---
52
+
53
+ ## 📚 Документация
54
+
55
+ **Подробная документация доступна:**
56
+
57
+ - **[📖 Полная документация (Русский)](docs/README.md)** — Полное руководство на русском языке с подробными туториалами, примерами и теорией
58
+ - **[🚀 Быстрый старт](docs/getting_started.md)** — Начните работу за несколько минут
59
+ - **[📘 Основные концепции](docs/concepts.md)** — Основы теории массового обслуживания
60
+ - **[🎮 Руководство по симуляции](docs/simulation.md)** — Имитационное моделирование
61
+ - **[🧮 Руководство по расчетам](docs/calculation.md)** — Численные методы
62
+ - **[📊 Каталог моделей](docs/models.md)** — Поддерживаемые модели СМО
63
+ - **[🌐 Сети очередей](docs/networks.md)** — Сети СМО
64
+ - **[⭐ Приоритетные системы](docs/priorities.md)** — Системы с приоритетами
65
+ - **[💡 Примеры использования](docs/examples.md)** — Практические примеры
66
+
67
+ ---
68
+
69
+ ## 🔍 Основные возможности
70
+
71
+ - **Симуляция**: Моделирование различных типов систем массового обслуживания и сетей
72
+ - **Численные методы**: Решение стационарных задач теории массового обслуживания
73
+ - **Метрики производительности**: Анализ времени ожидания, времени пребывания, коэффициентов загрузки и многое другое
74
+ - **Широкая поддержка моделей**: FIFO, приоритеты, прогулки, отрицательные заявки, fork-join, сети и многое другое
75
+
76
+ ---
77
+
78
+ ## 📦 Установка
79
+
80
+ ```bash
81
+ pip install most-queue
82
+ ```
83
+
84
+ Или установка из репозитория:
85
+
86
+ ```bash
87
+ git clone https://github.com/xabarov/most-queue.git
88
+ cd most-queue
89
+ pip install -e .
90
+ ```
91
+
92
+ **Требования:** Python >= 3.9
93
+
94
+ ---
95
+
96
+ ## 📰 Новости
97
+
98
+ - **Февраль 2026** — Добавлены расчеты по методу **Такахаси–Таками** для FIFO-моделей **H₂/M/c** и **H₂/H₂/c**:
99
+ - `most_queue/theory/fifo/gmc_takahasi.py` — **H₂/M/c**
100
+ - `most_queue/theory/fifo/hkhk_takahasi.py` — **H₂/H₂/c**
101
+ - Улучшено API: `H2MnCalc.set_sources()` и `MGnCalc.set_servers()` теперь принимают `H2Params` напрямую (без повторного фиттинга), а `HkHkNCalc` корректно работает с complex-fit для \(CV<1\).
102
+ - **2025** — Для метода расчета многоканальной СМО с **разогревом**, **охлаждением** и **задержкой начала охлаждения** опубликована статья (реализация: `most_queue/theory/vacations/mgn_with_h2_delay_cold_warm.py`):
103
+ - Лохвицкий, В. А. Численный расчет многоканальной системы массового обслуживания с разогревом, охлаждением и задержкой начала охлаждения / В. А. Лохвицкий, Р. С. Хабаров, Е. Л. Яковлев // Авиакосмическое приборостроение. – 2025. – № 1. – С. 44–57. – DOI [10.25791/aviakosmos.1.2025.1456](https://doi.org/10.25791/aviakosmos.1.2025.1456). – EDN OVJXK
104
+
105
+ ---
106
+
107
+ ## 🎉 Версия 2.6
108
+
109
+ **Основные изменения:**
110
+
111
+ - **Рефакторинг модулей `sim` и `theory`**: Улучшена архитектура и структура кода для лучшей поддерживаемости и расширяемости
112
+ - **Полная документация**: Добавлена подробная документация на русском языке с руководствами по симуляции, расчетам, моделям и сетям очередей
113
+ - **Единый API**: Унифицированный интерфейс для работы с симуляцией и численными методами
114
+ - **Улучшенная терминология**: Обновлена терминология (СМО с прогулками вместо отпусков)
115
+
116
+ ---
117
+
118
+ ## 🚀 Быстрый старт
119
+
120
+ ### Базовый пример: M/M/1 система
121
+
122
+ ```python
123
+ from most_queue.sim.base import QsSim
124
+
125
+ # Создание симулятора
126
+ qs = QsSim(num_of_channels=1)
127
+
128
+ # Настройка потока поступления (пуассоновский с интенсивностью λ = 0.5)
129
+ qs.set_sources(0.5, "M")
130
+
131
+ # Настройка обслуживания (экспоненциальное с интенсивностью μ = 1.0)
132
+ qs.set_servers(1.0, "M")
133
+
134
+ # Запуск симуляции
135
+ results = qs.run(10000)
136
+
137
+ # Получение результатов
138
+ print(f"Среднее время ожидания: {results.w[0]:.4f}")
139
+ print(f"Среднее время пребывания: {results.v[0]:.4f}")
140
+ print(f"Коэффициент загрузки: {results.utilization:.4f}")
141
+ ```
142
+
143
+ ### Численный расчет
144
+
145
+ ```python
146
+ from most_queue.theory.fifo.mmnr import MMnrCalc
147
+
148
+ # Создание калькулятора
149
+ calc = MMnrCalc(n=1)
150
+ calc.set_sources(l=0.5)
151
+ calc.set_servers(mu=1.0)
152
+
153
+ # Выполнение расчета
154
+ results = calc.run()
155
+ print(f"Среднее время ожидания: {results.w[0]:.4f}")
156
+ ```
157
+
158
+ **См. [Руководство по быстрому старту](docs/getting_started.md) для дополнительных примеров.**
159
+
160
+ ---
161
+
162
+ ## 📚 Структура проекта
163
+
164
+ Most-Queue состоит из двух основных модулей:
165
+
166
+ - **`most_queue.sim`** — Программы симуляции систем массового обслуживания
167
+ - **`most_queue.theory`** — Численные методы для расчета моделей теории массового обслуживания
168
+
169
+ ---
170
+
171
+ ## 🧪 Поддерживаемые модели
172
+
173
+ ### FIFO системы
174
+ - **M/M/c**, **M/M/c/r** — Многоканальные системы с пуассоновским потоком
175
+ - **M/G/1**, **M/G/c** — Системы с произвольным распределением времени обслуживания
176
+ - **GI/M/1**, **GI/M/c** — Системы с общим потоком поступления
177
+ - **H₂/M/c** — Гиперэкспоненциальный поток поступления, метод Такахаси-Таками (§7.6.1)
178
+ - **M/D/c**, **E_k/D/c** — Системы с детерминированным обслуживанием
179
+ - **M/H₂/c** — Метод Такахаси-Таками с гиперэкспоненциальным обслуживанием
180
+ - **H₂/H₂/c** — Метод Такахаси-Таками для гиперэкспоненциального потока и обслуживания
181
+
182
+ Примечание про H₂ и \(CV<1\): реальное H₂-распределение имеет \(CV\\ge 1\), но для численных методов допускается **complex-fit** (комплексные параметры аппроксимации). Симулятор `QsSim` не генерирует H₂ с комплексными параметрами, поэтому сравнение “теория vs симуляция” возможно только когда параметры вещественные.
183
+
184
+ ### Системы с приоритетами
185
+ - **M/G/1/PR**, **M/G/1/NP** — Одноканальные с прерываемым/непрерываемым приоритетом
186
+ - **M/G/c/PR**, **M/G/c/NP** — Многоканальные с приоритетами
187
+ - **M/Ph/c/PR** — Фазовое распределение обслуживания с приоритетами
188
+
189
+ ### Специализированные системы
190
+ - **Прогулки** — Системы с прогулками серверов и прогревом
191
+ - **Отрицательные заявки** — Модели RCS и disaster
192
+ - **Fork-Join** — Системы параллельной обработки
193
+ - **Пакетное поступление** — Системы M^x/M/1
194
+ - **Нетерпеливые заявки** — Системы с уходом клиентов
195
+ - **Engset** — Закрытые системы с конечным числом источников
196
+ - **Сети** — Открытые и закрытые сети очередей
197
+
198
+ **См. [Каталог моделей](docs/models.md) для полного списка и деталей.**
199
+
200
+ ---
201
+
202
+ ## 📌 Области применения
203
+
204
+ - **Облачные вычисления**: Моделирование масштабируемости и производительности инфраструктуры
205
+ - **Call-центры**: Оптимизация штата и времени ожидания клиентов
206
+ - **Транспорт**: Улучшение транспортных потоков и логистики
207
+ - **Сетевой трафик**: Анализ и прогнозирование потоков данных
208
+ - **Производство**: Оптимизация производственных линий
209
+ - **Здравоохранение**: Планирование ресурсов больниц
210
+
211
+ **См. [Примеры использования](docs/examples.md) для практических кейсов.**
212
+
213
+ ---
214
+
215
+ ## 📖 Most-Queue 2.0 API
216
+
217
+ Единый API для симуляции и расчета:
218
+
219
+ ```python
220
+ # Численный расчет
221
+ calc = MGnCalc(n=NUM_OF_CHANNELS)
222
+ calc.set_sources(l=ARRIVAL_RATE)
223
+ calc.set_servers(b=b)
224
+ calc_results = calc.run()
225
+
226
+ # Симуляция
227
+ qs = QsSim(NUM_OF_CHANNELS)
228
+ qs.set_sources(ARRIVAL_RATE, "M")
229
+ qs.set_servers(gamma_params, "Gamma")
230
+ sim_results = qs.run(NUM_OF_JOBS)
231
+ ```
232
+
233
+ ---
234
+
235
+ ## 📁 Ресурсы
236
+
237
+ - **[Тесты](tests/)** — Примеры с сравнением теоретических и симуляционных результатов
238
+ - **[Туториалы](tutorials/)** — Jupyter-ноутбуки с пошаговыми руководствами
239
+ - **[Документация](docs/)** — Подробная документация на русском языке
240
+
241
+ ---
242
+
243
+ ## 🔍 Ключевые слова для поиска
244
+
245
+ - Теория массового обслуживания
246
+ - Симуляция
247
+ - Численные методы
248
+ - Сети очередей
249
+ - Анализ производительности
250
+ - Облачные вычисления
251
+ - Оптимизация call-центров
252
+ - Транспортные системы
253
+ - Сетевой трафик
254
+ - Python-пакет
255
+
256
+ ---
257
+
258
+ ## 👥 Участие в разработке
259
+
260
+ Мы приветствуем ваш вклад!
261
+
262
+ - Откройте [issue](https://github.com/xabarov/most-queue/issues) для сообщений об ошибках или предложений
263
+ - Отправьте pull request для улучшений функциональности
264
+ - Контакты: xabarov1985@gmail.com
265
+
266
+ ---
267
+
268
+ ## 📄 Лицензия
269
+
270
+ См. файл [LICENSE](LICENSE) для деталей.
271
+
272
+ ---
273
+
274
+ **Для подробной документации, примеров и туториалов см. [docs/README.md](docs/README.md)**
@@ -0,0 +1,233 @@
1
+ # Системы массового обслуживания: Симуляция и численные методы 🔄
2
+
3
+ ![Queue](assets/3.gif)
4
+
5
+ Python-библиотека для симуляции и анализа систем массового обслуживания (СМО) и сетей очередей.
6
+
7
+ ![PyPI version](https://img.shields.io/pypi/v/most-queue)
8
+ ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/xabarov/most-queue)
9
+
10
+ ---
11
+
12
+ ## 📚 Документация
13
+
14
+ **Подробная документация доступна:**
15
+
16
+ - **[📖 Полная документация (Русский)](docs/README.md)** — Полное руководство на русском языке с подробными туториалами, примерами и теорией
17
+ - **[🚀 Быстрый старт](docs/getting_started.md)** — Начните работу за несколько минут
18
+ - **[📘 Основные концепции](docs/concepts.md)** — Основы теории массового обслуживания
19
+ - **[🎮 Руководство по симуляции](docs/simulation.md)** — Имитационное моделирование
20
+ - **[🧮 Руководство по расчетам](docs/calculation.md)** — Численные методы
21
+ - **[📊 Каталог моделей](docs/models.md)** — Поддерживаемые модели СМО
22
+ - **[🌐 Сети очередей](docs/networks.md)** — Сети СМО
23
+ - **[⭐ Приоритетные системы](docs/priorities.md)** — Системы с приоритетами
24
+ - **[💡 Примеры использования](docs/examples.md)** — Практические примеры
25
+
26
+ ---
27
+
28
+ ## 🔍 Основные возможности
29
+
30
+ - **Симуляция**: Моделирование различных типов систем массового обслуживания и сетей
31
+ - **Численные методы**: Решение стационарных задач теории массового обслуживания
32
+ - **Метрики производительности**: Анализ времени ожидания, времени пребывания, коэффициентов загрузки и многое другое
33
+ - **Широкая поддержка моделей**: FIFO, приоритеты, прогулки, отрицательные заявки, fork-join, сети и многое другое
34
+
35
+ ---
36
+
37
+ ## 📦 Установка
38
+
39
+ ```bash
40
+ pip install most-queue
41
+ ```
42
+
43
+ Или установка из репозитория:
44
+
45
+ ```bash
46
+ git clone https://github.com/xabarov/most-queue.git
47
+ cd most-queue
48
+ pip install -e .
49
+ ```
50
+
51
+ **Требования:** Python >= 3.9
52
+
53
+ ---
54
+
55
+ ## 📰 Новости
56
+
57
+ - **Февраль 2026** — Добавлены расчеты по методу **Такахаси–Таками** для FIFO-моделей **H₂/M/c** и **H₂/H₂/c**:
58
+ - `most_queue/theory/fifo/gmc_takahasi.py` — **H₂/M/c**
59
+ - `most_queue/theory/fifo/hkhk_takahasi.py` — **H₂/H₂/c**
60
+ - Улучшено API: `H2MnCalc.set_sources()` и `MGnCalc.set_servers()` теперь принимают `H2Params` напрямую (без повторного фиттинга), а `HkHkNCalc` корректно работает с complex-fit для \(CV<1\).
61
+ - **2025** — Для метода расчета многоканальной СМО с **разогревом**, **охлаждением** и **задержкой начала охлаждения** опубликована статья (реализация: `most_queue/theory/vacations/mgn_with_h2_delay_cold_warm.py`):
62
+ - Лохвицкий, В. А. Численный расчет многоканальной системы массового обслуживания с разогревом, охлаждением и задержкой начала охлаждения / В. А. Лохвицкий, Р. С. Хабаров, Е. Л. Яковлев // Авиакосмическое приборостроение. – 2025. – № 1. – С. 44–57. – DOI [10.25791/aviakosmos.1.2025.1456](https://doi.org/10.25791/aviakosmos.1.2025.1456). – EDN OVJXK
63
+
64
+ ---
65
+
66
+ ## 🎉 Версия 2.6
67
+
68
+ **Основные изменения:**
69
+
70
+ - **Рефакторинг модулей `sim` и `theory`**: Улучшена архитектура и структура кода для лучшей поддерживаемости и расширяемости
71
+ - **Полная документация**: Добавлена подробная документация на русском языке с руководствами по симуляции, расчетам, моделям и сетям очередей
72
+ - **Единый API**: Унифицированный интерфейс для работы с симуляцией и численными методами
73
+ - **Улучшенная терминология**: Обновлена терминология (СМО с прогулками вместо отпусков)
74
+
75
+ ---
76
+
77
+ ## 🚀 Быстрый старт
78
+
79
+ ### Базовый пример: M/M/1 система
80
+
81
+ ```python
82
+ from most_queue.sim.base import QsSim
83
+
84
+ # Создание симулятора
85
+ qs = QsSim(num_of_channels=1)
86
+
87
+ # Настройка потока поступления (пуассоновский с интенсивностью λ = 0.5)
88
+ qs.set_sources(0.5, "M")
89
+
90
+ # Настройка обслуживания (экспоненциальное с интенсивностью μ = 1.0)
91
+ qs.set_servers(1.0, "M")
92
+
93
+ # Запуск симуляции
94
+ results = qs.run(10000)
95
+
96
+ # Получение результатов
97
+ print(f"Среднее время ожидания: {results.w[0]:.4f}")
98
+ print(f"Среднее время пребывания: {results.v[0]:.4f}")
99
+ print(f"Коэффициент загрузки: {results.utilization:.4f}")
100
+ ```
101
+
102
+ ### Численный расчет
103
+
104
+ ```python
105
+ from most_queue.theory.fifo.mmnr import MMnrCalc
106
+
107
+ # Создание калькулятора
108
+ calc = MMnrCalc(n=1)
109
+ calc.set_sources(l=0.5)
110
+ calc.set_servers(mu=1.0)
111
+
112
+ # Выполнение расчета
113
+ results = calc.run()
114
+ print(f"Среднее время ожидания: {results.w[0]:.4f}")
115
+ ```
116
+
117
+ **См. [Руководство по быстрому старту](docs/getting_started.md) для дополнительных примеров.**
118
+
119
+ ---
120
+
121
+ ## 📚 Структура проекта
122
+
123
+ Most-Queue состоит из двух основных модулей:
124
+
125
+ - **`most_queue.sim`** — Программы симуляции систем массового обслуживания
126
+ - **`most_queue.theory`** — Численные методы для расчета моделей теории массового обслуживания
127
+
128
+ ---
129
+
130
+ ## 🧪 Поддерживаемые модели
131
+
132
+ ### FIFO системы
133
+ - **M/M/c**, **M/M/c/r** — Многоканальные системы с пуассоновским потоком
134
+ - **M/G/1**, **M/G/c** — Системы с произвольным распределением времени обслуживания
135
+ - **GI/M/1**, **GI/M/c** — Системы с общим потоком поступления
136
+ - **H₂/M/c** — Гиперэкспоненциальный поток поступления, метод Такахаси-Таками (§7.6.1)
137
+ - **M/D/c**, **E_k/D/c** — Системы с детерминированным обслуживанием
138
+ - **M/H₂/c** — Метод Такахаси-Таками с гиперэкспоненциальным обслуживанием
139
+ - **H₂/H₂/c** — Метод Такахаси-Таками для гиперэкспоненциального потока и обслуживания
140
+
141
+ Примечание про H₂ и \(CV<1\): реальное H₂-распределение имеет \(CV\\ge 1\), но для численных методов допускается **complex-fit** (комплексные параметры аппроксимации). Симулятор `QsSim` не генерирует H₂ с комплексными параметрами, поэтому сравнение “теория vs симуляция” возможно только когда параметры вещественные.
142
+
143
+ ### Системы с приоритетами
144
+ - **M/G/1/PR**, **M/G/1/NP** — Одноканальные с прерываемым/непрерываемым приоритетом
145
+ - **M/G/c/PR**, **M/G/c/NP** — Многоканальные с приоритетами
146
+ - **M/Ph/c/PR** — Фазовое распределение обслуживания с приоритетами
147
+
148
+ ### Специализированные системы
149
+ - **Прогулки** — Системы с прогулками серверов и прогревом
150
+ - **Отрицательные заявки** — Модели RCS и disaster
151
+ - **Fork-Join** — Системы параллельной обработки
152
+ - **Пакетное поступление** — Системы M^x/M/1
153
+ - **Нетерпеливые заявки** — Системы с уходом клиентов
154
+ - **Engset** — Закрытые системы с конечным числом источников
155
+ - **Сети** — Открытые и закрытые сети очередей
156
+
157
+ **См. [Каталог моделей](docs/models.md) для полного списка и деталей.**
158
+
159
+ ---
160
+
161
+ ## 📌 Области применения
162
+
163
+ - **Облачные вычисления**: Моделирование масштабируемости и производительности инфраструктуры
164
+ - **Call-центры**: Оптимизация штата и времени ожидания клиентов
165
+ - **Транспорт**: Улучшение транспортных потоков и логистики
166
+ - **Сетевой трафик**: Анализ и прогнозирование потоков данных
167
+ - **Производство**: Оптимизация производственных линий
168
+ - **Здравоохранение**: Планирование ресурсов больниц
169
+
170
+ **См. [Примеры использования](docs/examples.md) для практических кейсов.**
171
+
172
+ ---
173
+
174
+ ## 📖 Most-Queue 2.0 API
175
+
176
+ Единый API для симуляции и расчета:
177
+
178
+ ```python
179
+ # Численный расчет
180
+ calc = MGnCalc(n=NUM_OF_CHANNELS)
181
+ calc.set_sources(l=ARRIVAL_RATE)
182
+ calc.set_servers(b=b)
183
+ calc_results = calc.run()
184
+
185
+ # Симуляция
186
+ qs = QsSim(NUM_OF_CHANNELS)
187
+ qs.set_sources(ARRIVAL_RATE, "M")
188
+ qs.set_servers(gamma_params, "Gamma")
189
+ sim_results = qs.run(NUM_OF_JOBS)
190
+ ```
191
+
192
+ ---
193
+
194
+ ## 📁 Ресурсы
195
+
196
+ - **[Тесты](tests/)** — Примеры с сравнением теоретических и симуляционных результатов
197
+ - **[Туториалы](tutorials/)** — Jupyter-ноутбуки с пошаговыми руководствами
198
+ - **[Документация](docs/)** — Подробная документация на русском языке
199
+
200
+ ---
201
+
202
+ ## 🔍 Ключевые слова для поиска
203
+
204
+ - Теория массового обслуживания
205
+ - Симуляция
206
+ - Численные методы
207
+ - Сети очередей
208
+ - Анализ производительности
209
+ - Облачные вычисления
210
+ - Оптимизация call-центров
211
+ - Транспортные системы
212
+ - Сетевой трафик
213
+ - Python-пакет
214
+
215
+ ---
216
+
217
+ ## 👥 Участие в разработке
218
+
219
+ Мы приветствуем ваш вклад!
220
+
221
+ - Откройте [issue](https://github.com/xabarov/most-queue/issues) для сообщений об ошибках или предложений
222
+ - Отправьте pull request для улучшений функциональности
223
+ - Контакты: xabarov1985@gmail.com
224
+
225
+ ---
226
+
227
+ ## 📄 Лицензия
228
+
229
+ См. файл [LICENSE](LICENSE) для деталей.
230
+
231
+ ---
232
+
233
+ **Для подробной документации, примеров и туториалов см. [docs/README.md](docs/README.md)**
@@ -0,0 +1,108 @@
1
+ # Документация библиотеки Most-Queue
2
+
3
+ ![Queue](../assets/3.gif)
4
+
5
+ **Most-Queue** — это Python-библиотека для симуляции и численного анализа систем массового обслуживания (СМО) и сетей очередей.
6
+
7
+ ## 📚 Навигация по документации
8
+
9
+ ### Начало работы
10
+ - **[Быстрый старт](getting_started.md)** — установка и первые примеры использования
11
+ - **[Основные концепции](concepts.md)** — теория массового обслуживания и терминология
12
+
13
+ ### Основные разделы
14
+ - **[Симуляция СМО](simulation.md)** — руководство по моделированию систем массового обслуживания
15
+ - **[Численные методы](calculation.md)** — расчет характеристик СМО аналитическими методами
16
+ - **[Распределения](distributions.md)** — справочник по поддерживаемым распределениям
17
+ - **[Модели СМО](models.md)** — каталог поддерживаемых типов систем массового обслуживания
18
+
19
+ ### Специализированные темы
20
+ - **[Сети очередей](networks.md)** — моделирование и расчет сетей СМО
21
+ - **[Приоритетные системы](priorities.md)** — системы с приоритетным обслуживанием
22
+ - **[Расширенные примеры](examples.md)** — практические кейсы и сложные сценарии
23
+
24
+ ## 🎯 Основные возможности
25
+
26
+ ### Симуляция
27
+ - Моделирование различных типов СМО (M/M/c, M/G/1, GI/M/c и др.)
28
+ - Поддержка различных распределений времени поступления и обслуживания
29
+ - Системы с приоритетами, отпусками, отрицательными заявками
30
+ - Fork-Join и Split-Join системы
31
+ - Сети очередей
32
+
33
+ ### Численные методы
34
+ - Аналитический расчет стационарных характеристик
35
+ - Методы для различных типов СМО
36
+ - Высокая точность расчетов
37
+ - Быстрое получение результатов
38
+
39
+ ### Анализ результатов
40
+ - Моменты времени ожидания и пребывания
41
+ - Вероятности состояний системы
42
+ - Коэффициент загрузки
43
+ - Визуализация и таблицы результатов
44
+
45
+ ## 📦 Установка
46
+
47
+ ```bash
48
+ pip install most-queue
49
+ ```
50
+
51
+ Или установка из репозитория:
52
+
53
+ ```bash
54
+ pip install -e .
55
+ ```
56
+
57
+ ## 🔍 Быстрый пример
58
+
59
+ ```python
60
+ from most_queue.sim.base import QsSim
61
+
62
+ # Создаем симулятор M/M/1 системы
63
+ qs = QsSim(num_of_channels=1)
64
+
65
+ # Настраиваем поток поступления (пуассоновский с интенсивностью 0.5)
66
+ qs.set_sources(0.5, "M")
67
+
68
+ # Настраиваем обслуживание (экспоненциальное с интенсивностью 1.0)
69
+ qs.set_servers(1.0, "M")
70
+
71
+ # Запускаем симуляцию на 10000 заявок
72
+ results = qs.run(10000)
73
+
74
+ # Получаем результаты
75
+ print(f"Среднее время ожидания: {results.w[0]:.4f}")
76
+ print(f"Среднее время пребывания: {results.v[0]:.4f}")
77
+ print(f"Коэффициент загрузки: {results.utilization:.4f}")
78
+ ```
79
+
80
+ ## 📖 Структура библиотеки
81
+
82
+ Библиотека состоит из двух основных модулей:
83
+
84
+ - **`most_queue.sim`** — модуль симуляции СМО
85
+ - **`most_queue.theory`** — модуль численных методов расчета
86
+
87
+ ## 🧪 Примеры и тесты
88
+
89
+ - Примеры использования находятся в папке [`tests/`](../tests/)
90
+ - Jupyter-туториалы доступны в папке [`tutorials/`](../tutorials/)
91
+
92
+ ## 📝 Версия
93
+
94
+ Текущая версия: **2.05**
95
+
96
+ ## 🔗 Полезные ссылки
97
+
98
+ - [Репозиторий на GitHub](https://github.com/xabarov/most-queue)
99
+ - [Issues и предложения](https://github.com/xabarov/most-queue/issues)
100
+
101
+ ## 👥 Контакты
102
+
103
+ По вопросам и предложениям: xabarov1985@gmail.com
104
+
105
+ ---
106
+
107
+ **Примечание**: Эта документация на русском языке. Для английской версии см. [README.md](../README.md) в корне проекта.
108
+