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.
- jijmodeling/__init__.py +1 -148
- jijmodeling/__init__.pyi +5152 -0
- jijmodeling/_jijmodeling.cp310-win_amd64.pyd +0 -0
- jijmodeling/dataset.py +5 -0
- jijmodeling/dataset.pyi +106 -0
- jijmodeling/experimental.py +13 -0
- jijmodeling/experimental.pyi +302 -0
- jijmodeling/py.typed +0 -0
- jijmodeling/range/__init__.py +14 -0
- jijmodeling/range/__init__.pyi +56 -0
- jijmodeling/range/size.py +14 -0
- jijmodeling/range/size.pyi +54 -0
- jijmodeling/range/value.py +14 -0
- jijmodeling/range/value.pyi +54 -0
- jijmodeling-1.11.0.dist-info/METADATA +235 -0
- jijmodeling-1.11.0.dist-info/RECORD +18 -0
- {jijmodeling-0.10.18.dist-info → jijmodeling-1.11.0.dist-info}/WHEEL +1 -2
- {jijmodeling-0.10.18.dist-info → jijmodeling-1.11.0.dist-info/licenses}/LICENSE.txt +1 -1
- jijmodeling/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/__pycache__/_version.cpython-310.opt-1.pyc +0 -0
- jijmodeling/__pycache__/_version.cpython-310.pyc +0 -0
- jijmodeling/_version.py +0 -4
- jijmodeling/exceptions/__init__.py +0 -26
- jijmodeling/exceptions/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/exceptions/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/exceptions/__pycache__/exceptions.cpython-310.opt-1.pyc +0 -0
- jijmodeling/exceptions/__pycache__/exceptions.cpython-310.pyc +0 -0
- jijmodeling/exceptions/exceptions.py +0 -37
- jijmodeling/expression/__init__.py +0 -74
- jijmodeling/expression/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/condition.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/condition.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/constraint.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/constraint.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/expression.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/expression.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/extract.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/extract.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/from_old_serializable.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/from_old_serializable.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/mathfunc.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/mathfunc.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/prod.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/prod.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/serializable.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/serializable.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/sum.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/sum.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/type_annotations.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/type_annotations.cpython-310.pyc +0 -0
- jijmodeling/expression/__pycache__/utils.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/__pycache__/utils.cpython-310.pyc +0 -0
- jijmodeling/expression/condition.py +0 -362
- jijmodeling/expression/constraint.py +0 -340
- jijmodeling/expression/expression.py +0 -706
- jijmodeling/expression/extract.py +0 -139
- jijmodeling/expression/from_old_serializable.py +0 -133
- jijmodeling/expression/mathfunc.py +0 -269
- jijmodeling/expression/prod.py +0 -117
- jijmodeling/expression/serializable.py +0 -132
- jijmodeling/expression/sum.py +0 -197
- jijmodeling/expression/type_annotations.py +0 -50
- jijmodeling/expression/utils.py +0 -201
- jijmodeling/expression/variables/__init__.py +0 -35
- jijmodeling/expression/variables/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/deci_vars.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/deci_vars.cpython-310.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/jagged_array.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/jagged_array.cpython-310.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/placeholders.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/placeholders.cpython-310.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/variable.cpython-310.opt-1.pyc +0 -0
- jijmodeling/expression/variables/__pycache__/variable.cpython-310.pyc +0 -0
- jijmodeling/expression/variables/deci_vars.py +0 -136
- jijmodeling/expression/variables/jagged_array.py +0 -73
- jijmodeling/expression/variables/placeholders.py +0 -107
- jijmodeling/expression/variables/variable.py +0 -485
- jijmodeling/latex_repr/__init__.py +0 -11
- jijmodeling/latex_repr/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/latex_repr/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/latex_repr/__pycache__/latex_repr.cpython-310.opt-1.pyc +0 -0
- jijmodeling/latex_repr/__pycache__/latex_repr.cpython-310.pyc +0 -0
- jijmodeling/latex_repr/__pycache__/problem_latex_repr.cpython-310.opt-1.pyc +0 -0
- jijmodeling/latex_repr/__pycache__/problem_latex_repr.cpython-310.pyc +0 -0
- jijmodeling/latex_repr/latex_repr.py +0 -243
- jijmodeling/latex_repr/problem_latex_repr.py +0 -209
- jijmodeling/marker/__marker__.cp310-win_amd64.pyd +0 -0
- jijmodeling/match/__init__.py +0 -19
- jijmodeling/match/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/match/__pycache__/condition_same.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/condition_same.cpython-310.pyc +0 -0
- jijmodeling/match/__pycache__/constraint_same.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/constraint_same.cpython-310.pyc +0 -0
- jijmodeling/match/__pycache__/expr_same.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/expr_same.cpython-310.pyc +0 -0
- jijmodeling/match/__pycache__/is_same_expr.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/is_same_expr.cpython-310.pyc +0 -0
- jijmodeling/match/__pycache__/penalty_same.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/penalty_same.cpython-310.pyc +0 -0
- jijmodeling/match/__pycache__/problem_same.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/problem_same.cpython-310.pyc +0 -0
- jijmodeling/match/__pycache__/replace.cpython-310.opt-1.pyc +0 -0
- jijmodeling/match/__pycache__/replace.cpython-310.pyc +0 -0
- jijmodeling/match/condition_same.py +0 -44
- jijmodeling/match/constraint_same.py +0 -53
- jijmodeling/match/expr_same.py +0 -32
- jijmodeling/match/is_same_expr.py +0 -304
- jijmodeling/match/penalty_same.py +0 -31
- jijmodeling/match/problem_same.py +0 -44
- jijmodeling/match/replace.py +0 -210
- jijmodeling/problem/__init__.py +0 -9
- jijmodeling/problem/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/problem/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/problem/__pycache__/problem.cpython-310.opt-1.pyc +0 -0
- jijmodeling/problem/__pycache__/problem.cpython-310.pyc +0 -0
- jijmodeling/problem/problem.py +0 -166
- jijmodeling/protobuf/__init__.py +0 -8
- jijmodeling/protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__init__.py +0 -47
- jijmodeling/protobuf/from_protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/extract_attribute_value_from_header.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/extract_attribute_value_from_header.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/from_protobuf.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/from_protobuf.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_array_shape.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_array_shape.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_op.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_op.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_var.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_binary_var.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_constraint.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_constraint.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_element.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_element.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_expression.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_expression.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_forall.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_forall.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_integer_var.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_integer_var.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_jagged_array.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_jagged_array.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_number_lit.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_number_lit.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_penalty.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_penalty.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_placeholder.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_placeholder.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_problem.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_problem.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_reduction_op.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_reduction_op.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_subscript_op.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_subscript_op.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_unary_op.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/__pycache__/message_to_unary_op.cpython-310.pyc +0 -0
- jijmodeling/protobuf/from_protobuf/extract_attribute_value_from_header.py +0 -26
- jijmodeling/protobuf/from_protobuf/from_protobuf.py +0 -38
- jijmodeling/protobuf/from_protobuf/message_to_array_shape.py +0 -35
- jijmodeling/protobuf/from_protobuf/message_to_binary_op.py +0 -83
- jijmodeling/protobuf/from_protobuf/message_to_binary_var.py +0 -46
- jijmodeling/protobuf/from_protobuf/message_to_constraint.py +0 -48
- jijmodeling/protobuf/from_protobuf/message_to_element.py +0 -30
- jijmodeling/protobuf/from_protobuf/message_to_expression.py +0 -92
- jijmodeling/protobuf/from_protobuf/message_to_forall.py +0 -33
- jijmodeling/protobuf/from_protobuf/message_to_integer_var.py +0 -54
- jijmodeling/protobuf/from_protobuf/message_to_jagged_array.py +0 -25
- jijmodeling/protobuf/from_protobuf/message_to_number_lit.py +0 -41
- jijmodeling/protobuf/from_protobuf/message_to_penalty.py +0 -36
- jijmodeling/protobuf/from_protobuf/message_to_placeholder.py +0 -47
- jijmodeling/protobuf/from_protobuf/message_to_problem.py +0 -51
- jijmodeling/protobuf/from_protobuf/message_to_reduction_op.py +0 -52
- jijmodeling/protobuf/from_protobuf/message_to_subscript_op.py +0 -46
- jijmodeling/protobuf/from_protobuf/message_to_unary_op.py +0 -47
- jijmodeling/protobuf/to_protobuf/__init__.py +0 -43
- jijmodeling/protobuf/to_protobuf/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/add_header_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/add_header_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/array_shape_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/array_shape_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/binary_op_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/binary_op_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/binary_var_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/binary_var_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/constraint_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/constraint_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/element_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/element_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/expression_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/expression_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/forall_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/forall_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/integer_var_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/integer_var_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/jagged_array_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/jagged_array_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/number_lit_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/number_lit_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/penalty_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/penalty_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/placeholder_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/placeholder_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/problem_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/problem_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/reduction_op_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/reduction_op_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/subscript_op_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/subscript_op_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/to_protobuf.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/to_protobuf.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/unary_op_to_message.cpython-310.opt-1.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/__pycache__/unary_op_to_message.cpython-310.pyc +0 -0
- jijmodeling/protobuf/to_protobuf/add_header_to_message.py +0 -35
- jijmodeling/protobuf/to_protobuf/array_shape_to_message.py +0 -43
- jijmodeling/protobuf/to_protobuf/binary_op_to_message.py +0 -101
- jijmodeling/protobuf/to_protobuf/binary_var_to_message.py +0 -49
- jijmodeling/protobuf/to_protobuf/constraint_to_message.py +0 -52
- jijmodeling/protobuf/to_protobuf/element_to_message.py +0 -43
- jijmodeling/protobuf/to_protobuf/expression_to_message.py +0 -89
- jijmodeling/protobuf/to_protobuf/forall_to_message.py +0 -32
- jijmodeling/protobuf/to_protobuf/integer_var_to_message.py +0 -54
- jijmodeling/protobuf/to_protobuf/jagged_array_to_message.py +0 -37
- jijmodeling/protobuf/to_protobuf/number_lit_to_message.py +0 -52
- jijmodeling/protobuf/to_protobuf/penalty_to_message.py +0 -42
- jijmodeling/protobuf/to_protobuf/placeholder_to_message.py +0 -58
- jijmodeling/protobuf/to_protobuf/problem_to_message.py +0 -54
- jijmodeling/protobuf/to_protobuf/reduction_op_to_message.py +0 -64
- jijmodeling/protobuf/to_protobuf/subscript_op_to_message.py +0 -48
- jijmodeling/protobuf/to_protobuf/to_protobuf.py +0 -36
- jijmodeling/protobuf/to_protobuf/unary_op_to_message.py +0 -58
- jijmodeling/sampleset/__init__.py +0 -33
- jijmodeling/sampleset/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/sampleset/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/sampleset/__pycache__/evaluation.cpython-310.opt-1.pyc +0 -0
- jijmodeling/sampleset/__pycache__/evaluation.cpython-310.pyc +0 -0
- jijmodeling/sampleset/__pycache__/measuring_time.cpython-310.opt-1.pyc +0 -0
- jijmodeling/sampleset/__pycache__/measuring_time.cpython-310.pyc +0 -0
- jijmodeling/sampleset/__pycache__/record.cpython-310.opt-1.pyc +0 -0
- jijmodeling/sampleset/__pycache__/record.cpython-310.pyc +0 -0
- jijmodeling/sampleset/__pycache__/sampleset.cpython-310.opt-1.pyc +0 -0
- jijmodeling/sampleset/__pycache__/sampleset.cpython-310.pyc +0 -0
- jijmodeling/sampleset/__pycache__/solving_time.cpython-310.opt-1.pyc +0 -0
- jijmodeling/sampleset/__pycache__/solving_time.cpython-310.pyc +0 -0
- jijmodeling/sampleset/__pycache__/system_time.cpython-310.opt-1.pyc +0 -0
- jijmodeling/sampleset/__pycache__/system_time.cpython-310.pyc +0 -0
- jijmodeling/sampleset/evaluation.py +0 -288
- jijmodeling/sampleset/measuring_time.py +0 -59
- jijmodeling/sampleset/record.py +0 -158
- jijmodeling/sampleset/sampleset.py +0 -379
- jijmodeling/sampleset/solving_time.py +0 -38
- jijmodeling/sampleset/system_time.py +0 -48
- jijmodeling/type_annotations/__init__.py +0 -44
- jijmodeling/type_annotations/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/type_annotations/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/type_annotations/__pycache__/type_annotations.cpython-310.opt-1.pyc +0 -0
- jijmodeling/type_annotations/__pycache__/type_annotations.cpython-310.pyc +0 -0
- jijmodeling/type_annotations/type_annotations.py +0 -54
- jijmodeling/utils/__init__.py +0 -28
- jijmodeling/utils/__pycache__/__init__.cpython-310.opt-1.pyc +0 -0
- jijmodeling/utils/__pycache__/__init__.cpython-310.pyc +0 -0
- jijmodeling/utils/__pycache__/utils.cpython-310.opt-1.pyc +0 -0
- jijmodeling/utils/__pycache__/utils.cpython-310.pyc +0 -0
- jijmodeling/utils/utils.py +0 -146
- jijmodeling-0.10.18.dist-info/METADATA +0 -60
- jijmodeling-0.10.18.dist-info/RECORD +0 -258
- jijmodeling-0.10.18.dist-info/top_level.txt +0 -1
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import warnings
|
|
4
|
-
|
|
5
|
-
from typing import List, Optional, Tuple, Union
|
|
6
|
-
|
|
7
|
-
import jijmodeling.exceptions.exceptions as _exceptions
|
|
8
|
-
import jijmodeling.expression.expression as _expression
|
|
9
|
-
import jijmodeling.expression.type_annotations as _type_annotations
|
|
10
|
-
import jijmodeling.expression.variables.variable as _variable
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class DecisionVariable(_variable.Variable):
|
|
14
|
-
def __init__(
|
|
15
|
-
self,
|
|
16
|
-
label: str,
|
|
17
|
-
shape: Union[
|
|
18
|
-
List[_type_annotations.ShapeElemInputType],
|
|
19
|
-
Tuple[_type_annotations.ShapeElemInputType, ...],
|
|
20
|
-
_type_annotations.ShapeElemInputType,
|
|
21
|
-
],
|
|
22
|
-
uuid: Optional[str] = None,
|
|
23
|
-
):
|
|
24
|
-
super().__init__(label, shape, uuid) # type: ignore
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class Binary(DecisionVariable):
|
|
28
|
-
"""Binary decision variable 0 or 1.
|
|
29
|
-
|
|
30
|
-
Example:
|
|
31
|
-
```python
|
|
32
|
-
import jijmodeling as jm
|
|
33
|
-
n = jm.Placeholder("n")
|
|
34
|
-
x = jm.Binary("x", shape=(n,))
|
|
35
|
-
# scalar variable
|
|
36
|
-
y = jm.Binary("y")
|
|
37
|
-
```
|
|
38
|
-
"""
|
|
39
|
-
|
|
40
|
-
def __init__(
|
|
41
|
-
self,
|
|
42
|
-
label: str,
|
|
43
|
-
shape=(),
|
|
44
|
-
uuid: Optional[str] = None,
|
|
45
|
-
):
|
|
46
|
-
super().__init__(label, shape, uuid)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
class Integer(DecisionVariable):
|
|
50
|
-
"""Integer decision variable."""
|
|
51
|
-
|
|
52
|
-
prefix = "_leint_"
|
|
53
|
-
|
|
54
|
-
def __init__(
|
|
55
|
-
self,
|
|
56
|
-
label: str,
|
|
57
|
-
lower: Union[_expression.Expression, int, float],
|
|
58
|
-
upper: Union[_expression.Expression, int, float],
|
|
59
|
-
shape: Union[
|
|
60
|
-
List[_type_annotations.ShapeElemInputType],
|
|
61
|
-
Tuple[_type_annotations.ShapeElemInputType, ...],
|
|
62
|
-
_type_annotations.ShapeElemInputType,
|
|
63
|
-
] = (),
|
|
64
|
-
uuid: Optional[str] = None,
|
|
65
|
-
):
|
|
66
|
-
super().__init__(label, shape, uuid)
|
|
67
|
-
|
|
68
|
-
if isinstance(lower, (int, float)):
|
|
69
|
-
self._lower: _expression.Expression = _expression.Number(lower)
|
|
70
|
-
else:
|
|
71
|
-
self._lower = lower
|
|
72
|
-
if isinstance(upper, (int, float)):
|
|
73
|
-
self._upper: _expression.Expression = _expression.Number(upper)
|
|
74
|
-
else:
|
|
75
|
-
self._upper = upper
|
|
76
|
-
|
|
77
|
-
# check if self._lower is operatable or self._lower.shape equals to
|
|
78
|
-
# self.shape
|
|
79
|
-
from jijmodeling.match.expr_same import expr_same
|
|
80
|
-
|
|
81
|
-
def has_equal_shape(shape1, shape2):
|
|
82
|
-
if len(shape1) != len(shape2):
|
|
83
|
-
return False
|
|
84
|
-
else:
|
|
85
|
-
return all(
|
|
86
|
-
map(
|
|
87
|
-
lambda x: expr_same(x[0], x[1], check_id=False),
|
|
88
|
-
zip(list(shape1), list(shape2)),
|
|
89
|
-
)
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
if not (
|
|
93
|
-
self._lower.is_operatable()
|
|
94
|
-
or has_equal_shape(self._lower.shape, self.shape)
|
|
95
|
-
): # type: ignore
|
|
96
|
-
raise _exceptions.ModelingError(
|
|
97
|
-
"self._lower must be operatable or self._lower.shape must be equal to self.shape"
|
|
98
|
-
)
|
|
99
|
-
|
|
100
|
-
if not (
|
|
101
|
-
self._upper.is_operatable()
|
|
102
|
-
or has_equal_shape(self._upper.shape, self.shape)
|
|
103
|
-
): # type: ignore
|
|
104
|
-
raise _exceptions.ModelingError(
|
|
105
|
-
"self._upper must be operatable or self._upper.shape must be equal to self.shape"
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
import jijmodeling.expression.utils as _utils
|
|
109
|
-
|
|
110
|
-
_utils.check_non_decision_variable(
|
|
111
|
-
[self.lower, self.upper],
|
|
112
|
-
f"The lower and upper of '{self.label}' cannot contain decision variable.",
|
|
113
|
-
)
|
|
114
|
-
|
|
115
|
-
@property
|
|
116
|
-
def lower(self):
|
|
117
|
-
return self._lower
|
|
118
|
-
|
|
119
|
-
@property
|
|
120
|
-
def upper(self):
|
|
121
|
-
return self._upper
|
|
122
|
-
|
|
123
|
-
def children(self) -> List[_expression.Expression]:
|
|
124
|
-
children = super().children() + [self.lower, self.upper]
|
|
125
|
-
return children
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
def LogEncInteger(*args, **kwargs) -> Integer:
|
|
129
|
-
"""
|
|
130
|
-
This constructor method is deprecated.
|
|
131
|
-
|
|
132
|
-
Returns:
|
|
133
|
-
Integer: Integer object.
|
|
134
|
-
"""
|
|
135
|
-
warnings.warn("LogEncInteger is deprecated. Please use jijmodeling.Integer.")
|
|
136
|
-
return Integer(*args, **kwargs)
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from typing import Optional, Tuple
|
|
4
|
-
|
|
5
|
-
import jijmodeling.exceptions.exceptions as _exceptions
|
|
6
|
-
import jijmodeling.expression.type_annotations as _type_annotations
|
|
7
|
-
import jijmodeling.expression.variables.placeholders as _placeholders
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class JaggedArray(_placeholders.Placeholder):
|
|
11
|
-
"""
|
|
12
|
-
Jagged array: A data structure in which each element in a two-dimensional.
|
|
13
|
-
|
|
14
|
-
array has a different length in a one-dimensional array. The internal
|
|
15
|
-
length of the data is different, so `shape` is not defined. Only `shape[0]`
|
|
16
|
-
can be accessed directly in `.shape`.
|
|
17
|
-
|
|
18
|
-
A jagged array is an array with the following data structure, for example
|
|
19
|
-
|
|
20
|
-
```python
|
|
21
|
-
[[1, 2, 3],
|
|
22
|
-
[3, 2, 4, 5],
|
|
23
|
-
[0, 1]]
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
The Placeholder class can handle multi-dimensional arrays that can be defined with shape, but it cannot handle a jagged arrays.
|
|
27
|
-
Therefore, we need to use this class instead.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
def __init__(
|
|
31
|
-
self,
|
|
32
|
-
label: str,
|
|
33
|
-
dim: int,
|
|
34
|
-
uuid: Optional[str] = None,
|
|
35
|
-
):
|
|
36
|
-
"""
|
|
37
|
-
Args:
|
|
38
|
-
label (str): label of variable
|
|
39
|
-
dim (int): dimension of jagged array. Because of the jagged array data structure, `shape` cannot be specified in the constructor.
|
|
40
|
-
uuid (Optional[str], optional): uuid. Defaults to None.
|
|
41
|
-
|
|
42
|
-
Raises:
|
|
43
|
-
ModelingError: The jagged array can currently only handle up to two dimensions. This limitation will be resolved in an update.
|
|
44
|
-
"""
|
|
45
|
-
|
|
46
|
-
if dim > 5:
|
|
47
|
-
raise _exceptions.ModelingError(
|
|
48
|
-
"JaggedArray must be set to 5-dim or less, not {}.".format(dim)
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
self._dim = dim
|
|
52
|
-
super().__init__(label, dim, uuid=uuid)
|
|
53
|
-
|
|
54
|
-
@property
|
|
55
|
-
def dim(self) -> int:
|
|
56
|
-
return self._dim
|
|
57
|
-
|
|
58
|
-
@property
|
|
59
|
-
def shape(self) -> Tuple[_type_annotations.ShapeElementType]:
|
|
60
|
-
"""
|
|
61
|
-
Shape cannot be defined in the jagged array.
|
|
62
|
-
|
|
63
|
-
Only the length can be
|
|
64
|
-
defined, so only the `.shape[0]` corresponding to the length is returned.
|
|
65
|
-
|
|
66
|
-
Returns:
|
|
67
|
-
Tuple[Expression]: (length, )
|
|
68
|
-
"""
|
|
69
|
-
return (super().shape[0],)
|
|
70
|
-
|
|
71
|
-
@property
|
|
72
|
-
def length(self) -> _type_annotations.ShapeElementType:
|
|
73
|
-
return self.shape[0]
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import typing as tp
|
|
4
|
-
|
|
5
|
-
from typeguard import check_type
|
|
6
|
-
|
|
7
|
-
import jijmodeling.expression.expression as _expression
|
|
8
|
-
import jijmodeling.expression.variables.variable as _variable
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Placeholder(_variable.Variable):
|
|
12
|
-
"""
|
|
13
|
-
Placeholder variable.
|
|
14
|
-
|
|
15
|
-
Variables for pouring in data when converting to QUBO or to MIP.
|
|
16
|
-
When using the Placeholder class,
|
|
17
|
-
you can specify the specific value to be placed in the Placeholder
|
|
18
|
-
by using the `ph_value` argument of methods such as `.to_pyqubo` and `.to_lp` of the Problem class.
|
|
19
|
-
If you want to handle array data that cannot be defined with shape (called jagged array), you can use the `JaggedArray` class.
|
|
20
|
-
|
|
21
|
-
Example:
|
|
22
|
-
```python
|
|
23
|
-
>>> import jijmodeling as jm
|
|
24
|
-
>>> d = jm.Placeholder("d", dim=2)
|
|
25
|
-
>>> d.dim
|
|
26
|
-
2
|
|
27
|
-
>>> k = jm.Placeholder("k", shape=(3, ))
|
|
28
|
-
>>> k.dim
|
|
29
|
-
1
|
|
30
|
-
```
|
|
31
|
-
"""
|
|
32
|
-
|
|
33
|
-
def __init__(
|
|
34
|
-
self,
|
|
35
|
-
label: str,
|
|
36
|
-
dim: tp.Optional[int] = None,
|
|
37
|
-
shape=None,
|
|
38
|
-
uuid: tp.Optional[str] = None,
|
|
39
|
-
):
|
|
40
|
-
if shape is not None:
|
|
41
|
-
_shape = shape
|
|
42
|
-
elif shape is None and dim is not None:
|
|
43
|
-
_shape = tuple(None for _ in range(dim))
|
|
44
|
-
else:
|
|
45
|
-
_shape = []
|
|
46
|
-
super().__init__(label, shape=_shape, uuid=uuid)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
class ArrayShape(Placeholder):
|
|
50
|
-
"""
|
|
51
|
-
Shape of variable.
|
|
52
|
-
|
|
53
|
-
Example:
|
|
54
|
-
```python
|
|
55
|
-
>>> import jijmodeling as jm
|
|
56
|
-
>>> d = jm.Placeholder("d", dim=1)
|
|
57
|
-
>>> n = d.shape[0]
|
|
58
|
-
>>> print(type(n))
|
|
59
|
-
<class 'ArrayShape'>
|
|
60
|
-
```
|
|
61
|
-
"""
|
|
62
|
-
|
|
63
|
-
def __init__(
|
|
64
|
-
self,
|
|
65
|
-
array: tp.Union[_variable.Variable, _variable.Subscripts],
|
|
66
|
-
dimension: int,
|
|
67
|
-
uuid: tp.Optional[str] = None,
|
|
68
|
-
):
|
|
69
|
-
"""
|
|
70
|
-
Basically, a user does not call the constuctor directly; an object of.
|
|
71
|
-
|
|
72
|
-
this class is created instead when shape value of a variable is None.
|
|
73
|
-
|
|
74
|
-
Args:
|
|
75
|
-
array (Variable): parent array
|
|
76
|
-
dimension (int): dimension is corresponded this object.
|
|
77
|
-
"""
|
|
78
|
-
self._array = array
|
|
79
|
-
self._dimension = dimension
|
|
80
|
-
|
|
81
|
-
# type and value validation
|
|
82
|
-
ArrayType = tp.Union[_variable.Variable, _variable.Subscripts]
|
|
83
|
-
check_type("self._array", self._array, ArrayType)
|
|
84
|
-
check_type("self._dimension", self._dimension, int)
|
|
85
|
-
|
|
86
|
-
super().__init__(str(self._array) + "_shape_%d" % dimension, uuid=uuid)
|
|
87
|
-
|
|
88
|
-
@property
|
|
89
|
-
def array(self):
|
|
90
|
-
return self._array
|
|
91
|
-
|
|
92
|
-
@property
|
|
93
|
-
def array_dim(self):
|
|
94
|
-
return self.array.dim
|
|
95
|
-
|
|
96
|
-
@property
|
|
97
|
-
def dimension(self):
|
|
98
|
-
return self._dimension
|
|
99
|
-
|
|
100
|
-
def is_operatable(self) -> bool:
|
|
101
|
-
return True
|
|
102
|
-
|
|
103
|
-
def children(self) -> tp.List[_expression.Expression]:
|
|
104
|
-
return [self.array]
|
|
105
|
-
|
|
106
|
-
def __hash__(self) -> int:
|
|
107
|
-
return hash(self.label)
|