most-queue 2.1__tar.gz → 2.3__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.

Files changed (218) hide show
  1. {most_queue-2.1 → most_queue-2.3}/PKG-INFO +33 -3
  2. {most_queue-2.1 → most_queue-2.3}/README.md +33 -3
  3. {most_queue-2.1 → most_queue-2.3}/most_queue/misc/approx_cdf_make.py +3 -3
  4. {most_queue-2.1 → most_queue-2.3}/most_queue/misc/calc_v_pls.py +1 -1
  5. {most_queue-2.1 → most_queue-2.3}/most_queue/misc/flow_sum.py +11 -11
  6. {most_queue-2.1 → most_queue-2.3}/most_queue/misc/run_mgn_with_h2_delay_cold_warm.py +66 -66
  7. {most_queue-2.1/most_queue/misc → most_queue-2.3/most_queue/misc/tests}/test_fj_delta.py +4 -4
  8. {most_queue-2.1/most_queue/misc → most_queue-2.3/most_queue/misc/tests}/test_network_opt_approx.py +1 -1
  9. {most_queue-2.1/most_queue/misc → most_queue-2.3/most_queue/misc/tests}/test_network_opt_plus.py +1 -1
  10. {most_queue-2.1 → most_queue-2.3}/most_queue/misc/vacations_paper_utils.py +6 -6
  11. {most_queue-2.1/most_queue/sim → most_queue-2.3/most_queue/random}/__init__.py +0 -0
  12. most_queue-2.1/most_queue/rand_distribution.py → most_queue-2.3/most_queue/random/distributions.py +70 -28
  13. {most_queue-2.1/most_queue/sim/utils → most_queue-2.3/most_queue/random}/distributions.yaml +7 -4
  14. most_queue-2.1/most_queue/general/interfaces.py → most_queue-2.3/most_queue/random/utils/base.py +2 -2
  15. most_queue-2.3/most_queue/random/utils/create.py +71 -0
  16. most_queue-2.1/most_queue/general/distribution_fitting.py → most_queue-2.3/most_queue/random/utils/fit.py +17 -22
  17. most_queue-2.3/most_queue/random/utils/load.py +100 -0
  18. {most_queue-2.1/most_queue/sim/networks → most_queue-2.3/most_queue/sim}/__init__.py +0 -0
  19. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/base.py +3 -3
  20. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/finite_source.py +1 -1
  21. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/flow_sum.py +6 -6
  22. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/fork_join_delta.py +1 -1
  23. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/impatient.py +1 -1
  24. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/negative.py +2 -1
  25. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/networks/network.py +1 -1
  26. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/networks/priority_network.py +1 -1
  27. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/priority.py +1 -1
  28. {most_queue-2.1/most_queue/theory → most_queue-2.3/most_queue/sim/utils}/__init__.py +0 -0
  29. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/utils/servers.py +3 -3
  30. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/vacations.py +2 -3
  31. {most_queue-2.1/most_queue/theory/batch → most_queue-2.3/most_queue/theory}/__init__.py +0 -0
  32. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fifo/ek_d_n.py +1 -1
  33. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fifo/gi_m_1.py +3 -3
  34. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fifo/gi_m_n.py +3 -3
  35. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fifo/mg1.py +1 -1
  36. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fifo/mgn_takahasi.py +1 -1
  37. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fifo/mmnr.py +1 -1
  38. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/negative/mg1_disasters.py +1 -1
  39. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/negative/mg1_rcs.py +1 -1
  40. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/negative/mgn_disaster.py +1 -1
  41. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/negative/mgn_rcs.py +1 -1
  42. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/networks/open_network.py +1 -1
  43. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/networks/open_network_prty.py +1 -1
  44. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/priority/non_preemptive/mg1.py +1 -1
  45. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/priority/preemptive/m_ph_n_busy_approx.py +9 -9
  46. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/priority/preemptive/mm2_3cls_busy_approx.py +4 -4
  47. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/priority/preemptive/mmn_2cls_pr_busy_approx.py +4 -4
  48. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/busy_periods.py +1 -1
  49. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/conditional.py +2 -2
  50. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/flow_sum.py +6 -6
  51. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/max_dist.py +1 -1
  52. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/q_poisson_arrival_calc.py +1 -1
  53. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/transforms.py +1 -1
  54. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/vacations/m_h2_h2warm.py +1 -1
  55. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/vacations/mg1_warm_calc.py +1 -1
  56. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/vacations/mgn_with_h2_delay_cold_warm.py +3 -3
  57. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/vacations/mmn_with_h2_cold_and_h2_warmup.py +1 -1
  58. {most_queue-2.1 → most_queue-2.3}/pyproject.toml +1 -1
  59. {most_queue-2.1 → most_queue-2.3}/setup.py +1 -1
  60. {most_queue-2.1 → most_queue-2.3}/tests/test_base_qs_sim.py +1 -1
  61. {most_queue-2.1 → most_queue-2.3}/tests/test_batch.py +1 -1
  62. {most_queue-2.1 → most_queue-2.3}/tests/test_ek_d_n.py +4 -4
  63. {most_queue-2.1 → most_queue-2.3}/tests/test_engset.py +1 -1
  64. {most_queue-2.1 → most_queue-2.3}/tests/test_fj_sim.py +7 -7
  65. {most_queue-2.1 → most_queue-2.3}/tests/test_gi_m_1_calc.py +3 -3
  66. {most_queue-2.1 → most_queue-2.3}/tests/test_gi_m_n_calc.py +3 -3
  67. {most_queue-2.1 → most_queue-2.3}/tests/test_impatience.py +1 -1
  68. {most_queue-2.1 → most_queue-2.3}/tests/test_m_d_n_calc.py +1 -1
  69. {most_queue-2.1 → most_queue-2.3}/tests/test_m_h2_h2warm.py +5 -5
  70. {most_queue-2.1 → most_queue-2.3}/tests/test_m_ph_n_prty.py +4 -4
  71. {most_queue-2.1 → most_queue-2.3}/tests/test_mg1_calc.py +3 -3
  72. {most_queue-2.1 → most_queue-2.3}/tests/test_mg1_disaster.py +3 -3
  73. {most_queue-2.1 → most_queue-2.3}/tests/test_mg1_rcs.py +4 -4
  74. {most_queue-2.1 → most_queue-2.3}/tests/test_mg1_warmup.py +5 -5
  75. {most_queue-2.1 → most_queue-2.3}/tests/test_mgn_disaster.py +4 -4
  76. {most_queue-2.1 → most_queue-2.3}/tests/test_mgn_rcs.py +4 -4
  77. {most_queue-2.1 → most_queue-2.3}/tests/test_mgn_tt.py +4 -4
  78. {most_queue-2.1 → most_queue-2.3}/tests/test_mgn_with_h2_delay_cold_warm.py +7 -7
  79. {most_queue-2.1 → most_queue-2.3}/tests/test_mm2_3cls_prty_busy.py +1 -1
  80. {most_queue-2.1 → most_queue-2.3}/tests/test_mmn_h2cold_h2warm.py +5 -5
  81. {most_queue-2.1 → most_queue-2.3}/tests/test_mmn_prty_busy_approx.py +1 -1
  82. {most_queue-2.1 → most_queue-2.3}/tests/test_network_im_prty.py +3 -3
  83. {most_queue-2.1 → most_queue-2.3}/tests/test_network_no_prty.py +3 -3
  84. {most_queue-2.1 → most_queue-2.3}/tests/test_network_opt.py +2 -2
  85. {most_queue-2.1 → most_queue-2.3}/tests/test_qs_sim.py +1 -1
  86. {most_queue-2.1 → most_queue-2.3}/tests/test_qs_sim_prty.py +2 -2
  87. {most_queue-2.1 → most_queue-2.3}/tests/units/test_busy_moments_calc.py +4 -4
  88. {most_queue-2.1 → most_queue-2.3}/tests/units/test_conditionals.py +2 -2
  89. {most_queue-2.1 → most_queue-2.3}/tests/units/test_h2_params_cv.py +3 -3
  90. {most_queue-2.1 → most_queue-2.3}/tests/units/test_queue_types.py +3 -3
  91. {most_queue-2.1 → most_queue-2.3}/tests/units/test_tt_up_probs.py +3 -3
  92. {most_queue-2.1 → most_queue-2.3}/tests/units/test_weibull.py +7 -7
  93. most_queue-2.3/tutorials/m_h2_h2warm.ipynb +272 -0
  94. most_queue-2.3/tutorials/mgn_takahasi_takami.ipynb +252 -0
  95. most_queue-2.3/tutorials/network_with_priorities.ipynb +381 -0
  96. most_queue-2.3/tutorials/priority_queue.ipynb +378 -0
  97. most_queue-2.3/tutorials/queue_sim.ipynb +456 -0
  98. {most_queue-2.1 → most_queue-2.3}/works/negative_queues/work_mgn_negatives.py +6 -6
  99. most_queue-2.3/works/vacations/__init__.py +0 -0
  100. {most_queue-2.1 → most_queue-2.3}/works/vacations/channels.py +5 -5
  101. {most_queue-2.1 → most_queue-2.3}/works/vacations/cooling.py +9 -9
  102. {most_queue-2.1 → most_queue-2.3}/works/vacations/cooling_delay.py +11 -9
  103. {most_queue-2.1 → most_queue-2.3}/works/vacations/main.py +4 -0
  104. most_queue-2.3/works/vacations/results/exp_2/cooling/cooling_probs_vs_cool_ave.png +0 -0
  105. most_queue-2.3/works/vacations/results/exp_2/cooling/cooling_probs_vs_cool_cv.png +0 -0
  106. most_queue-2.3/works/vacations/results/exp_2/cooling/w1_error_vs_cool_ave.png +0 -0
  107. most_queue-2.3/works/vacations/results/exp_2/cooling/w1_error_vs_cool_cv.png +0 -0
  108. most_queue-2.3/works/vacations/results/exp_2/cooling/w1_vs_cool_ave.png +0 -0
  109. most_queue-2.3/works/vacations/results/exp_2/cooling/w1_vs_cool_cv.png +0 -0
  110. most_queue-2.3/works/vacations/results/exp_2/cooling_delay/cooling_delay_probs_vs_cool_delay_ave.png +0 -0
  111. most_queue-2.3/works/vacations/results/exp_2/cooling_delay/cooling_delay_probs_vs_cool_delay_cv.png +0 -0
  112. most_queue-2.3/works/vacations/results/exp_2/cooling_delay/w1_error_vs_cool_delay_ave.png +0 -0
  113. most_queue-2.3/works/vacations/results/exp_2/cooling_delay/w1_error_vs_cool_delay_cv.png +0 -0
  114. most_queue-2.3/works/vacations/results/exp_2/cooling_delay/w1_vs_cool_delay_ave.png +0 -0
  115. most_queue-2.3/works/vacations/results/exp_2/cooling_delay/w1_vs_cool_delay_cv.png +0 -0
  116. most_queue-2.3/works/vacations/results/exp_2/parameters.yaml +51 -0
  117. most_queue-2.3/works/vacations/results/exp_2/w1_errors_vs_channels.png +0 -0
  118. most_queue-2.3/works/vacations/results/exp_2/w1_errors_vs_service_cv.png +0 -0
  119. most_queue-2.3/works/vacations/results/exp_2/w1_errors_vs_utilization.png +0 -0
  120. most_queue-2.3/works/vacations/results/exp_2/w1_vs_channels.png +0 -0
  121. most_queue-2.3/works/vacations/results/exp_2/w1_vs_service_cv.png +0 -0
  122. most_queue-2.3/works/vacations/results/exp_2/w1_vs_utilization.png +0 -0
  123. {most_queue-2.1 → most_queue-2.3}/works/vacations/run_one_calc_vs_sim.py +15 -7
  124. {most_queue-2.1 → most_queue-2.3}/works/vacations/service.py +5 -5
  125. {most_queue-2.1 → most_queue-2.3}/works/vacations/utilization.py +5 -5
  126. {most_queue-2.1 → most_queue-2.3}/works/vacations/warmup.py +9 -9
  127. most_queue-2.1/most_queue/sim/utils/distribution_utils.py +0 -222
  128. most_queue-2.1/most_queue/sim/utils/exceptions.py +0 -37
  129. most_queue-2.1/tutorials/m_h2_h2warm.ipynb +0 -334
  130. most_queue-2.1/tutorials/mgn_takahasi_takami.ipynb +0 -302
  131. most_queue-2.1/tutorials/network_with_priorities.ipynb +0 -384
  132. most_queue-2.1/tutorials/priority_queue.ipynb +0 -376
  133. most_queue-2.1/tutorials/queue_sim.ipynb +0 -382
  134. {most_queue-2.1 → most_queue-2.3}/.gitignore +0 -0
  135. {most_queue-2.1 → most_queue-2.3}/.pre-commit-config.yaml +0 -0
  136. {most_queue-2.1 → most_queue-2.3}/LICENSE +0 -0
  137. {most_queue-2.1 → most_queue-2.3}/assets/1.gif +0 -0
  138. {most_queue-2.1 → most_queue-2.3}/assets/2.gif +0 -0
  139. {most_queue-2.1 → most_queue-2.3}/assets/3.gif +0 -0
  140. {most_queue-2.1 → most_queue-2.3}/assets/queue_long.png +0 -0
  141. {most_queue-2.1 → most_queue-2.3}/deploy.txt +0 -0
  142. {most_queue-2.1 → most_queue-2.3}/docs/Makefile +0 -0
  143. {most_queue-2.1 → most_queue-2.3}/docs/make.bat +0 -0
  144. {most_queue-2.1 → most_queue-2.3}/docs/source/conf.py +0 -0
  145. {most_queue-2.1 → most_queue-2.3}/docs/source/index.rst +0 -0
  146. {most_queue-2.1 → most_queue-2.3}/docs/source/modules.rst +0 -0
  147. {most_queue-2.1 → most_queue-2.3}/docs/source/most_queue.rst +0 -0
  148. {most_queue-2.1 → most_queue-2.3}/docs/source/most_queue.sim.rst +0 -0
  149. {most_queue-2.1 → most_queue-2.3}/docs/source/most_queue.theory.rst +0 -0
  150. {most_queue-2.1 → most_queue-2.3}/doctest-output/QS.gv +0 -0
  151. {most_queue-2.1 → most_queue-2.3}/googleb31d3dccb40f969f.html +0 -0
  152. {most_queue-2.1 → most_queue-2.3}/most_queue/__init__.py +0 -0
  153. {most_queue-2.1/most_queue/general → most_queue-2.3/most_queue/io}/__init__.py +0 -0
  154. {most_queue-2.1/most_queue/general → most_queue-2.3/most_queue/io}/plots.py +0 -0
  155. {most_queue-2.1/most_queue/general → most_queue-2.3/most_queue/io}/tables.py +0 -0
  156. {most_queue-2.1 → most_queue-2.3}/most_queue/misc/compare_fj_calc.py +0 -0
  157. /most_queue-2.1/most_queue/general/distribution_params.py → /most_queue-2.3/most_queue/random/utils/params.py +0 -0
  158. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/batch.py +0 -0
  159. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/fork_join.py +0 -0
  160. {most_queue-2.1/most_queue/sim/utils → most_queue-2.3/most_queue/sim/networks}/__init__.py +0 -0
  161. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/networks/base_network_sim.py +0 -0
  162. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/utils/phase.py +0 -0
  163. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/utils/qs_queue.py +0 -0
  164. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/utils/stats_update.py +0 -0
  165. {most_queue-2.1 → most_queue-2.3}/most_queue/sim/utils/tasks.py +0 -0
  166. {most_queue-2.1 → most_queue-2.3}/most_queue/structs.py +0 -0
  167. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/base_queue.py +0 -0
  168. {most_queue-2.1/most_queue/theory/closed → most_queue-2.3/most_queue/theory/batch}/__init__.py +0 -0
  169. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/batch/mm1.py +0 -0
  170. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/calc_params.py +0 -0
  171. {most_queue-2.1/most_queue/theory/fifo → most_queue-2.3/most_queue/theory/closed}/__init__.py +0 -0
  172. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/closed/engset.py +0 -0
  173. {most_queue-2.1/most_queue/theory/fork_join → most_queue-2.3/most_queue/theory/fifo}/__init__.py +0 -0
  174. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fifo/m_d_n.py +0 -0
  175. {most_queue-2.1/most_queue/theory/impatience → most_queue-2.3/most_queue/theory/fork_join}/__init__.py +0 -0
  176. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fork_join/m_m_n.py +0 -0
  177. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/fork_join/split_join.py +0 -0
  178. {most_queue-2.1/most_queue/theory/networks → most_queue-2.3/most_queue/theory/impatience}/__init__.py +0 -0
  179. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/impatience/mm1.py +0 -0
  180. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/negative/structs.py +0 -0
  181. {most_queue-2.1/most_queue/theory/networks/opt → most_queue-2.3/most_queue/theory/networks}/__init__.py +0 -0
  182. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/networks/base_network_calc.py +0 -0
  183. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/networks/network_viewer.py +0 -0
  184. {most_queue-2.1/most_queue/theory/priority → most_queue-2.3/most_queue/theory/networks/opt}/__init__.py +0 -0
  185. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/networks/opt/transition.py +0 -0
  186. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/networks/opt/transition_approx.py +0 -0
  187. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/networks/opt/transition_plus.py +0 -0
  188. {most_queue-2.1/most_queue/theory/priority/non_preemptive → most_queue-2.3/most_queue/theory/priority}/__init__.py +0 -0
  189. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/priority/mgn_invar_approx.py +0 -0
  190. {most_queue-2.1/most_queue/theory/priority/preemptive → most_queue-2.3/most_queue/theory/priority/non_preemptive}/__init__.py +0 -0
  191. {most_queue-2.1/most_queue/theory/utils → most_queue-2.3/most_queue/theory/priority/preemptive}/__init__.py +0 -0
  192. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/priority/preemptive/mg1.py +0 -0
  193. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/r_example.gexf +0 -0
  194. {most_queue-2.1/most_queue/theory/vacations → most_queue-2.3/most_queue/theory/utils}/__init__.py +0 -0
  195. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/binom_probs.py +0 -0
  196. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/conv.py +0 -0
  197. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/diff5dots.py +0 -0
  198. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/passage_time.py +0 -0
  199. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/residual.py +0 -0
  200. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/student_stat.py +0 -0
  201. {most_queue-2.1 → most_queue-2.3}/most_queue/theory/utils/utilization_approx.py +0 -0
  202. {most_queue-2.1/tests → most_queue-2.3/most_queue/theory/vacations}/__init__.py +0 -0
  203. {most_queue-2.1 → most_queue-2.3}/requirements.txt +0 -0
  204. {most_queue-2.1 → most_queue-2.3}/tests/Dockerfile +0 -0
  205. {most_queue-2.1/works → most_queue-2.3/tests}/__init__.py +0 -0
  206. {most_queue-2.1 → most_queue-2.3}/tests/default_params.yaml +0 -0
  207. {most_queue-2.1 → most_queue-2.3}/tests/run.sh +0 -0
  208. {most_queue-2.1 → most_queue-2.3}/tests/units/h2_params_cv_greater_than_exp.png +0 -0
  209. {most_queue-2.1 → most_queue-2.3}/tests/units/h2_params_cv_less_than_exp.png +0 -0
  210. {most_queue-2.1 → most_queue-2.3}/tests/units/test_v1_on_channels.py +0 -0
  211. {most_queue-2.1 → most_queue-2.3}/tests/units/test_v1_utlization_approx.py +0 -0
  212. {most_queue-2.1 → most_queue-2.3}/tests/units/v1_on_channels.png +0 -0
  213. {most_queue-2.1 → most_queue-2.3}/tests/units/v1_on_utilization_approx.png +0 -0
  214. {most_queue-2.1/works/negative_queues → most_queue-2.3/works}/__init__.py +0 -0
  215. {most_queue-2.1/works/vacations → most_queue-2.3/works/negative_queues}/__init__.py +0 -0
  216. {most_queue-2.1 → most_queue-2.3}/works/negative_queues/base_parameters.yaml +0 -0
  217. {most_queue-2.1 → most_queue-2.3}/works/vacations/base_parameters.yaml +0 -0
  218. {most_queue-2.1 → most_queue-2.3}/works/vacations/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: most_queue
