jijmodeling 1.4.1__cp311-cp311-macosx_10_16_x86_64.whl → 1.6.0__cp311-cp311-macosx_10_16_x86_64.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__.pyi +3 -0
- jijmodeling/_jijmodeling.cpython-311-darwin.so +0 -0
- jijmodeling/experimental.py +1 -1
- jijmodeling/experimental.pyi +25 -0
- {jijmodeling-1.4.1.dist-info → jijmodeling-1.6.0.dist-info}/METADATA +1 -1
- jijmodeling-1.6.0.dist-info/RECORD +12 -0
- {jijmodeling-1.4.1.dist-info → jijmodeling-1.6.0.dist-info}/WHEEL +1 -1
- jijmodeling-1.4.1.dist-info/RECORD +0 -12
- {jijmodeling-1.4.1.dist-info → jijmodeling-1.6.0.dist-info}/license_files/LICENSE.txt +0 -0
jijmodeling/__init__.pyi
CHANGED
|
Binary file
|
jijmodeling/experimental.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# and exposes all the components in `jijmodeling.jijmodeling.experimental`
|
|
7
7
|
#
|
|
8
8
|
|
|
9
|
-
from ._jijmodeling import experimental as _experimental
|
|
9
|
+
from ._jijmodeling import experimental as _experimental # type: ignore
|
|
10
10
|
import sys
|
|
11
11
|
|
|
12
12
|
for component in _experimental.__all__:
|
jijmodeling/experimental.pyi
CHANGED
|
@@ -74,12 +74,37 @@ class Sample:
|
|
|
74
74
|
def __repr__(self) -> str:
|
|
75
75
|
...
|
|
76
76
|
|
|
77
|
+
def __eq__(self, other) -> bool:
|
|
78
|
+
...
|
|
79
|
+
|
|
77
80
|
def is_feasible(self, epsilon = ...) -> bool:
|
|
78
81
|
...
|
|
79
82
|
|
|
80
83
|
def to_dense(self) -> Dict[str, Any]:
|
|
81
84
|
...
|
|
82
85
|
|
|
86
|
+
@staticmethod
|
|
87
|
+
def from_dict(dict) -> Any:
|
|
88
|
+
r"""
|
|
89
|
+
Converts a python dictionary into a SampleSet.
|
|
90
|
+
|
|
91
|
+
This is intended to be used primarily with dictionaries generated by
|
|
92
|
+
the `to_dict()` method. As such sparse value maps must be represented as
|
|
93
|
+
association lists.
|
|
94
|
+
"""
|
|
95
|
+
...
|
|
96
|
+
|
|
97
|
+
def to_dict(self) -> Any:
|
|
98
|
+
r"""
|
|
99
|
+
Converts this SampleSet into a regular python dictionary.
|
|
100
|
+
|
|
101
|
+
Note that this dictionary has a slightly different structure to better support JSON
|
|
102
|
+
serialization of the output dictionary: sparse values are stored differently. Any mapping
|
|
103
|
+
with tuples as keys is transformed into an association list of key-value pairs,
|
|
104
|
+
that is, `[(k1, v1), (k2, v2), ...]`.
|
|
105
|
+
"""
|
|
106
|
+
...
|
|
107
|
+
|
|
83
108
|
|
|
84
109
|
@final
|
|
85
110
|
class SampleIter:
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
jijmodeling-1.6.0.dist-info/METADATA,sha256=NIX1DwgAgCJ_MpAGU7Zv-NJx4gsOsXimgTZDAw2QQuA,12760
|
|
2
|
+
jijmodeling-1.6.0.dist-info/WHEEL,sha256=aQTG6AE6Je4vNZP8vykS_1O23HaQ2t69HHEU7taD-F8,106
|
|
3
|
+
jijmodeling-1.6.0.dist-info/license_files/LICENSE.txt,sha256=T5HdEbP5NWG8fZbvF9pofeteW3HrS30V3_LvtPUHFYM,3400
|
|
4
|
+
jijmodeling/experimental.py,sha256=Of-tUY3kfpFHpjGbIcclbMenCP2BMW07me895YH7tG8,575
|
|
5
|
+
jijmodeling/__init__.pyi,sha256=2Y6bSIZqRuTJAdiQaQ1aoFjPX7nkAtcFj69qGww7xa4,114698
|
|
6
|
+
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
7
|
+
jijmodeling/dataset.pyi,sha256=x77frITd2LuKQ_kG457wyBGG-Fi5K-Ym0hKFC_CNOxw,4022
|
|
8
|
+
jijmodeling/experimental.pyi,sha256=D_ejdT0zxLXqe_8sx2_8cY84OaZwacEhJuuXDLm0l0g,8288
|
|
9
|
+
jijmodeling/dataset.py,sha256=S4piVIiUGJMi8MlG3kFV-8JIkzvnktAS0IdkbJ655hw,185
|
|
10
|
+
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
jijmodeling/_jijmodeling.cpython-311-darwin.so,sha256=h6I7OrshlSORot_hxWYKjVgf8rT5qTh2KAxiNdNBInc,4341984
|
|
12
|
+
jijmodeling-1.6.0.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
jijmodeling-1.4.1.dist-info/METADATA,sha256=ar8644EcHr7oe5C-imFyxm7TivK9mwudK40eQsXisVs,12760
|
|
2
|
-
jijmodeling-1.4.1.dist-info/WHEEL,sha256=iyhrUHE6bGzmqKSBSM43At4JPQSxcLWJSBpuue9XWtY,106
|
|
3
|
-
jijmodeling-1.4.1.dist-info/license_files/LICENSE.txt,sha256=T5HdEbP5NWG8fZbvF9pofeteW3HrS30V3_LvtPUHFYM,3400
|
|
4
|
-
jijmodeling/experimental.py,sha256=52Hhua5YkQjLtElzorBMPKSM5WWMzoJoIBmwPXj6qjI,574
|
|
5
|
-
jijmodeling/__init__.pyi,sha256=jOljniwoDuLFMqYyDHh-VAQT9gtXmrhtfbZnXzfsTyc,114639
|
|
6
|
-
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
7
|
-
jijmodeling/dataset.pyi,sha256=x77frITd2LuKQ_kG457wyBGG-Fi5K-Ym0hKFC_CNOxw,4022
|
|
8
|
-
jijmodeling/experimental.pyi,sha256=LadFGzSSdP4IX1_PF1DhAIdRvdCBorLu2k1mf88rpMk,7434
|
|
9
|
-
jijmodeling/dataset.py,sha256=S4piVIiUGJMi8MlG3kFV-8JIkzvnktAS0IdkbJ655hw,185
|
|
10
|
-
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
jijmodeling/_jijmodeling.cpython-311-darwin.so,sha256=RdhzIFa-5m5B3SSYBqaSbBQ5gx6i5cBka6Nk7HmDowE,4231520
|
|
12
|
-
jijmodeling-1.4.1.dist-info/RECORD,,
|
|
File without changes
|