jijmodeling 0.10.15__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 (270) hide show
  1. jijmodeling/__init__.py +1 -146
  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.15.dist-info → jijmodeling-1.11.0.dist-info}/WHEEL +1 -2
  18. {jijmodeling-0.10.15.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 -175
  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/condition_same.py +0 -44
  107. jijmodeling/match/constraint_same.py +0 -53
  108. jijmodeling/match/expr_same.py +0 -23
  109. jijmodeling/match/is_same_expr.py +0 -288
  110. jijmodeling/match/penalty_same.py +0 -31
  111. jijmodeling/match/problem_same.py +0 -44
  112. jijmodeling/problem/__init__.py +0 -9
  113. jijmodeling/problem/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  114. jijmodeling/problem/__pycache__/__init__.cpython-310.pyc +0 -0
  115. jijmodeling/problem/__pycache__/problem.cpython-310.opt-1.pyc +0 -0
  116. jijmodeling/problem/__pycache__/problem.cpython-310.pyc +0 -0
  117. jijmodeling/problem/problem.py +0 -166
  118. jijmodeling/protobuf/__init__.py +0 -8
  119. jijmodeling/protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  120. jijmodeling/protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
  121. jijmodeling/protobuf/from_protobuf/__init__.py +0 -47
  122. jijmodeling/protobuf/from_protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  123. jijmodeling/protobuf/from_protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
  124. jijmodeling/protobuf/from_protobuf/__pycache__/extract_attribute_value_from_header.cpython-310.opt-1.pyc +0 -0
  125. jijmodeling/protobuf/from_protobuf/__pycache__/extract_attribute_value_from_header.cpython-310.pyc +0 -0
  126. jijmodeling/protobuf/from_protobuf/__pycache__/from_protobuf.cpython-310.opt-1.pyc +0 -0
  127. jijmodeling/protobuf/from_protobuf/__pycache__/from_protobuf.cpython-310.pyc +0 -0
  128. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_array_shape.cpython-310.opt-1.pyc +0 -0
  129. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_array_shape.cpython-310.pyc +0 -0
  130. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_op.cpython-310.opt-1.pyc +0 -0
  131. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_op.cpython-310.pyc +0 -0
  132. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_var.cpython-310.opt-1.pyc +0 -0
  133. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_var.cpython-310.pyc +0 -0
  134. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_constraint.cpython-310.opt-1.pyc +0 -0
  135. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_constraint.cpython-310.pyc +0 -0
  136. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_element.cpython-310.opt-1.pyc +0 -0
  137. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_element.cpython-310.pyc +0 -0
  138. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_expression.cpython-310.opt-1.pyc +0 -0
  139. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_expression.cpython-310.pyc +0 -0
  140. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_forall.cpython-310.opt-1.pyc +0 -0
  141. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_forall.cpython-310.pyc +0 -0
  142. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_integer_var.cpython-310.opt-1.pyc +0 -0
  143. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_integer_var.cpython-310.pyc +0 -0
  144. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_jagged_array.cpython-310.opt-1.pyc +0 -0
  145. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_jagged_array.cpython-310.pyc +0 -0
  146. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_number_lit.cpython-310.opt-1.pyc +0 -0
  147. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_number_lit.cpython-310.pyc +0 -0
  148. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_penalty.cpython-310.opt-1.pyc +0 -0
  149. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_penalty.cpython-310.pyc +0 -0
  150. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_placeholder.cpython-310.opt-1.pyc +0 -0
  151. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_placeholder.cpython-310.pyc +0 -0
  152. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_problem.cpython-310.opt-1.pyc +0 -0
  153. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_problem.cpython-310.pyc +0 -0
  154. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_reduction_op.cpython-310.opt-1.pyc +0 -0
  155. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_reduction_op.cpython-310.pyc +0 -0
  156. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_subscript_op.cpython-310.opt-1.pyc +0 -0
  157. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_subscript_op.cpython-310.pyc +0 -0
  158. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_unary_op.cpython-310.opt-1.pyc +0 -0
  159. jijmodeling/protobuf/from_protobuf/__pycache__/message_to_unary_op.cpython-310.pyc +0 -0
  160. jijmodeling/protobuf/from_protobuf/extract_attribute_value_from_header.py +0 -26
  161. jijmodeling/protobuf/from_protobuf/from_protobuf.py +0 -38
  162. jijmodeling/protobuf/from_protobuf/message_to_array_shape.py +0 -35
  163. jijmodeling/protobuf/from_protobuf/message_to_binary_op.py +0 -83
  164. jijmodeling/protobuf/from_protobuf/message_to_binary_var.py +0 -46
  165. jijmodeling/protobuf/from_protobuf/message_to_constraint.py +0 -48
  166. jijmodeling/protobuf/from_protobuf/message_to_element.py +0 -30
  167. jijmodeling/protobuf/from_protobuf/message_to_expression.py +0 -92
  168. jijmodeling/protobuf/from_protobuf/message_to_forall.py +0 -33
  169. jijmodeling/protobuf/from_protobuf/message_to_integer_var.py +0 -54
  170. jijmodeling/protobuf/from_protobuf/message_to_jagged_array.py +0 -25
  171. jijmodeling/protobuf/from_protobuf/message_to_number_lit.py +0 -41
  172. jijmodeling/protobuf/from_protobuf/message_to_penalty.py +0 -36
  173. jijmodeling/protobuf/from_protobuf/message_to_placeholder.py +0 -47
  174. jijmodeling/protobuf/from_protobuf/message_to_problem.py +0 -51
  175. jijmodeling/protobuf/from_protobuf/message_to_reduction_op.py +0 -52
  176. jijmodeling/protobuf/from_protobuf/message_to_subscript_op.py +0 -46
  177. jijmodeling/protobuf/from_protobuf/message_to_unary_op.py +0 -47
  178. jijmodeling/protobuf/to_protobuf/__init__.py +0 -43
  179. jijmodeling/protobuf/to_protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  180. jijmodeling/protobuf/to_protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
  181. jijmodeling/protobuf/to_protobuf/__pycache__/add_header_to_message.cpython-310.opt-1.pyc +0 -0
  182. jijmodeling/protobuf/to_protobuf/__pycache__/add_header_to_message.cpython-310.pyc +0 -0
  183. jijmodeling/protobuf/to_protobuf/__pycache__/array_shape_to_message.cpython-310.opt-1.pyc +0 -0
  184. jijmodeling/protobuf/to_protobuf/__pycache__/array_shape_to_message.cpython-310.pyc +0 -0
  185. jijmodeling/protobuf/to_protobuf/__pycache__/binary_op_to_message.cpython-310.opt-1.pyc +0 -0
  186. jijmodeling/protobuf/to_protobuf/__pycache__/binary_op_to_message.cpython-310.pyc +0 -0
  187. jijmodeling/protobuf/to_protobuf/__pycache__/binary_var_to_message.cpython-310.opt-1.pyc +0 -0
  188. jijmodeling/protobuf/to_protobuf/__pycache__/binary_var_to_message.cpython-310.pyc +0 -0
  189. jijmodeling/protobuf/to_protobuf/__pycache__/constraint_to_message.cpython-310.opt-1.pyc +0 -0
  190. jijmodeling/protobuf/to_protobuf/__pycache__/constraint_to_message.cpython-310.pyc +0 -0
  191. jijmodeling/protobuf/to_protobuf/__pycache__/element_to_message.cpython-310.opt-1.pyc +0 -0
  192. jijmodeling/protobuf/to_protobuf/__pycache__/element_to_message.cpython-310.pyc +0 -0
  193. jijmodeling/protobuf/to_protobuf/__pycache__/expression_to_message.cpython-310.opt-1.pyc +0 -0
  194. jijmodeling/protobuf/to_protobuf/__pycache__/expression_to_message.cpython-310.pyc +0 -0
  195. jijmodeling/protobuf/to_protobuf/__pycache__/forall_to_message.cpython-310.opt-1.pyc +0 -0
  196. jijmodeling/protobuf/to_protobuf/__pycache__/forall_to_message.cpython-310.pyc +0 -0
  197. jijmodeling/protobuf/to_protobuf/__pycache__/integer_var_to_message.cpython-310.opt-1.pyc +0 -0
  198. jijmodeling/protobuf/to_protobuf/__pycache__/integer_var_to_message.cpython-310.pyc +0 -0
  199. jijmodeling/protobuf/to_protobuf/__pycache__/jagged_array_to_message.cpython-310.opt-1.pyc +0 -0
  200. jijmodeling/protobuf/to_protobuf/__pycache__/jagged_array_to_message.cpython-310.pyc +0 -0
  201. jijmodeling/protobuf/to_protobuf/__pycache__/number_lit_to_message.cpython-310.opt-1.pyc +0 -0
  202. jijmodeling/protobuf/to_protobuf/__pycache__/number_lit_to_message.cpython-310.pyc +0 -0
  203. jijmodeling/protobuf/to_protobuf/__pycache__/penalty_to_message.cpython-310.opt-1.pyc +0 -0
  204. jijmodeling/protobuf/to_protobuf/__pycache__/penalty_to_message.cpython-310.pyc +0 -0
  205. jijmodeling/protobuf/to_protobuf/__pycache__/placeholder_to_message.cpython-310.opt-1.pyc +0 -0
  206. jijmodeling/protobuf/to_protobuf/__pycache__/placeholder_to_message.cpython-310.pyc +0 -0
  207. jijmodeling/protobuf/to_protobuf/__pycache__/problem_to_message.cpython-310.opt-1.pyc +0 -0
  208. jijmodeling/protobuf/to_protobuf/__pycache__/problem_to_message.cpython-310.pyc +0 -0
  209. jijmodeling/protobuf/to_protobuf/__pycache__/reduction_op_to_message.cpython-310.opt-1.pyc +0 -0
  210. jijmodeling/protobuf/to_protobuf/__pycache__/reduction_op_to_message.cpython-310.pyc +0 -0
  211. jijmodeling/protobuf/to_protobuf/__pycache__/subscript_op_to_message.cpython-310.opt-1.pyc +0 -0
  212. jijmodeling/protobuf/to_protobuf/__pycache__/subscript_op_to_message.cpython-310.pyc +0 -0
  213. jijmodeling/protobuf/to_protobuf/__pycache__/to_protobuf.cpython-310.opt-1.pyc +0 -0
  214. jijmodeling/protobuf/to_protobuf/__pycache__/to_protobuf.cpython-310.pyc +0 -0
  215. jijmodeling/protobuf/to_protobuf/__pycache__/unary_op_to_message.cpython-310.opt-1.pyc +0 -0
  216. jijmodeling/protobuf/to_protobuf/__pycache__/unary_op_to_message.cpython-310.pyc +0 -0
  217. jijmodeling/protobuf/to_protobuf/add_header_to_message.py +0 -35
  218. jijmodeling/protobuf/to_protobuf/array_shape_to_message.py +0 -43
  219. jijmodeling/protobuf/to_protobuf/binary_op_to_message.py +0 -101
  220. jijmodeling/protobuf/to_protobuf/binary_var_to_message.py +0 -49
  221. jijmodeling/protobuf/to_protobuf/constraint_to_message.py +0 -52
  222. jijmodeling/protobuf/to_protobuf/element_to_message.py +0 -43
  223. jijmodeling/protobuf/to_protobuf/expression_to_message.py +0 -89
  224. jijmodeling/protobuf/to_protobuf/forall_to_message.py +0 -32
  225. jijmodeling/protobuf/to_protobuf/integer_var_to_message.py +0 -54
  226. jijmodeling/protobuf/to_protobuf/jagged_array_to_message.py +0 -37
  227. jijmodeling/protobuf/to_protobuf/number_lit_to_message.py +0 -52
  228. jijmodeling/protobuf/to_protobuf/penalty_to_message.py +0 -42
  229. jijmodeling/protobuf/to_protobuf/placeholder_to_message.py +0 -58
  230. jijmodeling/protobuf/to_protobuf/problem_to_message.py +0 -54
  231. jijmodeling/protobuf/to_protobuf/reduction_op_to_message.py +0 -64
  232. jijmodeling/protobuf/to_protobuf/subscript_op_to_message.py +0 -48
  233. jijmodeling/protobuf/to_protobuf/to_protobuf.py +0 -36
  234. jijmodeling/protobuf/to_protobuf/unary_op_to_message.py +0 -58
  235. jijmodeling/sampleset/__init__.py +0 -33
  236. jijmodeling/sampleset/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  237. jijmodeling/sampleset/__pycache__/__init__.cpython-310.pyc +0 -0
  238. jijmodeling/sampleset/__pycache__/evaluation.cpython-310.opt-1.pyc +0 -0
  239. jijmodeling/sampleset/__pycache__/evaluation.cpython-310.pyc +0 -0
  240. jijmodeling/sampleset/__pycache__/measuring_time.cpython-310.opt-1.pyc +0 -0
  241. jijmodeling/sampleset/__pycache__/measuring_time.cpython-310.pyc +0 -0
  242. jijmodeling/sampleset/__pycache__/record.cpython-310.opt-1.pyc +0 -0
  243. jijmodeling/sampleset/__pycache__/record.cpython-310.pyc +0 -0
  244. jijmodeling/sampleset/__pycache__/sampleset.cpython-310.opt-1.pyc +0 -0
  245. jijmodeling/sampleset/__pycache__/sampleset.cpython-310.pyc +0 -0
  246. jijmodeling/sampleset/__pycache__/solving_time.cpython-310.opt-1.pyc +0 -0
  247. jijmodeling/sampleset/__pycache__/solving_time.cpython-310.pyc +0 -0
  248. jijmodeling/sampleset/__pycache__/system_time.cpython-310.opt-1.pyc +0 -0
  249. jijmodeling/sampleset/__pycache__/system_time.cpython-310.pyc +0 -0
  250. jijmodeling/sampleset/evaluation.py +0 -198
  251. jijmodeling/sampleset/measuring_time.py +0 -59
  252. jijmodeling/sampleset/record.py +0 -158
  253. jijmodeling/sampleset/sampleset.py +0 -381
  254. jijmodeling/sampleset/solving_time.py +0 -38
  255. jijmodeling/sampleset/system_time.py +0 -48
  256. jijmodeling/type_annotations/__init__.py +0 -38
  257. jijmodeling/type_annotations/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  258. jijmodeling/type_annotations/__pycache__/__init__.cpython-310.pyc +0 -0
  259. jijmodeling/type_annotations/__pycache__/type_annotations.cpython-310.opt-1.pyc +0 -0
  260. jijmodeling/type_annotations/__pycache__/type_annotations.cpython-310.pyc +0 -0
  261. jijmodeling/type_annotations/type_annotations.py +0 -44
  262. jijmodeling/utils/__init__.py +0 -28
  263. jijmodeling/utils/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
  264. jijmodeling/utils/__pycache__/__init__.cpython-310.pyc +0 -0
  265. jijmodeling/utils/__pycache__/utils.cpython-310.opt-1.pyc +0 -0
  266. jijmodeling/utils/__pycache__/utils.cpython-310.pyc +0 -0
  267. jijmodeling/utils/utils.py +0 -146
  268. jijmodeling-0.10.15.dist-info/METADATA +0 -59
  269. jijmodeling-0.10.15.dist-info/RECORD +0 -255
  270. jijmodeling-0.10.15.dist-info/top_level.txt +0 -1
@@ -1,89 +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 BinaryOperator, Expression, Number
9
- from jijmodeling.expression.mathfunc import UnaryOperator
10
- from jijmodeling.expression.sum import ReductionOperator
11
- from jijmodeling.expression.variables.deci_vars import Binary, Integer
12
- from jijmodeling.expression.variables.jagged_array import JaggedArray
13
- from jijmodeling.expression.variables.placeholders import ArrayShape, Placeholder
14
- from jijmodeling.expression.variables.variable import Element, Range, Subscripts
15
- from jijmodeling.protobuf.to_protobuf.array_shape_to_message import (
16
- array_shape_to_message,
17
- )
18
- from jijmodeling.protobuf.to_protobuf.binary_op_to_message import binary_op_to_message
19
- from jijmodeling.protobuf.to_protobuf.binary_var_to_message import binary_var_to_message
20
- from jijmodeling.protobuf.to_protobuf.element_to_message import element_to_message
21
- from jijmodeling.protobuf.to_protobuf.integer_var_to_message import (
22
- integer_var_to_message,
23
- )
24
- from jijmodeling.protobuf.to_protobuf.jagged_array_to_message import (
25
- jagged_array_to_message,
26
- )
27
- from jijmodeling.protobuf.to_protobuf.number_lit_to_message import number_lit_to_message
28
- from jijmodeling.protobuf.to_protobuf.placeholder_to_message import (
29
- placeholder_to_message,
30
- )
31
- from jijmodeling.protobuf.to_protobuf.reduction_op_to_message import (
32
- reduction_op_to_message,
33
- )
34
- from jijmodeling.protobuf.to_protobuf.subscript_op_to_message import (
35
- subscript_op_to_message,
36
- )
37
- from jijmodeling.protobuf.to_protobuf.unary_op_to_message import unary_op_to_message
38
-
39
-
40
- def expression_to_message(expr: Union[Expression, Range, Condition]) -> pb.Expression:
41
- """
42
- Convert a `Expression` instance object to an `Expression` message.
43
-
44
- Args:
45
- expr (Expression): an `Expression` instance object
46
-
47
- Raises:
48
- TypeError: the error occurs if the instance ofject cannot be converted to a protobuf object
49
-
50
- Returns:
51
- pb.Expression: a `Expression` message
52
- """
53
- if type(expr) is Number:
54
- message = number_lit_to_message(expr)
55
- return message
56
- elif type(expr) is Placeholder:
57
- message = placeholder_to_message(expr)
58
- return message
59
- elif type(expr) is ArrayShape:
60
- message = array_shape_to_message(expr)
61
- return message
62
- elif type(expr) is Element:
63
- message = element_to_message(expr)
64
- return message
65
- elif type(expr) is JaggedArray:
66
- message = jagged_array_to_message(expr)
67
- return message
68
- elif type(expr) is Binary:
69
- message = binary_var_to_message(expr)
70
- return message
71
- elif type(expr) is Integer:
72
- message = integer_var_to_message(expr)
73
- return message
74
- elif isinstance(expr, UnaryOperator):
75
- message = unary_op_to_message(expr)
76
- return message
77
- elif isinstance(expr, (BinaryOperator, Range, Condition)):
78
- message = binary_op_to_message(expr)
79
- return message
80
- elif type(expr) is Subscripts:
81
- message = subscript_op_to_message(expr)
82
- return message
83
- elif isinstance(expr, ReductionOperator):
84
- message = reduction_op_to_message(expr)
85
- return message
86
- else:
87
- raise TypeError(
88
- f"{expr.__class__.__name__} is not supported for converting it into a protobuf message."
89
- )
@@ -1,32 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.condition import Condition, NoneCondition
6
- from jijmodeling.expression.variables.variable import Element
7
- from jijmodeling.protobuf.to_protobuf.element_to_message import element_to_message
8
- from jijmodeling.protobuf.to_protobuf.expression_to_message import expression_to_message
9
-
10
-
11
- def forall_to_message(element: Element, condition: Condition) -> pb.Forall:
12
- """
13
- Convert a `forall` object into a `Forall` message.
14
-
15
- Args:
16
- element (Element): an `Element` object
17
- condition (Condition): a `Condition` object
18
-
19
- Returns:
20
- pb.Forall: a `Forall` message
21
- """
22
- # Create an empty `Forall` message.
23
- message = pb.Forall()
24
-
25
- # Set the element.
26
- message.element = element_to_message(element)
27
-
28
- # Set the condition expression for the element.
29
- if type(condition) is not NoneCondition:
30
- message.condition = expression_to_message(condition)
31
-
32
- return message
@@ -1,54 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.variables.deci_vars import Integer
6
-
7
-
8
- def integer_var_to_message(integer_var: Integer) -> pb.Expression:
9
- """
10
- Convert an `Integer` object to an `IntegerVar` message.
11
-
12
- Args:
13
- integer_var (Integer): an `Integer` object.
14
-
15
- Returns:
16
- pb.Expression: an `Expression` message.
17
- """
18
- # Create an empty `IntegerVar` message.
19
- integer_var_message = pb.IntegerVar()
20
-
21
- # Set the symbol
22
- integer_var_message.symbol = integer_var.label
23
- # Set length of the shape
24
- integer_var_message.dim = integer_var.dim
25
-
26
- # Create an empty `Expression` message.
27
- message = pb.Expression()
28
-
29
- # Set the id that the `Integer` object has.
30
- message.id = integer_var.uuid
31
-
32
- # Set the kind of nodes to a `IntegerVar` message.
33
- message.kind.integer_var = integer_var_message
34
-
35
- # NOTE: Import a module within a local scope to fix a circular import.
36
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
37
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
38
- from jijmodeling.protobuf.to_protobuf.expression_to_message import (
39
- expression_to_message,
40
- )
41
-
42
- # Set the bound of the `Integer` object.
43
- # lower bound
44
- message.children.append(expression_to_message(integer_var.lower))
45
- # upper bound
46
- message.children.append(expression_to_message(integer_var.upper))
47
-
48
- # Set the shape.
49
- message.children.extend(
50
- [expression_to_message(shape_element) for shape_element in integer_var.shape]
51
- )
52
-
53
- # Serialize the `Expression` object into a bytes object.
54
- return message
@@ -1,37 +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 jagged_array_to_message(jagged_array: JaggedArray) -> pb.Expression:
9
- """
10
- Convert a `JaggedArray` object to a `JaggedArray` message.
11
-
12
- Args:
13
- jagged_array (JaggedArray): a `JaggedArray` object
14
-
15
- Returns:
16
- pb.Expression: a `JaggedArray` object
17
- """
18
- # Create an empty `JaggedArray` message.
19
- jagged_array_message = pb.JaggedArray()
20
-
21
- # Set the symbol.
22
- jagged_array_message.symbol = jagged_array.label
23
-
24
- # Set the number of dimensions.
25
- jagged_array_message.dim = jagged_array.dim
26
-
27
- # Create an empty `Expression` message.
28
- message = pb.Expression()
29
-
30
- # Set the id that the `JaggedArray` object has.
31
- message.id = jagged_array.uuid
32
-
33
- # Set the kind of nodes to a `JaggedArray` message.
34
- message.kind.jagged_array = jagged_array_message
35
-
36
- # Serialize the `Expression` object into a bytes object.
37
- return message
@@ -1,52 +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 number_lit_to_message(lit: Number) -> pb.Expression:
11
- """
12
- Convert a `Number` object to an `Expression` message.
13
-
14
- Args:
15
- lit (Number): a `Number` object
16
-
17
- Returns:
18
- jijmodeling_schema.Expression: an `Expression` message
19
- """
20
- # Create an empty `NumberLit` message.
21
- number_lit = pb.NumberLit()
22
-
23
- # Set the type of the value that the `Number` object has.
24
- # Case: int
25
- if lit.dtype == DataType.INT:
26
- number_lit.type = pb.NumberLitType.INTEGER
27
-
28
- # Set the value that the `Number` object has.
29
- # Convert the value to the bytes object.
30
- number_lit.value = int.from_bytes(struct.pack(">q", lit.value), "big")
31
- # Case: float
32
- elif lit.dtype == DataType.FLOAT:
33
- number_lit.type = pb.NumberLitType.FLOAT
34
-
35
- # Set the value that the `Number` object has.
36
- # Convert the value to the bytes object.
37
- number_lit.value = int.from_bytes(struct.pack(">d", lit.value), "big")
38
- # Otherwise
39
- else:
40
- number_lit.type = pb.NumberLitType.UNKNOWN
41
-
42
- # Create an empty `Expression` message.
43
- message = pb.Expression()
44
-
45
- # Set the id that the `Number` object has.
46
- message.id = lit.uuid
47
-
48
- # Set the kind of nodes to `NumberLit`.
49
- message.kind.number_lit = number_lit
50
-
51
- # Serialize the `Expression` object into a bytes object.
52
- return message
@@ -1,42 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from ulid import ULID
6
-
7
- from jijmodeling.expression.constraint import Penalty
8
- from jijmodeling.protobuf.to_protobuf.expression_to_message import expression_to_message
9
- from jijmodeling.protobuf.to_protobuf.forall_to_message import forall_to_message
10
-
11
-
12
- def penalty_to_message(penalty: Penalty) -> pb.Penalty:
13
- """
14
- Convert a `Penalty` object into a `Penalty` message.
15
-
16
- Args:
17
- penalty (Penalty): a `Penalty` object
18
-
19
- Returns:
20
- pb.Penalty: a `Penalty` message
21
- """
22
- # Create an empty `Penalty` message
23
- message = pb.Penalty()
24
-
25
- # Set the id of the penalty.
26
- message.id = str(ULID())
27
-
28
- # Set the name of the penalty.
29
- message.name = penalty.label
30
-
31
- # Set the penalty term.
32
- message.expression = expression_to_message(penalty.penalty_term)
33
-
34
- # Set the list of forall.
35
- message.forall.extend(
36
- [forall_to_message(element, condition) for element, condition in penalty.forall]
37
- )
38
-
39
- # Set the needs_multiplier
40
- message.needs_multiplier = penalty.with_multiplier
41
-
42
- return message
@@ -1,58 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.variables.placeholders import ArrayShape, Placeholder
6
-
7
-
8
- def placeholder_to_message(placeholder: Placeholder) -> pb.Expression:
9
- """
10
- Convert a `Placeholder` object to an `Expression` message.
11
-
12
- Args:
13
- placeholder (Placeholder): a `Placeholder` object
14
-
15
- Returns:
16
- pb.Expression: an `Expression` message
17
- """
18
- # Create an empty `Placeholder` message.
19
- placeholder_message = pb.Placeholder()
20
-
21
- # Set the symbol.
22
- placeholder_message.symbol = placeholder.label
23
-
24
- # Set the number of dimensions.
25
- placeholder_message.dim = placeholder.dim
26
-
27
- # Create an empty `Expression` message.
28
- message = pb.Expression()
29
-
30
- # Set the id that the `Placeholder` object has.
31
- message.id = placeholder.uuid
32
-
33
- # Set the shape
34
- for shape in placeholder.shape:
35
- # Case: number of elements is variadic.
36
- if type(shape) is ArrayShape:
37
- # Set the kind of the element of the shape.
38
- placeholder_message.shape.append(pb.PlaceholderShapeElement.DYNAMIC)
39
- # Case: number of elements is fixed.
40
- else:
41
- # Set the kind of the element of the shape.
42
- placeholder_message.shape.append(pb.PlaceholderShapeElement.EXPRESSION)
43
-
44
- # NOTE: Import a module within a local scope to fix a circular import.
45
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
46
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
47
- from jijmodeling.protobuf.to_protobuf.expression_to_message import (
48
- expression_to_message,
49
- )
50
-
51
- # Set the shape
52
- message.children.append(expression_to_message(shape))
53
-
54
- # Set the kind of nodes to a `Placeholder` message.
55
- message.kind.placeholder = placeholder_message
56
-
57
- # Serialize the `Expression` object into a bytes object.
58
- return message
@@ -1,54 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from ulid import ULID
6
-
7
- from jijmodeling.problem.problem import Problem, ProblemSense
8
- from jijmodeling.protobuf.to_protobuf.constraint_to_message import constraint_to_message
9
- from jijmodeling.protobuf.to_protobuf.expression_to_message import expression_to_message
10
- from jijmodeling.protobuf.to_protobuf.penalty_to_message import penalty_to_message
11
-
12
-
13
- def problem_to_message(problem: Problem) -> pb.Problem:
14
- """
15
- Convert a `Problem` object into a `Problem` message.
16
-
17
- Args:
18
- problem (Problem): a `Problem` object
19
-
20
- Returns:
21
- pb.Problem: a `Problem` message
22
- """
23
- # Create an empty `Problem` message.
24
- message = pb.Problem()
25
-
26
- # Set the name of the problem.
27
- message.name = problem.name
28
-
29
- # Set the id of the problem.
30
- message.id = str(ULID())
31
-
32
- # Set sense of the problem.
33
- if problem.sense == ProblemSense.MINIMUM:
34
- message.sense = pb.ProblemSense.MIN
35
- else:
36
- message.sense = pb.ProblemSense.MAX
37
-
38
- # Set the objective function.
39
- message.objective = expression_to_message(problem.objective)
40
-
41
- # Set the constraints.
42
- message.constraints.extend(
43
- [
44
- constraint_to_message(constraint)
45
- for constraint in problem.constraints.values()
46
- ]
47
- )
48
-
49
- # Set the user-defined penalties.
50
- message.penalties.extend(
51
- [penalty_to_message(penalty) for penalty in problem.penalties.values()]
52
- )
53
-
54
- return message
@@ -1,64 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.condition import NoneCondition
6
- from jijmodeling.expression.prod import ProdOperator
7
- from jijmodeling.expression.sum import ReductionOperator, SumOperator
8
-
9
-
10
- def reduction_op_to_message(reduction_op: ReductionOperator) -> pb.Expression:
11
- """
12
- Convert a `ReductionOperator` object to a `ReductionOp` message.
13
-
14
- Args:
15
- reduction_op (ReductionOperator): a `ReductionOperator` object.
16
-
17
- Raises:
18
- TypeError: the error occurs if the kind of the reduction operator is not supported
19
-
20
- Returns:
21
- pb.Expression: an `Expression` message.
22
- """
23
- # Create an empty `ReductionOp` message.
24
- reduction_op_message = pb.ReductionOp()
25
-
26
- # Set the kind of the `ReductionOp`.
27
- if type(reduction_op) is SumOperator:
28
- reduction_op_message.kind = pb.ReductionOpKind.SUM
29
- elif type(reduction_op) is ProdOperator:
30
- reduction_op_message.kind = pb.ReductionOpKind.PROD
31
- else:
32
- raise TypeError(f"{reduction_op.__class__.__name__} is not supported.")
33
-
34
- # Create an empty `Expression` message.
35
- message = pb.Expression()
36
-
37
- # Set the id that the `Expression` object has.
38
- message.id = reduction_op.uuid
39
-
40
- # NOTE: Import a module within a local scope to fix a circular import.
41
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
42
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
43
- from jijmodeling.protobuf.to_protobuf.expression_to_message import (
44
- expression_to_message,
45
- )
46
-
47
- # Set the index.
48
- message.children.append(expression_to_message(reduction_op.sum_index))
49
-
50
- # Set the operand.
51
- message.children.append(expression_to_message(reduction_op.operand))
52
-
53
- # Set the condition expression if the `ReductionOp` object has it.
54
- if type(reduction_op.condition) is NoneCondition:
55
- reduction_op_message.has_condition = False
56
- else:
57
- reduction_op_message.has_condition = True
58
- # Set the condition expression
59
- message.children.append(expression_to_message(reduction_op.condition))
60
-
61
- # Set the kind of nodes to an `ReductionOp` message.
62
- message.kind.reduction_op = reduction_op_message
63
-
64
- return message
@@ -1,48 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import jijmodeling_schema as pb
4
-
5
- from jijmodeling.expression.variables.variable import Subscripts
6
-
7
-
8
- def subscript_op_to_message(subscript_op: Subscripts) -> pb.Expression:
9
- """
10
- Convert a `Subscripts` object to a `SubscriptOp` message.
11
-
12
- Args:
13
- subscript_op (Subscripts): a `Subscripts` object.
14
-
15
- Returns:
16
- pb.Expression: an `Expression` message.
17
- """
18
- # Create an empty `SubscriptOp` message.
19
- subscript_op_message = pb.SubscriptOp()
20
-
21
- # Set length of the subscripts.
22
- subscript_op_message.num_subs = len(subscript_op.subscripts)
23
-
24
- # Create an empty `Expression` message.
25
- message = pb.Expression()
26
-
27
- # Set the id that the `Expression` object has.
28
- message.id = subscript_op.uuid
29
-
30
- # Set the kind of nodes to an `BinaryOp` message.
31
- message.kind.subscript_op = subscript_op_message
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.to_protobuf.expression_to_message import (
37
- expression_to_message,
38
- )
39
-
40
- # Set the target array object.
41
- message.children.append(expression_to_message(subscript_op.variable))
42
-
43
- # Set the subscripts.
44
- message.children.extend(
45
- [expression_to_message(expr) for expr in subscript_op.subscripts]
46
- )
47
-
48
- return message
@@ -1,36 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import Union
4
-
5
- from jijmodeling.expression.condition import Condition
6
- from jijmodeling.expression.expression import Expression
7
- from jijmodeling.expression.variables.variable import Range
8
- from jijmodeling.problem.problem import Problem
9
- from jijmodeling.protobuf.to_protobuf.add_header_to_message import add_header_to_message
10
- from jijmodeling.protobuf.to_protobuf.expression_to_message import expression_to_message
11
- from jijmodeling.protobuf.to_protobuf.problem_to_message import problem_to_message
12
-
13
-
14
- def to_protobuf(object: Union[Expression, Range, Condition, Problem]) -> bytes:
15
- """
16
- Convert a JijModeling's object to a bytes object serialized by protobuf.
17
-
18
- Args:
19
- expr (Expression): a instance object of the `Expression` class
20
-
21
- Raises:
22
- TypeError: The error raises if the instance object cannot be converted to a protobuf object
23
-
24
- Returns:
25
- bytes: a bytes object
26
- """
27
- if isinstance(object, (Expression, Range, Condition)):
28
- message = add_header_to_message(expression_to_message(object))
29
- return bytes(message)
30
- elif isinstance(object, Problem):
31
- message = add_header_to_message(problem_to_message(object))
32
- return bytes(message)
33
- else:
34
- raise TypeError(
35
- f"{object.__class__.__name__} is not an {Expression.__name__} instance object."
36
- )
@@ -1,58 +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 unary_op_to_message(unary_op: UnaryOperator) -> pb.Expression:
15
- """
16
- Convert a `UnaryOperator` object to an `Expression` message.
17
-
18
- Args:
19
- unary_op (UnaryOperator): a `UnaryOperator` object
20
-
21
- Returns:
22
- pb.Expression: an `Expression` message
23
- """
24
- # Create an empty `UnaryOp` message.
25
- unary_op_message = pb.UnaryOp()
26
-
27
- # Set the kind of the unary operator node.
28
- if type(unary_op) is AbsoluteValue:
29
- unary_op_message.kind = pb.UnaryOpKind.ABS
30
- elif type(unary_op) is Ceil:
31
- unary_op_message.kind = pb.UnaryOpKind.CEIL
32
- elif type(unary_op) is Floor:
33
- unary_op_message.kind = pb.UnaryOpKind.FLOOR
34
- elif type(unary_op) is Log2:
35
- unary_op_message.kind = pb.UnaryOpKind.LOG2
36
- else:
37
- raise TypeError(f"{unary_op.__class__.__name__} is not supported")
38
-
39
- # Create an empty `Expression` message.
40
- message = pb.Expression()
41
-
42
- # Set the id that the `Expression` object has.
43
- message.id = unary_op.uuid
44
-
45
- # Set the kind of nodes to an `UnaryOp` message.
46
- message.kind.unary_op = unary_op_message
47
-
48
- # NOTE: Import a module within a local scope to fix a circular import.
49
- # - https://stackoverflow.com/questions/59462679/design-of-python-conditional-imports
50
- # - https://medium.com/@hamana.hadrien/so-you-got-a-circular-import-in-python-e9142fe10591
51
- from jijmodeling.protobuf.to_protobuf.expression_to_message import (
52
- expression_to_message,
53
- )
54
-
55
- # Set the operand of the `UnaryOperator` object.
56
- message.children.append(expression_to_message(unary_op.operand))
57
-
58
- return message
@@ -1,33 +0,0 @@
1
- from pkgutil import extend_path
2
-
3
- __path__ = extend_path(__path__, __name__)
4
-
5
- import jijmodeling.sampleset.evaluation as evaluation
6
- import jijmodeling.sampleset.measuring_time as measuring_time
7
- import jijmodeling.sampleset.record as record
8
- import jijmodeling.sampleset.sampleset as sampleset
9
- import jijmodeling.sampleset.solving_time as solving_time
10
- import jijmodeling.sampleset.system_time as system_time
11
-
12
- from jijmodeling.sampleset.evaluation import Evaluation
13
- from jijmodeling.sampleset.measuring_time import MeasuringTime
14
- from jijmodeling.sampleset.record import Record
15
- from jijmodeling.sampleset.sampleset import SampleSet, concatenate
16
- from jijmodeling.sampleset.solving_time import SolvingTime
17
- from jijmodeling.sampleset.system_time import SystemTime
18
-
19
- __all__ = [
20
- "evaluation",
21
- "measuring_time",
22
- "record",
23
- "sampleset",
24
- "solving_time",
25
- "system_time",
26
- "SampleSet",
27
- "Record",
28
- "Evaluation",
29
- "MeasuringTime",
30
- "SolvingTime",
31
- "SystemTime",
32
- "concatenate",
33
- ]