3
- Version: 2.1
3
+ Version: 2.3
4
4
  Summary: Software package for calculation and simulation of queuing systems
5
5
  Project-URL: Homepage, https://github.com/xabarov/most-queue
6
6
  Author-email: Xabarov Roman <xabarov1985@gmail.com>
@@ -47,6 +47,36 @@ A Python package for simulating and analyzing queueing systems (QS) and networks
47
47
 
48
48
  ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/xabarov/most-queue)
49
49
 
50
+ ---
51
+ ### Most-Queue 2.0 Release Notes
52
+
53
+ 1. New similar API for both simulation and calculation classes:
54
+
55
+ ```python
56
+ # ... initialize NUM_OF_CHANNELS and other parameters ...
57
+
58
+ # run calculation
59
+ tt = MGnCalc(n=NUM_OF_CHANNELS)
60
+
61
+ tt.set_sources(l=ARRIVAL_RATE)
62
+ tt.set_servers(b=b)
63
+
64
+ calc_results = tt.run()
65
+
66
+ # run simulation
67
+ qs = QsSim(NUM_OF_CHANNELS)
68
+
69
+ qs.set_sources(ARRIVAL_RATE, "M")
70
+ qs.set_servers(gamma_params, "Gamma")
71
+
72
+ sim_results = qs.run(NUM_OF_JOBS)
73
+
74
+ ```
75
+
76
+ See more examples in [tests](https://github.com/xabarov/most-queue/blob/main/tests/) and [tutorials](https://github.com/xabarov/most-queue/tree/main/tutorials/) folders.
77
+
78
+ 2. Refactored code for better readability and maintainability.
79
+
50
80
  ---
51
81
 
52
82
  ### 🔍 Key Features
@@ -160,8 +190,8 @@ Most_queue consists of two main parts:
160
190
  ---
161
191
 
162
192
  ### 📁 Examples & Tutorials
163
- - Look [here](https://github.com/xabarov/most-queue/tree/main/tests) for examples
164
- - Look [here](https://github.com/xabarov/most-queue/tree/main/tutorials) for jupyter tutorials
193
+ - Look [tests](https://github.com/xabarov/most-queue/tree/main/tests) for examples with comparison of theoretical and simulation results.
194
+ - Look [tutorials](https://github.com/xabarov/most-queue/tree/main/tutorials) for jupyter tutorials
165
195
 
166
196
  ---
167
197
 
@@ -6,6 +6,36 @@ A Python package for simulating and analyzing queueing systems (QS) and networks
6
6
 
7
7
  ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/xabarov/most-queue)
8
8
 
9
+ ---
10
+ ### Most-Queue 2.0 Release Notes
11
+
12
+ 1. New similar API for both simulation and calculation classes:
13
+
14
+ ```python
15
+ # ... initialize NUM_OF_CHANNELS and other parameters ...
16
+
17
+ # run calculation
18
+ tt = MGnCalc(n=NUM_OF_CHANNELS)
19
+
20
+ tt.set_sources(l=ARRIVAL_RATE)
21
+ tt.set_servers(b=b)
22
+
23
+ calc_results = tt.run()
24
+
25
+ # run simulation
26
+ qs = QsSim(NUM_OF_CHANNELS)
27
+
28
+ qs.set_sources(ARRIVAL_RATE, "M")
29
+ qs.set_servers(gamma_params, "Gamma")
30
+
31
+ sim_results = qs.run(NUM_OF_JOBS)
32
+
33
+ ```
34
+
35
+ See more examples in [tests](https://github.com/xabarov/most-queue/blob/main/tests/) and [tutorials](https://github.com/xabarov/most-queue/tree/main/tutorials/) folders.
36
+
37
+ 2. Refactored code for better readability and maintainability.
38
+
9
39
  ---
10
40
 
11
41
  ### 🔍 Key Features
@@ -119,8 +149,8 @@ Most_queue consists of two main parts:
119
149
  ---
120
150
 
121
151
  ### 📁 Examples & Tutorials
122
- - Look [here](https://github.com/xabarov/most-queue/tree/main/tests) for examples
123
- - Look [here](https://github.com/xabarov/most-queue/tree/main/tutorials) for jupyter tutorials
152
+ - Look [tests](https://github.com/xabarov/most-queue/tree/main/tests) for examples with comparison of theoretical and simulation results.
153
+ - Look [tutorials](https://github.com/xabarov/most-queue/tree/main/tutorials) for jupyter tutorials
124
154
 
125
155
  ---
126
156
 
@@ -130,4 +160,4 @@ Contributions are welcome!
130
160
 
131
161
  - Open an [issue](https://github.com/xabarov/most-queue/issues) for bugs or suggestions.
132
162
  - Submit a pull request for feature enhancements.
133
- - Contact me at xabarov1985@gmail.com for questions.
163
+ - Contact me at xabarov1985@gmail.com for questions.
@@ -4,21 +4,21 @@ import matplotlib.pyplot as plt
4
4
  import numpy as np
5
5
  from tqdm import tqdm
6
6
 
7
- from most_queue.rand_distribution import GammaDistribution, H2Distribution
7
+ from most_queue.random.distributions import GammaDistribution, H2Distribution
8
8
 
9
9
  if __name__ == "__main__":
10
10
 
11
11
  # Входные данные
12
12
 
13
13
  b1 = 3 # мат. ожидание
14
- coev = 1.2 # коэффициент вариации
14
+ cv = 1.2 # коэффициент вариации
15
15
  a_s = 4 # ассиметрия
16
16
 
17
17
  # задаем начальные моменты распределения
18
18
 
19
19
  b = [0, 0, 0]
20
20
  b[0] = b1
21
- b[1] = pow(b[0], 2) * (1 + pow(coev, 2))
21
+ b[1] = pow(b[0], 2) * (1 + pow(cv, 2))
22
22
 
23
23
  # дисперсия
24
24
  D = b[1] - pow(b[0], 2)
@@ -9,7 +9,7 @@ from functools import lru_cache
9
9
  import numpy as np
10
10
  from scipy.misc import derivative
11
11
 
12
- from most_queue.rand_distribution import H2Distribution, H2Params
12
+ from most_queue.random.distributions import H2Distribution, H2Params
13
13
  from most_queue.theory.fifo.mgn_takahasi import MGnCalc, TakahashiTakamiParams
14
14
  from most_queue.theory.utils.conv import conv_moments
15
15
  from most_queue.theory.utils.transforms import lst_exp
@@ -5,7 +5,7 @@ Test summation of flows.
5
5
 
6
6
  import matplotlib.pyplot as plt
7
7
 
8
- from most_queue.rand_distribution import GammaDistribution
8
+ from most_queue.random.distributions import GammaDistribution
9
9
  from most_queue.sim.flow_sum import FlowSumSim
10
10
  from most_queue.theory.utils.flow_sum import SummatorNumeric
11
11
 
@@ -17,7 +17,7 @@ def test():
17
17
 
18
18
  # Задаем следующие параметры:
19
19
  n_nums = 10 # число суммируемых потоков
20
- coev = 0.74 # коэффициент вариации каждого потока
20
+ cv = 0.74 # коэффициент вариации каждого потока
21
21
  mean = 1 # среднее каждого потока
22
22
  num_of_jobs = 400000 # количество заявок для ИМ
23
23
  is_semi = False # True, если необходимо использовать метод семиинвариантов вместо H2
@@ -30,7 +30,7 @@ def test():
30
30
  # одинаково распределены
31
31
  a = []
32
32
  for i in range(n_nums):
33
- params1 = GammaDistribution.get_params_by_mean_and_coev(mean, coev)
33
+ params1 = GammaDistribution.get_params_by_mean_and_cv(mean, cv)
34
34
  a1 = GammaDistribution.calc_theory_moments(params1, 4)
35
35
  a.append(a1)
36
36
 
@@ -47,14 +47,14 @@ def test():
47
47
  # i - кол-во суммируемых потоков, j - номер начального момента
48
48
 
49
49
  # Расчет ошибок и отображение результатов
50
- coevs_sim = s_sim.coevs
51
- coevs_num = s.coevs
50
+ cvs_sim = s_sim.cvs
51
+ cvs_num = s.cvs
52
52
  errors1 = []
53
53
  errors2 = []
54
- errors_coev = []
54
+ errors_cv = []
55
55
 
56
56
  str_f = "{0:^18s}|{1:^10.3f}|{2:^10.3f}|{3:^10.3f}|{4:^10.3f}|{5:^10.3f}"
57
- print("{0:^18s}|{1:^10s}|{2:^10s}|{3:^10s}|{4:^10s}|{5:^10s}".format("-", "a1", "a2", "a3", "a4", "coev"))
57
+ print("{0:^18s}|{1:^10s}|{2:^10s}|{3:^10s}|{4:^10s}|{5:^10s}".format("-", "a1", "a2", "a3", "a4", "cv"))
58
58
  print("-" * 80)
59
59
 
60
60
  for i in range(n_nums - 1):
@@ -67,7 +67,7 @@ def test():
67
67
  s_sim.flows_[i][1],
68
68
  s_sim.flows_[i][2],
69
69
  s_sim.flows_[i][3],
70
- coevs_num[i],
70
+ cvs_num[i],
71
71
  )
72
72
  )
73
73
  print("-" * 80)
@@ -78,13 +78,13 @@ def test():
78
78
  s.flows_[i][1].real,
79
79
  s.flows_[i][2].real,
80
80
  s.flows_[i][3].real,
81
- coevs_sim[i],
81
+ cvs_sim[i],
82
82
  )
83
83
  )
84
84
  print("-" * 80)
85
85
  errors1.append(SummatorNumeric.get_error(s.flows_[i][0].real, s_sim.flows_[i][0]))
86
86
  errors2.append(SummatorNumeric.get_error(s.flows_[i][1].real, s_sim.flows_[i][1]))
87
- errors_coev.append(SummatorNumeric.get_error(coevs_num[i], coevs_sim[i]))
87
+ errors_cv.append(SummatorNumeric.get_error(cvs_num[i], cvs_sim[i]))
88
88
 
89
89
  fig, ax = plt.subplots()
90
90
  linestyles = ["solid", "dotted", "dashed", "dashdot"]
@@ -104,7 +104,7 @@ def test():
104
104
  fig, ax = plt.subplots()
105
105
  ax.plot(ns, errors1, label="error a1", linestyle=linestyles[0])
106
106
  ax.plot(ns, errors2, label="error a2", linestyle=linestyles[1])
107
- ax.plot(ns, errors_coev, label="error coev", linestyle=linestyles[2])
107
+ ax.plot(ns, errors_cv, label="error cv", linestyle=linestyles[2])
108
108
 
109
109
  plt.legend()
110
110
  str_title = "Отн. ошибка от числа сумм-х потоков, %"
@@ -9,13 +9,13 @@ import time
9
9
  import numpy as np
10
10
 
11
11
  from most_queue.misc.vacations_paper_utils import (
12
- calc_moments_by_mean_and_coev,
12
+ calc_moments_by_mean_and_cv,
13
13
  dump_stat,
14
14
  load_stat,
15
15
  make_plot,
16
16
  print_table,
17
17
  )
18
- from most_queue.rand_distribution import GammaDistribution
18
+ from most_queue.random.distributions import GammaDistribution
19
19
  from most_queue.sim.vacations import VacationQueueingSystemSimulator
20
20
  from most_queue.theory.vacations.mgn_with_h2_delay_cold_warm import (
21
21
  MGnH2ServingColdWarmDelay,
@@ -144,13 +144,13 @@ def get_tt_stat(stat, n, l, buff, b, b_c, b_w, b_d, p_limit, w_pls_dt, stable_w_
144
144
 
145
145
  def run_ro(
146
146
  b1_service,
147
- coev_service,
147
+ cv_service,
148
148
  b1_warm,
149
- coev_warm,
149
+ cv_warm,
150
150
  b1_cold,
151
- coev_cold,
151
+ cv_cold,
152
152
  b1_cold_delay,
153
- coev_cold_delay,
153
+ cv_cold_delay,
154
154
  n=1,
155
155
  num_of_jobs=300000,
156
156
  num_of_roes=12,
@@ -168,16 +168,16 @@ def run_ro(
168
168
  Parameters:
169
169
  ----------
170
170
  b1_service: mean service time
171
- coev_service: service time coefficient of variation
171
+ cv_service: service time coefficient of variation
172
172
 
173
173
  b1_warm: setup (or "warm-up ") mean time
174
- coev_warm: warm-up coefficient of variation
174
+ cv_warm: warm-up coefficient of variation
175
175
 
176
176
  b1_cold: vacation (or "cooling") mean time
177
- coev_cold: vacation (or "cooling") coefficient of variation
177
+ cv_cold: vacation (or "cooling") coefficient of variation
178
178
 
179
179
  b1_cold_delay: average cooling start delay time
180
- coev_cold_delay: coefficient of variation of cooling start delay
180
+ cv_cold_delay: coefficient of variation of cooling start delay
181
181
 
182
182
  n: number of channels
183
183
  num_of_jobs - number of jobs for the simulation model
@@ -214,22 +214,22 @@ def run_ro(
214
214
  stat["ro"] = ro
215
215
  stat["n"] = n
216
216
 
217
- b = calc_moments_by_mean_and_coev(b1_service, coev_service)
218
- b_w = calc_moments_by_mean_and_coev(b1_warm, coev_warm)
219
- b_c = calc_moments_by_mean_and_coev(b1_cold, coev_cold)
220
- b_d = calc_moments_by_mean_and_coev(b1_cold_delay, coev_cold_delay)
217
+ b = calc_moments_by_mean_and_cv(b1_service, cv_service)
218
+ b_w = calc_moments_by_mean_and_cv(b1_warm, cv_warm)
219
+ b_c = calc_moments_by_mean_and_cv(b1_cold, cv_cold)
220
+ b_d = calc_moments_by_mean_and_cv(b1_cold_delay, cv_cold_delay)
221
221
 
222
222
  stat["b"] = b
223
- stat["coev_service"] = coev_service
223
+ stat["cv_service"] = cv_service
224
224
 
225
225
  stat["b_w"] = b_w
226
- stat["coev_warm"] = coev_warm
226
+ stat["cv_warm"] = cv_warm
227
227
 
228
228
  stat["b_c"] = b_c
229
- stat["coev_cold"] = coev_cold
229
+ stat["cv_cold"] = cv_cold
230
230
 
231
231
  stat["b_d"] = b_d
232
- stat["coev_cold_delay"] = coev_cold_delay
232
+ stat["cv_cold_delay"] = cv_cold_delay
233
233
 
234
234
  get_tt_stat(
235
235
  stat,
@@ -255,13 +255,13 @@ def run_ro(
255
255
 
256
256
  def run_n(
257
257
  b1_service,
258
- coev_service,
258
+ cv_service,
259
259
  b1_warm,
260
- coev_warm,
260
+ cv_warm,
261
261
  b1_cold,
262
- coev_cold,
262
+ cv_cold,
263
263
  b1_cold_delay,
264
- coev_cold_delay,
264
+ cv_cold_delay,
265
265
  num_of_jobs=300000,
266
266
  ro=0.7,
267
267
  n_min=1,
@@ -279,16 +279,16 @@ def run_n(
279
279
  ----------
280
280
 
281
281
  b1_service: mean service time
282
- coev_service: service time coefficient of variation
282
+ cv_service: service time coefficient of variation
283
283
 
284
284
  b1_warm: setup (or "warm-up ") mean time
285
- coev_warm: warm-up coefficient of variation
285
+ cv_warm: warm-up coefficient of variation
286
286
 
287
287
  b1_cold: vacation (or "cooling") mean time
288
- coev_cold: vacation (or "cooling") coefficient of variation
288
+ cv_cold: vacation (or "cooling") coefficient of variation
289
289
 
290
290
  b1_cold_delay: average cooling start delay time
291
- coev_cold_delay: coefficient of variation of cooling start delay
291
+ cv_cold_delay: coefficient of variation of cooling start delay
292
292
 
293
293
  ro - QS utilization factor
294
294
 
@@ -325,22 +325,22 @@ def run_n(
325
325
  stat["ro"] = ro
326
326
  stat["n"] = n
327
327
 
328
- b = calc_moments_by_mean_and_coev(b1_service, coev_service)
329
- b_w = calc_moments_by_mean_and_coev(b1_warm, coev_warm)
330
- b_c = calc_moments_by_mean_and_coev(b1_cold, coev_cold)
331
- b_d = calc_moments_by_mean_and_coev(b1_cold_delay, coev_cold_delay)
328
+ b = calc_moments_by_mean_and_cv(b1_service, cv_service)
329
+ b_w = calc_moments_by_mean_and_cv(b1_warm, cv_warm)
330
+ b_c = calc_moments_by_mean_and_cv(b1_cold, cv_cold)
331
+ b_d = calc_moments_by_mean_and_cv(b1_cold_delay, cv_cold_delay)
332
332
 
333
333
  stat["b"] = b
334
- stat["coev_service"] = coev_service
334
+ stat["cv_service"] = cv_service
335
335
 
336
336
  stat["b_w"] = b_w
337
- stat["coev_warm"] = coev_warm
337
+ stat["cv_warm"] = cv_warm
338
338
 
339
339
  stat["b_c"] = b_c
340
- stat["coev_cold"] = coev_cold
340
+ stat["cv_cold"] = cv_cold
341
341
 
342
342
  stat["b_d"] = b_d
343
- stat["coev_cold_delay"] = coev_cold_delay
343
+ stat["cv_cold_delay"] = cv_cold_delay
344
344
 
345
345
  get_tt_stat(
346
346
  stat,
@@ -366,12 +366,12 @@ def run_n(
366
366
 
367
367
  def run_delay_mean(
368
368
  b1_service,
369
- coev_service,
369
+ cv_service,
370
370
  b1_warm,
371
- coev_warm,
371
+ cv_warm,
372
372
  b1_cold,
373
- coev_cold,
374
- coev_cold_delay,
373
+ cv_cold,
374
+ cv_cold_delay,
375
375
  n=1,
376
376
  num_of_jobs=300000,
377
377
  ro=0.7,
@@ -390,15 +390,15 @@ def run_delay_mean(
390
390
  Parameters:
391
391
 
392
392
  b1_service: mean service time
393
- coev_service: service time coefficient of variation
393
+ cv_service: service time coefficient of variation
394
394
 
395
395
  b1_warm: setup (or "warm-up ") mean time
396
- coev_warm: warm-up coefficient of variation
396
+ cv_warm: warm-up coefficient of variation
397
397
 
398
398
  b1_cold: vacation (or "cooling") mean time
399
- coev_cold: vacation (or "cooling") coefficient of variation
399
+ cv_cold: vacation (or "cooling") coefficient of variation
400
400
 
401
- coev_cold_delay: coefficient of variation of cooling start delay
401
+ cv_cold_delay: coefficient of variation of cooling start delay
402
402
 
403
403
  n - number of channels
404
404
  num_of_jobs - number of jobs for the simulation model
@@ -434,22 +434,22 @@ def run_delay_mean(
434
434
  stat["ro"] = ro
435
435
  stat["n"] = n
436
436
 
437
- b = calc_moments_by_mean_and_coev(b1_service, coev_service)
438
- b_w = calc_moments_by_mean_and_coev(b1_warm, coev_warm)
439
- b_c = calc_moments_by_mean_and_coev(b1_cold, coev_cold)
440
- b_d = calc_moments_by_mean_and_coev(d, coev_cold_delay)
437
+ b = calc_moments_by_mean_and_cv(b1_service, cv_service)
438
+ b_w = calc_moments_by_mean_and_cv(b1_warm, cv_warm)
439
+ b_c = calc_moments_by_mean_and_cv(b1_cold, cv_cold)
440
+ b_d = calc_moments_by_mean_and_cv(d, cv_cold_delay)
441
441
 
442
442
  stat["b"] = b
443
- stat["coev_service"] = coev_service
443
+ stat["cv_service"] = cv_service
444
444
 
445
445
  stat["b_w"] = b_w
446
- stat["coev_warm"] = coev_warm
446
+ stat["cv_warm"] = cv_warm
447
447
 
448
448
  stat["b_c"] = b_c
449
- stat["coev_cold"] = coev_cold
449
+ stat["cv_cold"] = cv_cold
450
450
 
451
451
  stat["b_d"] = b_d
452
- stat["coev_cold_delay"] = coev_cold_delay
452
+ stat["cv_cold_delay"] = cv_cold_delay
453
453
 
454
454
  get_tt_stat(
455
455
  stat,
@@ -496,13 +496,13 @@ def test_all():
496
496
 
497
497
  ro_stat = run_ro(
498
498
  b1_service=10.0,
499
- coev_service=1.2,
499
+ cv_service=1.2,
500
500
  b1_warm=3.1,
501
- coev_warm=0.87,
501
+ cv_warm=0.87,
502
502
  b1_cold=4.1,
503
- coev_cold=1.1,
503
+ cv_cold=1.1,
504
504
  b1_cold_delay=3.71,
505
- coev_cold_delay=1.2,
505
+ cv_cold_delay=1.2,
506
506
  n=n,
507
507
  num_of_jobs=300000,
508
508
  num_of_roes=10,
@@ -530,13 +530,13 @@ def test_all():
530
530
 
531
531
  n_stat = run_n(
532
532
  b1_service=10.0,
533
- coev_service=1.2,
533
+ cv_service=1.2,
534
534
  b1_warm=3.1,
535
- coev_warm=0.87,
535
+ cv_warm=0.87,
536
536
  b1_cold=4.1,
537
- coev_cold=1.1,
537
+ cv_cold=1.1,
538
538
  b1_cold_delay=3.71,
539
- coev_cold_delay=1.2,
539
+ cv_cold_delay=1.2,
540
540
  num_of_jobs=300000,
541
541
  n_min=1,
542
542
  n_max=10,
@@ -566,13 +566,13 @@ def test_all():
566
566
 
567
567
  delay_stat = run_delay_mean(
568
568
  b1_service=10.0,
569
- coev_service=1.2,
569
+ cv_service=1.2,
570
570
  b1_warm=3.1,
571
- coev_warm=0.87,
571
+ cv_warm=0.87,
572
572
  b1_cold=4.1,
573
- coev_cold=1.1,
573
+ cv_cold=1.1,
574
574
  ro=ro,
575
- coev_cold_delay=1.2,
575
+ cv_cold_delay=1.2,
576
576
  n=n,
577
577
  num_of_jobs=1000000,
578
578
  num_of_delays=10,
@@ -599,13 +599,13 @@ if __name__ == "__main__":
599
599
  UTILIZATION = 0.7
600
600
  N_STAT = run_n(
601
601
  b1_service=10.0,
602
- coev_service=1.2,
602
+ cv_service=1.2,
603
603
  b1_warm=3.1,
604
- coev_warm=0.87,
604
+ cv_warm=0.87,
605
605
  b1_cold=4.1,
606
- coev_cold=1.1,
606
+ cv_cold=1.1,
607
607
  b1_cold_delay=3.71,
608
- coev_cold_delay=1.2,
608
+ cv_cold_delay=1.2,
609
609
  num_of_jobs=300000,
610
610
  n_min=1,
611
611
  n_max=10,
@@ -7,8 +7,8 @@ import os
7
7
  import numpy as np
8
8
  import yaml
9
9
 
10
- from most_queue.general.tables import times_print
11
- from most_queue.rand_distribution import GammaDistribution
10
+ from most_queue.io.tables import times_print
11
+ from most_queue.random.distributions import GammaDistribution
12
12
  from most_queue.sim.fork_join_delta import ForkJoinSimDelta
13
13
  from most_queue.theory.fork_join.split_join import SplitJoinCalc
14
14
 
@@ -44,9 +44,9 @@ def test_fj_delta():
44
44
  Test for ForkJoin queue with delta.
45
45
  """
46
46
 
47
- b_params = GammaDistribution.get_params_by_mean_and_coev(SERVICE_TIME_AVERAGE, SERVICE_TIME_CV)
47
+ b_params = GammaDistribution.get_params_by_mean_and_cv(SERVICE_TIME_AVERAGE, SERVICE_TIME_CV)
48
48
 
49
- delta_params = GammaDistribution.get_params_by_mean_and_coev(SERVICE_TIME_DELTA_AVERAGE, SERVICE_TIME_CV)
49
+ delta_params = GammaDistribution.get_params_by_mean_and_cv(SERVICE_TIME_DELTA_AVERAGE, SERVICE_TIME_CV)
50
50
  b_delta = GammaDistribution.calc_theory_moments(delta_params)
51
51
  b = GammaDistribution.calc_theory_moments(b_params)
52
52
 
@@ -4,7 +4,7 @@ Test the NetworkOptimizerWithApprox class.
4
4
 
5
5
  import numpy as np
6
6
 
7
- from most_queue.rand_distribution import ExpDistribution
7
+ from most_queue.random.distributions import ExpDistribution
8
8
  from most_queue.theory.networks.open_network import OpenNetworkCalc
9
9
  from most_queue.theory.networks.opt.transition_approx import NetworkOptimizerWithApprox
10
10
 
@@ -4,7 +4,7 @@ Test the NetworkOptimizerPlus class.
4
4
 
5
5
  import numpy as np
6
6
 
7
- from most_queue.rand_distribution import ExpDistribution
7
+ from most_queue.random.distributions import ExpDistribution
8
8
  from most_queue.theory.networks.open_network import OpenNetworkCalc
9
9
  from most_queue.theory.networks.opt.transition_plus import NetworkOptimizerPlus, Strategy
10
10
 
@@ -7,7 +7,7 @@ import math
7
7
 
8
8
  import matplotlib.pyplot as plt
9
9
 
10
- from most_queue.general.tables import probs_print, times_print
10
+ from most_queue.io.tables import probs_print, times_print
11
11
 
12
12
 
13
13
  def print_table(experiments_stat):
@@ -24,10 +24,10 @@ def print_table(experiments_stat):
24
24
  print(f"Utilization factor: {stat['ro']:0.2f}")
25
25
  # Service time coefficients of variation
26
26
  coeff_variants = [
27
- ("Service", stat["coev_service"]),
28
- ("Warm-up", stat["coev_warm"]),
29
- ("Cooling", stat["coev_cold"]),
30
- ("Cooling delay", stat["coev_cold_delay"]),
27
+ ("Service", stat["cv_service"]),
28
+ ("Warm-up", stat["cv_warm"]),
29
+ ("Cooling", stat["cv_cold"]),
30
+ ("Cooling delay", stat["cv_cold_delay"]),
31
31
  ]
32
32
 
33
33
  for label, value in coeff_variants:
@@ -111,7 +111,7 @@ def make_plot(experiments_stat, w_moments_num=0, param_name="ro", mode="error",
111
111
 
112
112
  if param_name == "ro":
113
113
  ax.set_xlabel(r"$\rho$")
114
- elif param_name == "coev":
114
+ elif param_name == "cv":
115
115
  ax.set_xlabel(r"$\nu$")
116
116
  elif param_name == "n":
117
117
  ax.set_xlabel("n")