jijmodeling 0.10.18__cp310-cp310-win_amd64.whl → 1.11.0__cp310-cp310-win_amd64.whl

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 jijmodeling might be problematic. Click here for more details.

Files changed (273) hide show
  1. jijmodeling/__init__.py +1 -148
  2. jijmodeling/__init__.pyi +5152 -0
  3. jijmodeling/_jijmodeling.cp310-win_amd64.pyd +0 -0
  4. jijmodeling/dataset.py +5 -0
  5. jijmodeling/dataset.pyi +106 -0
  6. jijmodeling/experimental.py +13 -0
  7. jijmodeling/experimental.pyi +302 -0
  8. jijmodeling/py.typed +0 -0
  9. jijmodeling/range/__init__.py +14 -0
  10. jijmodeling/range/__init__.pyi +56 -0
  11. jijmodeling/range/size.py +14 -0
  12. jijmodeling/range/size.pyi +54 -0
  13. jijmodeling/range/value.py +14 -0
  14. jijmodeling/range/value.pyi +54 -0
  15. jijmodeling-1.11.0.dist-info/METADATA +235 -0
  16. jijmodeling-1.11.0.dist-info/RECORD +18 -0
  17. {jijmodeling-0.10.18.dist-info → jijmodeling-1.11.0.dist-info}/WHEEL +1 -2
  18. {jijmodeling-0.10.18.dist-info → jijmodeling-1.11.0.dist-info/licenses}/LICENSE.txt +1 -1
  19. jijmodeling/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  20. jijmodeling/__pycache__/__init__.cpython-310.pyc +0 -0
  21. jijmodeling/__pycache__/_version.cpython-310.opt-1.pyc +0 -0
  22. jijmodeling/__pycache__/_version.cpython-310.pyc +0 -0
  23. jijmodeling/_version.py +0 -4
  24. jijmodeling/exceptions/__init__.py +0 -26
  25. jijmodeling/exceptions/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  26. jijmodeling/exceptions/__pycache__/__init__.cpython-310.pyc +0 -0
  27. jijmodeling/exceptions/__pycache__/exceptions.cpython-310.opt-1.pyc +0 -0
  28. jijmodeling/exceptions/__pycache__/exceptions.cpython-310.pyc +0 -0
  29. jijmodeling/exceptions/exceptions.py +0 -37
  30. jijmodeling/expression/__init__.py +0 -74
  31. jijmodeling/expression/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  32. jijmodeling/expression/__pycache__/__init__.cpython-310.pyc +0 -0
  33. jijmodeling/expression/__pycache__/condition.cpython-310.opt-1.pyc +0 -0
  34. jijmodeling/expression/__pycache__/condition.cpython-310.pyc +0 -0
  35. jijmodeling/expression/__pycache__/constraint.cpython-310.opt-1.pyc +0 -0
  36. jijmodeling/expression/__pycache__/constraint.cpython-310.pyc +0 -0
  37. jijmodeling/expression/__pycache__/expression.cpython-310.opt-1.pyc +0 -0
  38. jijmodeling/expression/__pycache__/expression.cpython-310.pyc +0 -0
  39. jijmodeling/expression/__pycache__/extract.cpython-310.opt-1.pyc +0 -0
  40. jijmodeling/expression/__pycache__/extract.cpython-310.pyc +0 -0
  41. jijmodeling/expression/__pycache__/from_old_serializable.cpython-310.opt-1.pyc +0 -0
  42. jijmodeling/expression/__pycache__/from_old_serializable.cpython-310.pyc +0 -0
  43. jijmodeling/expression/__pycache__/mathfunc.cpython-310.opt-1.pyc +0 -0
  44. jijmodeling/expression/__pycache__/mathfunc.cpython-310.pyc +0 -0
  45. jijmodeling/expression/__pycache__/prod.cpython-310.opt-1.pyc +0 -0
  46. jijmodeling/expression/__pycache__/prod.cpython-310.pyc +0 -0
  47. jijmodeling/expression/__pycache__/serializable.cpython-310.opt-1.pyc +0 -0
  48. jijmodeling/expression/__pycache__/serializable.cpython-310.pyc +0 -0
  49. jijmodeling/expression/__pycache__/sum.cpython-310.opt-1.pyc +0 -0
  50. jijmodeling/expression/__pycache__/sum.cpython-310.pyc +0 -0
  51. jijmodeling/expression/__pycache__/type_annotations.cpython-310.opt-1.pyc +0 -0
  52. jijmodeling/expression/__pycache__/type_annotations.cpython-310.pyc +0 -0
  53. jijmodeling/expression/__pycache__/utils.cpython-310.opt-1.pyc +0 -0
  54. jijmodeling/expression/__pycache__/utils.cpython-310.pyc +0 -0
  55. jijmodeling/expression/condition.py +0 -362
  56. jijmodeling/expression/constraint.py +0 -340
  57. jijmodeling/expression/expression.py +0 -706
  58. jijmodeling/expression/extract.py +0 -139
  59. jijmodeling/expression/from_old_serializable.py +0 -133
  60. jijmodeling/expression/mathfunc.py +0 -269
  61. jijmodeling/expression/prod.py +0 -117
  62. jijmodeling/expression/serializable.py +0 -132
  63. jijmodeling/expression/sum.py +0 -197
  64. jijmodeling/expression/type_annotations.py +0 -50
  65. jijmodeling/expression/utils.py +0 -201
  66. jijmodeling/expression/variables/__init__.py +0 -35
  67. jijmodeling/expression/variables/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  68. jijmodeling/expression/variables/__pycache__/__init__.cpython-310.pyc +0 -0
  69. jijmodeling/expression/variables/__pycache__/deci_vars.cpython-310.opt-1.pyc +0 -0
  70. jijmodeling/expression/variables/__pycache__/deci_vars.cpython-310.pyc +0 -0
  71. jijmodeling/expression/variables/__pycache__/jagged_array.cpython-310.opt-1.pyc +0 -0
  72. jijmodeling/expression/variables/__pycache__/jagged_array.cpython-310.pyc +0 -0
  73. jijmodeling/expression/variables/__pycache__/placeholders.cpython-310.opt-1.pyc +0 -0
  74. jijmodeling/expression/variables/__pycache__/placeholders.cpython-310.pyc +0 -0
  75. jijmodeling/expression/variables/__pycache__/variable.cpython-310.opt-1.pyc +0 -0
  76. jijmodeling/expression/variables/__pycache__/variable.cpython-310.pyc +0 -0
  77. jijmodeling/expression/variables/deci_vars.py +0 -136
  78. jijmodeling/expression/variables/jagged_array.py +0 -73
  79. jijmodeling/expression/variables/placeholders.py +0 -107
  80. jijmodeling/expression/variables/variable.py +0 -485
  81. jijmodeling/latex_repr/__init__.py +0 -11
  82. jijmodeling/latex_repr/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  83. jijmodeling/latex_repr/__pycache__/__init__.cpython-310.pyc +0 -0
  84. jijmodeling/latex_repr/__pycache__/latex_repr.cpython-310.opt-1.pyc +0 -0
  85. jijmodeling/latex_repr/__pycache__/latex_repr.cpython-310.pyc +0 -0
  86. jijmodeling/latex_repr/__pycache__/problem_latex_repr.cpython-310.opt-1.pyc +0 -0
  87. jijmodeling/latex_repr/__pycache__/problem_latex_repr.cpython-310.pyc +0 -0
  88. jijmodeling/latex_repr/latex_repr.py +0 -243
  89. jijmodeling/latex_repr/problem_latex_repr.py +0 -209
  90. jijmodeling/marker/__marker__.cp310-win_amd64.pyd +0 -0
  91. jijmodeling/match/__init__.py +0 -19
  92. jijmodeling/match/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  93. jijmodeling/match/__pycache__/__init__.cpython-310.pyc +0 -0
  94. jijmodeling/match/__pycache__/condition_same.cpython-310.opt-1.pyc +0 -0
  95. jijmodeling/match/__pycache__/condition_same.cpython-310.pyc +0 -0
  96. jijmodeling/match/__pycache__/constraint_same.cpython-310.opt-1.pyc +0 -0
  97. jijmodeling/match/__pycache__/constraint_same.cpython-310.pyc +0 -0
  98. jijmodeling/match/__pycache__/expr_same.cpython-310.opt-1.pyc +0 -0
  99. jijmodeling/match/__pycache__/expr_same.cpython-310.pyc +0 -0
  100. jijmodeling/match/__pycache__/is_same_expr.cpython-310.opt-1.pyc +0 -0
  101. jijmodeling/match/__pycache__/is_same_expr.cpython-310.pyc +0 -0
  102. jijmodeling/match/__pycache__/penalty_same.cpython-310.opt-1.pyc +0 -0
  103. jijmodeling/match/__pycache__/penalty_same.cpython-310.pyc +0 -0
  104. jijmodeling/match/__pycache__/problem_same.cpython-310.opt-1.pyc +0 -0
  105. jijmodeling/match/__pycache__/problem_same.cpython-310.pyc +0 -0
  106. jijmodeling/match/__pycache__/replace.cpython-310.opt-1.pyc +0 -0
  107. jijmodeling/match/__pycache__/replace.cpython-310.pyc +0 -0
  108. jijmodeling/match/condition_same.py +0 -44
  109. jijmodeling/match/constraint_same.py +0 -53
  110. jijmodeling/match/expr_same.py +0 -32
  111. jijmodeling/match/is_same_expr.py +0 -304
  112. jijmodeling/match/penalty_same.py +0 -31
  113. jijmodeling/match/problem_same.py +0 -44
  114. jijmodeling/match/replace.py +0 -210
  115. jijmodeling/problem/__init__.py +0 -9
  116. jijmodeling/problem/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  117. jijmodeling/problem/__pycache__/__init__.cpython-310.pyc +0 -0
  118. jijmodeling/problem/__pycache__/problem.cpython-310.opt-1.pyc +0 -0
  119. jijmodeling/problem/__pycache__/problem.cpython-310.pyc +0 -0
  120. jijmodeling/problem/problem.py +0 -166
  121. jijmodeling/protobuf/__init__.py +0 -8
  122. jijmodeling/protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  123. jijmodeling/protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
  124. jijmodeling/protobuf/from_protobuf/__init__.py +0 -47
  125. jijmodeling/protobuf/from_protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  126. jijmodeling/protobuf/from_protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
  127. jijmodeling/protobuf/from_protobuf/__pycache__/extract_attribute_value_from_header.cpython-310.opt-1.pyc +0 -0
  128. jijmodeling/protobuf/from_protobuf/__pycache__/extract_attribute_value_from_header.cpython-310.pyc +0 -0
  129. jijmodeling/protobuf/from_protobuf/__pycache__/from_protobuf.cpython-310.opt-1.pyc +0 -0
  130. jijmodeling/protobuf/from_protobuf/__pycache__/from_protobuf.cpython-310.pyc +0 -0
  131. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_array_shape.cpython-310.opt-1.pyc +0 -0
  132. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_array_shape.cpython-310.pyc +0 -0
  133. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_op.cpython-310.opt-1.pyc +0 -0
  134. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_op.cpython-310.pyc +0 -0
  135. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_var.cpython-310.opt-1.pyc +0 -0
  136. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_var.cpython-310.pyc +0 -0
  137. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_constraint.cpython-310.opt-1.pyc +0 -0
  138. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_constraint.cpython-310.pyc +0 -0
  139. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_element.cpython-310.opt-1.pyc +0 -0
  140. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_element.cpython-310.pyc +0 -0
  141. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_expression.cpython-310.opt-1.pyc +0 -0
  142. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_expression.cpython-310.pyc +0 -0
  143. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_forall.cpython-310.opt-1.pyc +0 -0
  144. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_forall.cpython-310.pyc +0 -0
  145. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_integer_var.cpython-310.opt-1.pyc +0 -0
  146. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_integer_var.cpython-310.pyc +0 -0
  147. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_jagged_array.cpython-310.opt-1.pyc +0 -0
  148. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_jagged_array.cpython-310.pyc +0 -0
  149. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_number_lit.cpython-310.opt-1.pyc +0 -0
  150. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_number_lit.cpython-310.pyc +0 -0
  151. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_penalty.cpython-310.opt-1.pyc +0 -0
  152. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_penalty.cpython-310.pyc +0 -0
  153. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_placeholder.cpython-310.opt-1.pyc +0 -0
  154. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_placeholder.cpython-310.pyc +0 -0
  155. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_problem.cpython-310.opt-1.pyc +0 -0
  156. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_problem.cpython-310.pyc +0 -0
  157. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_reduction_op.cpython-310.opt-1.pyc +0 -0
  158. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_reduction_op.cpython-310.pyc +0 -0
  159. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_subscript_op.cpython-310.opt-1.pyc +0 -0
  160. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_subscript_op.cpython-310.pyc +0 -0
  161. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_unary_op.cpython-310.opt-1.pyc +0 -0
  162. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_unary_op.cpython-310.pyc +0 -0
  163. jijmodeling/protobuf/from_protobuf/extract_attribute_value_from_header.py +0 -26
  164. jijmodeling/protobuf/from_protobuf/from_protobuf.py +0 -38
  165. jijmodeling/protobuf/from_protobuf/message_to_array_shape.py +0 -35
  166. jijmodeling/protobuf/from_protobuf/message_to_binary_op.py +0 -83
  167. jijmodeling/protobuf/from_protobuf/message_to_binary_var.py +0 -46
  168. jijmodeling/protobuf/from_protobuf/message_to_constraint.py +0 -48
  169. jijmodeling/protobuf/from_protobuf/message_to_element.py +0 -30
  170. jijmodeling/protobuf/from_protobuf/message_to_expression.py +0 -92
  171. jijmodeling/protobuf/from_protobuf/message_to_forall.py +0 -33
  172. jijmodeling/protobuf/from_protobuf/message_to_integer_var.py +0 -54
  173. jijmodeling/protobuf/from_protobuf/message_to_jagged_array.py +0 -25
  174. jijmodeling/protobuf/from_protobuf/message_to_number_lit.py +0 -41
  175. jijmodeling/protobuf/from_protobuf/message_to_penalty.py +0 -36
  176. jijmodeling/protobuf/from_protobuf/message_to_placeholder.py +0 -47
  177. jijmodeling/protobuf/from_protobuf/message_to_problem.py +0 -51
  178. jijmodeling/protobuf/from_protobuf/message_to_reduction_op.py +0 -52
  179. jijmodeling/protobuf/from_protobuf/message_to_subscript_op.py +0 -46
  180. jijmodeling/protobuf/from_protobuf/message_to_unary_op.py +0 -47
  181. jijmodeling/protobuf/to_protobuf/__init__.py +0 -43
  182. jijmodeling/protobuf/to_protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  183. jijmodeling/protobuf/to_protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
  184. jijmodeling/protobuf/to_protobuf/__pycache__/add_header_to_message.cpython-310.opt-1.pyc +0 -0
  185. jijmodeling/protobuf/to_protobuf/__pycache__/add_header_to_message.cpython-310.pyc +0 -0
  186. jijmodeling/protobuf/to_protobuf/__pycache__/array_shape_to_message.cpython-310.opt-1.pyc +0 -0
  187. jijmodeling/protobuf/to_protobuf/__pycache__/array_shape_to_message.cpython-310.pyc +0 -0
  188. jijmodeling/protobuf/to_protobuf/__pycache__/binary_op_to_message.cpython-310.opt-1.pyc +0 -0
  189. jijmodeling/protobuf/to_protobuf/__pycache__/binary_op_to_message.cpython-310.pyc +0 -0
  190. jijmodeling/protobuf/to_protobuf/__pycache__/binary_var_to_message.cpython-310.opt-1.pyc +0 -0
  191. jijmodeling/protobuf/to_protobuf/__pycache__/binary_var_to_message.cpython-310.pyc +0 -0
  192. jijmodeling/protobuf/to_protobuf/__pycache__/constraint_to_message.cpython-310.opt-1.pyc +0 -0
  193. jijmodeling/protobuf/to_protobuf/__pycache__/constraint_to_message.cpython-310.pyc +0 -0
  194. jijmodeling/protobuf/to_protobuf/__pycache__/element_to_message.cpython-310.opt-1.pyc +0 -0
  195. jijmodeling/protobuf/to_protobuf/__pycache__/element_to_message.cpython-310.pyc +0 -0
  196. jijmodeling/protobuf/to_protobuf/__pycache__/expression_to_message.cpython-310.opt-1.pyc +0 -0
  197. jijmodeling/protobuf/to_protobuf/__pycache__/expression_to_message.cpython-310.pyc +0 -0
  198. jijmodeling/protobuf/to_protobuf/__pycache__/forall_to_message.cpython-310.opt-1.pyc +0 -0
  199. jijmodeling/protobuf/to_protobuf/__pycache__/forall_to_message.cpython-310.pyc +0 -0
  200. jijmodeling/protobuf/to_protobuf/__pycache__/integer_var_to_message.cpython-310.opt-1.pyc +0 -0
  201. jijmodeling/protobuf/to_protobuf/__pycache__/integer_var_to_message.cpython-310.pyc +0 -0
  202. jijmodeling/protobuf/to_protobuf/__pycache__/jagged_array_to_message.cpython-310.opt-1.pyc +0 -0
  203. jijmodeling/protobuf/to_protobuf/__pycache__/jagged_array_to_message.cpython-310.pyc +0 -0
  204. jijmodeling/protobuf/to_protobuf/__pycache__/number_lit_to_message.cpython-310.opt-1.pyc +0 -0
  205. jijmodeling/protobuf/to_protobuf/__pycache__/number_lit_to_message.cpython-310.pyc +0 -0
  206. jijmodeling/protobuf/to_protobuf/__pycache__/penalty_to_message.cpython-310.opt-1.pyc +0 -0
  207. jijmodeling/protobuf/to_protobuf/__pycache__/penalty_to_message.cpython-310.pyc +0 -0
  208. jijmodeling/protobuf/to_protobuf/__pycache__/placeholder_to_message.cpython-310.opt-1.pyc +0 -0
  209. jijmodeling/protobuf/to_protobuf/__pycache__/placeholder_to_message.cpython-310.pyc +0 -0
  210. jijmodeling/protobuf/to_protobuf/__pycache__/problem_to_message.cpython-310.opt-1.pyc +0 -0
  211. jijmodeling/protobuf/to_protobuf/__pycache__/problem_to_message.cpython-310.pyc +0 -0
  212. jijmodeling/protobuf/to_protobuf/__pycache__/reduction_op_to_message.cpython-310.opt-1.pyc +0 -0
  213. jijmodeling/protobuf/to_protobuf/__pycache__/reduction_op_to_message.cpython-310.pyc +0 -0
  214. jijmodeling/protobuf/to_protobuf/__pycache__/subscript_op_to_message.cpython-310.opt-1.pyc +0 -0
  215. jijmodeling/protobuf/to_protobuf/__pycache__/subscript_op_to_message.cpython-310.pyc +0 -0
  216. jijmodeling/protobuf/to_protobuf/__pycache__/to_protobuf.cpython-310.opt-1.pyc +0 -0
  217. jijmodeling/protobuf/to_protobuf/__pycache__/to_protobuf.cpython-310.pyc +0 -0
  218. jijmodeling/protobuf/to_protobuf/__pycache__/unary_op_to_message.cpython-310.opt-1.pyc +0 -0
  219. jijmodeling/protobuf/to_protobuf/__pycache__/unary_op_to_message.cpython-310.pyc +0 -0
  220. jijmodeling/protobuf/to_protobuf/add_header_to_message.py +0 -35
  221. jijmodeling/protobuf/to_protobuf/array_shape_to_message.py +0 -43
  222. jijmodeling/protobuf/to_protobuf/binary_op_to_message.py +0 -101
  223. jijmodeling/protobuf/to_protobuf/binary_var_to_message.py +0 -49
  224. jijmodeling/protobuf/to_protobuf/constraint_to_message.py +0 -52
  225. jijmodeling/protobuf/to_protobuf/element_to_message.py +0 -43
  226. jijmodeling/protobuf/to_protobuf/expression_to_message.py +0 -89
  227. jijmodeling/protobuf/to_protobuf/forall_to_message.py +0 -32
  228. jijmodeling/protobuf/to_protobuf/integer_var_to_message.py +0 -54
  229. jijmodeling/protobuf/to_protobuf/jagged_array_to_message.py +0 -37
  230. jijmodeling/protobuf/to_protobuf/number_lit_to_message.py +0 -52
  231. jijmodeling/protobuf/to_protobuf/penalty_to_message.py +0 -42
  232. jijmodeling/protobuf/to_protobuf/placeholder_to_message.py +0 -58
  233. jijmodeling/protobuf/to_protobuf/problem_to_message.py +0 -54
  234. jijmodeling/protobuf/to_protobuf/reduction_op_to_message.py +0 -64
  235. jijmodeling/protobuf/to_protobuf/subscript_op_to_message.py +0 -48
  236. jijmodeling/protobuf/to_protobuf/to_protobuf.py +0 -36
  237. jijmodeling/protobuf/to_protobuf/unary_op_to_message.py +0 -58
  238. jijmodeling/sampleset/__init__.py +0 -33
  239. jijmodeling/sampleset/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  240. jijmodeling/sampleset/__pycache__/__init__.cpython-310.pyc +0 -0
  241. jijmodeling/sampleset/__pycache__/evaluation.cpython-310.opt-1.pyc +0 -0
  242. jijmodeling/sampleset/__pycache__/evaluation.cpython-310.pyc +0 -0
  243. jijmodeling/sampleset/__pycache__/measuring_time.cpython-310.opt-1.pyc +0 -0
  244. jijmodeling/sampleset/__pycache__/measuring_time.cpython-310.pyc +0 -0
  245. jijmodeling/sampleset/__pycache__/record.cpython-310.opt-1.pyc +0 -0
  246. jijmodeling/sampleset/__pycache__/record.cpython-310.pyc +0 -0
  247. jijmodeling/sampleset/__pycache__/sampleset.cpython-310.opt-1.pyc +0 -0
  248. jijmodeling/sampleset/__pycache__/sampleset.cpython-310.pyc +0 -0
  249. jijmodeling/sampleset/__pycache__/solving_time.cpython-310.opt-1.pyc +0 -0
  250. jijmodeling/sampleset/__pycache__/solving_time.cpython-310.pyc +0 -0
  251. jijmodeling/sampleset/__pycache__/system_time.cpython-310.opt-1.pyc +0 -0
  252. jijmodeling/sampleset/__pycache__/system_time.cpython-310.pyc +0 -0
  253. jijmodeling/sampleset/evaluation.py +0 -288
  254. jijmodeling/sampleset/measuring_time.py +0 -59
  255. jijmodeling/sampleset/record.py +0 -158
  256. jijmodeling/sampleset/sampleset.py +0 -379
  257. jijmodeling/sampleset/solving_time.py +0 -38
  258. jijmodeling/sampleset/system_time.py +0 -48
  259. jijmodeling/type_annotations/__init__.py +0 -44
  260. jijmodeling/type_annotations/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  261. jijmodeling/type_annotations/__pycache__/__init__.cpython-310.pyc +0 -0
  262. jijmodeling/type_annotations/__pycache__/type_annotations.cpython-310.opt-1.pyc +0 -0
  263. jijmodeling/type_annotations/__pycache__/type_annotations.cpython-310.pyc +0 -0
  264. jijmodeling/type_annotations/type_annotations.py +0 -54
  265. jijmodeling/utils/__init__.py +0 -28
  266. jijmodeling/utils/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  267. jijmodeling/utils/__pycache__/__init__.cpython-310.pyc +0 -0
  268. jijmodeling/utils/__pycache__/utils.cpython-310.opt-1.pyc +0 -0
  269. jijmodeling/utils/__pycache__/utils.cpython-310.pyc +0 -0
  270. jijmodeling/utils/utils.py +0 -146
  271. jijmodeling-0.10.18.dist-info/METADATA +0 -60
  272. jijmodeling-0.10.18.dist-info/RECORD +0 -258
  273. jijmodeling-0.10.18.dist-info/top_level.txt +0 -1
@@ -1,92 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import Union
4
-
5
- import jijmodeling_schema as pb
6
-
7
- from jijmodeling.expression.condition import Condition
8
- from jijmodeling.expression.expression import Expression
9
- from jijmodeling.expression.variables.variable import Range
10
- from jijmodeling.protobuf.from_protobuf.message_to_array_shape import (
11
- message_to_array_shape,
12
- )
13
- from jijmodeling.protobuf.from_protobuf.message_to_binary_op import message_to_binary_op
14
- from jijmodeling.protobuf.from_protobuf.message_to_binary_var import (
15
- message_to_binary_var,
16
- )
17
- from jijmodeling.protobuf.from_protobuf.message_to_element import message_to_element
18
- from jijmodeling.protobuf.from_protobuf.message_to_integer_var import (
19
- message_to_integer_var,
20
- )
21
- from jijmodeling.protobuf.from_protobuf.message_to_jagged_array import (
22
- message_to_jagged_array,
23
- )
24
- from jijmodeling.protobuf.from_protobuf.message_to_number_lit import (
25
- message_to_number_lit,
26
- )
27
- from jijmodeling.protobuf.from_protobuf.message_to_placeholder import (
28
- message_to_placeholder,
29
- )
30
- from jijmodeling.protobuf.from_protobuf.message_to_reduction_op import (
31
- message_to_reduction_op,
32
- )
33
- from jijmodeling.protobuf.from_protobuf.message_to_subscript_op import (
34
- message_to_subscript_op,
35
- )
36
- from jijmodeling.protobuf.from_protobuf.message_to_unary_op import message_to_unary_op
37
-
38
-
39
- def message_to_expression(
40
- expression: pb.Expression,
41
- ) -> Union[Expression, Range, Condition]:
42
- """
43
- Convert a message object to a `Expression` object.
44
-
45
- Args:
46
- expression (pb.Expression): a `Expression` message
47
-
48
- Raises:
49
- RuntimeError: the error occurs if the massage cannot be converted to an object that is a subclass of the `Expression` class
50
-
51
- Returns:
52
- Expression: an instance object that is a subclass of the `Expression` class
53
- """
54
- # Get the id that the message has.
55
- id = expression.id
56
-
57
- # Get the `Expression` object from the field inside the oneof.
58
- expr_attr = pb.betterproto.which_one_of(expression.kind, "kind")[1]
59
-
60
- if type(expr_attr) is pb.NumberLit:
61
- return message_to_number_lit(id, expr_attr)
62
- elif type(expr_attr) is pb.Placeholder:
63
- shape = expression.children
64
- return message_to_placeholder(id, expr_attr, shape)
65
- elif type(expr_attr) is pb.ArrayShape:
66
- array = expression.children[0]
67
- return message_to_array_shape(id, expr_attr, array)
68
- elif type(expr_attr) is pb.Element:
69
- parent = expression.children[0]
70
- return message_to_element(id, expr_attr, parent)
71
- elif type(expr_attr) is pb.JaggedArray:
72
- return message_to_jagged_array(id, expr_attr)
73
- elif type(expr_attr) is pb.BinaryVar:
74
- shape = expression.children
75
- return message_to_binary_var(id, expr_attr, shape)
76
- elif type(expr_attr) is pb.IntegerVar:
77
- return message_to_integer_var(id, expr_attr, expression.children)
78
- elif type(expr_attr) is pb.UnaryOp:
79
- operand = expression.children[0]
80
- return message_to_unary_op(id, expr_attr, operand)
81
- elif type(expr_attr) is pb.BinaryOp:
82
- left = expression.children[0]
83
- right = expression.children[1]
84
- return message_to_binary_op(id, expr_attr, left, right)
85
- elif type(expr_attr) is pb.SubscriptOp:
86
- return message_to_subscript_op(id, expr_attr, expression.children)
87
- elif type(expr_attr) is pb.ReductionOp:
88
- return message_to_reduction_op(id, expr_attr, expression.children)
89
- else:
90
- raise RuntimeError(
91
- f"cannot convert the {expr_attr.__class__.__name__} object into the instance object according to the class in JijModeling"
92
- )
@@ -1,33 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import Optional, Tuple
4
-
5
- import jijmodeling_schema as pb
6
-
7
- from jijmodeling.expression.condition import Condition
8
- from jijmodeling.expression.variables.variable import Element
9
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
10
- message_to_expression,
11
- )
12
-
13
-
14
- def message_to_forall(forall: pb.Forall) -> Tuple[Element, Optional[Condition]]:
15
- """
16
- Convert a `Forall` message into a `forall` object.
17
-
18
- Args:
19
- forall (pb.Forall): a `Forall` message
20
-
21
- Returns:
22
- Tuple[Element, Optional[Condition]]: objects to make the `forall` object
23
- """
24
- # Set the element.
25
- element = message_to_expression(forall.element)
26
-
27
- # Set the condition expression.
28
- is_none_condition = (
29
- pb.betterproto.which_one_of(forall.condition.kind, "kind")[1] is None
30
- )
31
- condition = None if is_none_condition else message_to_expression(forall.condition)
32
-
33
- return (element, condition)
@@ -1,54 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import List
4
-
5
- import jijmodeling_schema as pb
6
-
7
- from jijmodeling.expression.variables.deci_vars import Integer
8
-
9
-
10
- def message_to_integer_var(
11
- id: str, message: pb.IntegerVar, children: List[pb.Expression]
12
- ) -> Integer:
13
- """
14
- Convert a message to an `Integer` object.
15
-
16
- Args:
17
- id (str): the id of the `Integer` object
18
- message (pb.IntegerVar): the `IntegerVar` message
19
- children (List[pb.Expression]): 0: lower bound, 1: upper bound, 2..: the shape of the `Integer` object
20
-
21
- Raises:
22
- ValueError: the error occurs if `dim` is not equal to length of the shape
23
-
24
- Returns:
25
- Integer: an `Integer` object
26
- """
27
- # Validate length of the shape.
28
- if message.dim + 2 != len(children):
29
- raise ValueError("invalid length of the shape")
30
-
31
- # Set the symbol.
32
- symbol = message.symbol
33
-
34
- # NOTE: Import a module within a local scope to fix a circular import.
35
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
36
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
37
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
38
- message_to_expression,
39
- )
40
-
41
- # Set the lower.
42
- lower = message_to_expression(children[0])
43
-
44
- # Set the upper.
45
- upper = message_to_expression(children[1])
46
-
47
- # Set the shape.
48
- shape_element_list = [
49
- message_to_expression(shape_element) for shape_element in children[2:]
50
- ]
51
-
52
- return Integer(
53
- label=symbol, lower=lower, upper=upper, shape=shape_element_list, uuid=id
54
- )
@@ -1,25 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.variables.jagged_array import JaggedArray
6
-
7
-
8
- def message_to_jagged_array(id: str, message: pb.JaggedArray) -> JaggedArray:
9
- """
10
- Convert a message to a `JaggedArray` object.
11
-
12
- Args:
13
- id (str): the id of the `JaggedArray` object
14
- message (pb.JaggedArray): the `JaggedArray` message
15
-
16
- Returns:
17
- JaggedArray: a `JaggedArray` object
18
- """
19
- # Set the symbol.
20
- symbol = message.symbol
21
-
22
- # Set the number of dimensions.
23
- dim = message.dim
24
-
25
- return JaggedArray(label=symbol, dim=dim, uuid=id)
@@ -1,41 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import struct
4
-
5
- import jijmodeling_schema as pb
6
-
7
- from jijmodeling.expression.expression import DataType, Number
8
-
9
-
10
- def message_to_number_lit(id: str, message: pb.NumberLit) -> Number:
11
- """
12
- Convert a message to a `Number` object.
13
-
14
- Args:
15
- message (pb.NumberLit): the `NumberLit` message
16
- id (str): the id of the `Number` object
17
-
18
- Returns:
19
- Number: a `Number` object
20
- """
21
- # Check the type that the number literal object has.
22
- # Case: integer
23
- if message.type == pb.NumberLitType.INTEGER:
24
- # Set the value type to `FLOAT`.
25
- dtype = DataType.INT
26
- # Set the integer value.
27
- value = struct.unpack(
28
- ">q",
29
- message.value.to_bytes(length=struct.calcsize(">q"), byteorder="big"),
30
- )[0]
31
- # Case: float
32
- elif message.type == pb.NumberLitType.FLOAT:
33
- # Set the value type to `FLOAT`.
34
- dtype = DataType.FLOAT
35
- # Convert the bits to a float value.
36
- value = struct.unpack(
37
- ">d",
38
- message.value.to_bytes(length=struct.calcsize(">d"), byteorder="big"),
39
- )[0]
40
-
41
- return Number(value=value, dtype=dtype, uuid=id)
@@ -1,36 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.constraint import Penalty
6
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
7
- message_to_expression,
8
- )
9
- from jijmodeling.protobuf.from_protobuf.message_to_forall import message_to_forall
10
-
11
-
12
- def message_to_penalty(penalty: pb.Penalty) -> Penalty:
13
- """
14
- Convert a `Penalty` message into a `Penalty` object.
15
-
16
- Args:
17
- penalty (pb.Penalty): a `Penalty` message
18
-
19
- Returns:
20
- Penalty: a `Penalty` object
21
- """
22
- # Set the name of the penalty.
23
- name = penalty.name
24
-
25
- # Set the penalty term.
26
- expr = message_to_expression(penalty.expression)
27
-
28
- # Set the list of forall.
29
- forall = [message_to_forall(forall) for forall in penalty.forall]
30
-
31
- return Penalty(
32
- label=name,
33
- penalty_term=expr,
34
- forall=forall,
35
- with_multiplier=penalty.needs_multiplier,
36
- )
@@ -1,47 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import List
4
-
5
- import jijmodeling_schema as pb
6
-
7
- from jijmodeling.expression.variables.placeholders import Placeholder
8
-
9
-
10
- def message_to_placeholder(
11
- id: str, message: pb.Placeholder, shape: List[pb.Expression]
12
- ) -> Placeholder:
13
- """
14
- Convert a message to a `Placeholder` object.
15
-
16
- Args:
17
- id (str): the id of the `Placeholder` object
18
- message (pb.Placeholder): the `Placeholder` message
19
- shape (List[pb.Expression]): the shape of the `Placeholder` object
20
-
21
- Returns:
22
- Placeholder: a `Placeholder` object
23
- """
24
- # Set the symbol.
25
- symbol = message.symbol
26
-
27
- # Set the number of dimensions.
28
- dim = message.dim
29
-
30
- # Set the shape.
31
- shape_list = []
32
- expr_idx = 0
33
- for shape_elt in message.shape:
34
- if shape_elt == pb.PlaceholderShapeElement.DYNAMIC:
35
- shape_list.append(None)
36
- else:
37
- # NOTE: Import a module within a local scope to fix a circular import.
38
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
39
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
40
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
41
- message_to_expression,
42
- )
43
-
44
- shape_list.append(message_to_expression(shape[expr_idx]))
45
- expr_idx = expr_idx + 1
46
-
47
- return Placeholder(label=symbol, dim=dim, uuid=id, shape=shape_list)
@@ -1,51 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.problem.problem import Problem, ProblemSense
6
- from jijmodeling.protobuf.from_protobuf.message_to_constraint import (
7
- message_to_constraint,
8
- )
9
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
10
- message_to_expression,
11
- )
12
- from jijmodeling.protobuf.from_protobuf.message_to_penalty import message_to_penalty
13
-
14
-
15
- def message_to_problem(problem: pb.Problem) -> Problem:
16
- """
17
- Convert a `Problem` message into a `Problem` object.
18
-
19
- Args:
20
- problem (pb.Problem): a `Problem` message
21
-
22
- Returns:
23
- Problem: a `Problem` object
24
- """
25
- # Set sense of the problem.
26
- if problem.sense == pb.ProblemSense.MIN:
27
- sense = ProblemSense.MINIMUM
28
- else:
29
- sense = ProblemSense.MAXIMUM
30
-
31
- # Set the objective function.
32
- objective = message_to_expression(problem.objective)
33
-
34
- # Set the constraints.
35
- constraints = {
36
- constraint.name: message_to_constraint(constraint)
37
- for constraint in problem.constraints
38
- }
39
-
40
- # Set the penalties.
41
- penalties = {
42
- penalty.name: message_to_penalty(penalty) for penalty in problem.penalties
43
- }
44
-
45
- return Problem(
46
- name=problem.name,
47
- sense=sense,
48
- objective=objective,
49
- constraints=constraints,
50
- penalties=penalties,
51
- )
@@ -1,52 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import List
4
-
5
- import jijmodeling_schema as pb
6
-
7
- from jijmodeling.expression.prod import ProdOperator
8
- from jijmodeling.expression.sum import ReductionOperator, SumOperator
9
-
10
-
11
- def message_to_reduction_op(
12
- id: str, message: pb.ReductionOp, children: List[pb.Expression]
13
- ) -> ReductionOperator:
14
- """
15
- Convert a message to a `ReductionOperator` object.
16
-
17
- Args:
18
- id (str): the id of the `ReductionOperator` object.
19
- message (pb.ReductionOp): the `ReductionOp` message
20
- children (List[pb.Expression]): 0: the index, 1: the operand, 2(optional): the condition expression
21
-
22
- Returns:
23
- ReductionOperator: a `ReductionOperator` object.
24
- """
25
- # NOTE: Import a module within a local scope to fix a circular import.
26
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
27
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
28
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
29
- message_to_expression,
30
- )
31
-
32
- # Set the index.
33
- index = message_to_expression(children[0])
34
-
35
- # Set the operand.
36
- operand = message_to_expression(children[1])
37
-
38
- # Check if the message has a condition expression.
39
- if message.has_condition:
40
- # Set the condition expression.
41
- condition = message_to_expression(children[2])
42
- else:
43
- condition = None
44
-
45
- if message.kind == pb.ReductionOpKind.SUM:
46
- return SumOperator(
47
- sum_index=index, operand=operand, condition=condition, uuid=id
48
- )
49
- elif message.kind == pb.ReductionOpKind.PROD:
50
- return ProdOperator(
51
- sum_index=index, operand=operand, condition=condition, uuid=id
52
- )
@@ -1,46 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import List
4
-
5
- import jijmodeling_schema as pb
6
-
7
- from jijmodeling.expression.variables.variable import Subscripts
8
-
9
-
10
- def message_to_subscript_op(
11
- id: str, message: pb.SubscriptOp, children: List[pb.Expression]
12
- ) -> Subscripts:
13
- """
14
- Convert a message to a `Subscripts` object.
15
-
16
- Args:
17
- id (str): the id of the `Subscripts` object.
18
- message (pb.SubscriptOp): the `SubscriptOp` message
19
- children (List[pb.Expression]): 0: the array, 1..: the subscripts of the `Subscripts` object
20
-
21
- Raises:
22
- ValueError: the error occurs if `num_subs` is not equal to length of the subscript
23
-
24
- Returns:
25
- Subscripts: a `Subscripts` object
26
- """
27
- # Validate length of the subscripts.
28
- if message.num_subs + 1 != len(children):
29
- raise ValueError(
30
- f"invalid length of the subscripts, expect = {message.num_subs} but actual = {len(children) - 1}"
31
- )
32
-
33
- # NOTE: Import a module within a local scope to fix a circular import.
34
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
35
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
36
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
37
- message_to_expression,
38
- )
39
-
40
- # Set the array.
41
- array = message_to_expression(children[0])
42
-
43
- # Set the subscripts.
44
- subscripts = [message_to_expression(expr) for expr in children[1:]]
45
-
46
- return Subscripts(variable=array, subscripts=subscripts, uuid=id)
@@ -1,47 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.mathfunc import (
6
- AbsoluteValue,
7
- Ceil,
8
- Floor,
9
- Log2,
10
- UnaryOperator,
11
- )
12
-
13
-
14
- def message_to_unary_op(
15
- id: str, message: pb.UnaryOp, operand: pb.Expression
16
- ) -> UnaryOperator:
17
- """
18
- Convert a message to a `UnaryOperator` object.
19
-
20
- Args:
21
- id (str): the id of the `UnaryOperator` object
22
- message (pb.UnaryOp): the `UnaryOp` message
23
- operand (pb.Expression): the operand node that the `UnaryOp` message has
24
-
25
- Raises:
26
- TypeError: the error happens if the message cannot be converted to a `UnaryOperator` object
27
-
28
- Returns:
29
- UnaryOperator: a `UnaryOperator` object
30
- """
31
- # NOTE: Import a module within a local scope to fix a circular import.
32
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
33
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
34
- from jijmodeling.protobuf.from_protobuf.message_to_expression import (
35
- message_to_expression,
36
- )
37
-
38
- if message.kind == pb.UnaryOpKind.ABS:
39
- return AbsoluteValue(uuid=id, operand=message_to_expression(operand))
40
- elif message.kind == pb.UnaryOpKind.CEIL:
41
- return Ceil(uuid=id, operand=message_to_expression(operand))
42
- elif message.kind == pb.UnaryOpKind.FLOOR:
43
- return Floor(uuid=id, operand=message_to_expression(operand))
44
- elif message.kind == pb.UnaryOpKind.LOG2:
45
- return Log2(uuid=id, operand=message_to_expression(operand))
46
- else:
47
- raise TypeError(f"cannot convert the unary operator to an expression")
@@ -1,43 +0,0 @@
1
- from pkgutil import extend_path
2
-
3
- __path__ = extend_path(__path__, __name__)
4
-
5
- import jijmodeling.protobuf.to_protobuf.add_header_to_message as add_header_to_message
6
- import jijmodeling.protobuf.to_protobuf.array_shape_to_message as array_shape_to_message
7
- import jijmodeling.protobuf.to_protobuf.binary_op_to_message as binary_op_to_message
8
- import jijmodeling.protobuf.to_protobuf.binary_var_to_message as binary_var_to_message
9
- import jijmodeling.protobuf.to_protobuf.constraint_to_message as constraint_to_message
10
- import jijmodeling.protobuf.to_protobuf.element_to_message as element_to_message
11
- import jijmodeling.protobuf.to_protobuf.expression_to_message as expression_to_message
12
- import jijmodeling.protobuf.to_protobuf.forall_to_message as forall_to_message
13
- import jijmodeling.protobuf.to_protobuf.integer_var_to_message as integer_var_to_message
14
- import jijmodeling.protobuf.to_protobuf.jagged_array_to_message as jagged_array_to_message
15
- import jijmodeling.protobuf.to_protobuf.number_lit_to_message as number_lit_to_message
16
- import jijmodeling.protobuf.to_protobuf.penalty_to_message as penalty_to_message
17
- import jijmodeling.protobuf.to_protobuf.placeholder_to_message as placeholder_to_message
18
- import jijmodeling.protobuf.to_protobuf.problem_to_message as problem_to_message
19
- import jijmodeling.protobuf.to_protobuf.reduction_op_to_message as reduction_op_to_message
20
- import jijmodeling.protobuf.to_protobuf.subscript_op_to_message as subscript_op_to_message
21
- import jijmodeling.protobuf.to_protobuf.to_protobuf as to_protobuf
22
- import jijmodeling.protobuf.to_protobuf.unary_op_to_message as unary_op_to_message
23
-
24
- __all__ = [
25
- "add_header_to_message",
26
- "array_shape_to_message",
27
- "binary_op_to_message",
28
- "binary_var_to_message",
29
- "constraint_to_message",
30
- "element_to_message",
31
- "expression_to_message",
32
- "forall_to_message",
33
- "integer_var_to_message",
34
- "jagged_array_to_message",
35
- "number_lit_to_message",
36
- "penalty_to_message",
37
- "placeholder_to_message",
38
- "problem_to_message",
39
- "reduction_op_to_message",
40
- "subscript_op_to_message",
41
- "to_protobuf",
42
- "unary_op_to_message",
43
- ]