jijmodeling 2.0.0a6__cp38-abi3-manylinux_2_28_aarch64.whl → 2.0.0a7__cp38-abi3-manylinux_2_28_aarch64.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 +66 -34
- jijmodeling/_jijmodeling.abi3.so +0 -0
- {jijmodeling-2.0.0a6.dist-info → jijmodeling-2.0.0a7.dist-info}/METADATA +1 -1
- jijmodeling-2.0.0a7.dist-info/RECORD +9 -0
- jijmodeling-2.0.0a6.dist-info/RECORD +0 -9
- {jijmodeling-2.0.0a6.dist-info → jijmodeling-2.0.0a7.dist-info}/WHEEL +0 -0
- {jijmodeling-2.0.0a6.dist-info → jijmodeling-2.0.0a7.dist-info}/licenses/LICENSE.txt +0 -0
jijmodeling/__init__.pyi
CHANGED
|
@@ -24,32 +24,38 @@ class Compiler:
|
|
|
24
24
|
def from_problem(problem:Problem, instance_data:typing.Mapping[builtins.str, builtins.int | builtins.float | numpy.typing.NDArray[numpy.float64] | numpy.typing.NDArray[numpy.int64] | list]) -> Compiler: ...
|
|
25
25
|
|
|
26
26
|
class Constraint:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
27
|
+
@property
|
|
28
|
+
def name(self) -> builtins.str: ...
|
|
29
|
+
@property
|
|
30
|
+
def sense(self) -> ConstraintSense: ...
|
|
31
|
+
@property
|
|
32
|
+
def left(self) -> Expression: ...
|
|
33
|
+
@property
|
|
34
|
+
def right(self) -> Expression: ...
|
|
35
|
+
@property
|
|
36
|
+
def expression(self) -> Expression: ...
|
|
37
|
+
@property
|
|
38
|
+
def is_equality(self) -> builtins.bool:
|
|
39
|
+
r"""
|
|
40
|
+
Returns true if the constraint is an equality constraint.
|
|
41
|
+
|
|
42
|
+
Returns
|
|
43
|
+
--------
|
|
44
|
+
`bool`: True if the constraint is an equality constraint. Otherwise, False.
|
|
45
|
+
|
|
46
|
+
Examples
|
|
47
|
+
---------
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
>>> import jijmodeling as jm
|
|
51
|
+
>>> N = jm.Placeholder("N")
|
|
52
|
+
>>> i = jm.Element("i", belong_to=N)
|
|
53
|
+
>>> x = jm.BinaryVar("x", shape=(N,))
|
|
54
|
+
>>> constraint = jm.Constraint("constraint", jm.sum(i, x[i]) == 1)
|
|
55
|
+
>>> assert constraint.is_equality()
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
"""
|
|
53
59
|
def is_inequality(self) -> builtins.bool:
|
|
54
60
|
r"""
|
|
55
61
|
Returns true if the constraint is an inequality constraint.
|
|
@@ -149,13 +155,20 @@ class DecisionVar:
|
|
|
149
155
|
|
|
150
156
|
```
|
|
151
157
|
"""
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
@property
|
|
159
|
+
def name(self) -> builtins.str: ...
|
|
160
|
+
@property
|
|
161
|
+
def kind(self) -> DecisionVarKind: ...
|
|
162
|
+
@property
|
|
163
|
+
def description(self) -> builtins.str: ...
|
|
164
|
+
@property
|
|
165
|
+
def ndim(self) -> builtins.int: ...
|
|
166
|
+
@property
|
|
167
|
+
def shape(self) -> tuple: ...
|
|
168
|
+
@property
|
|
169
|
+
def lower_bound(self) -> Expression | builtins.list[Expression]: ...
|
|
170
|
+
@property
|
|
171
|
+
def upper_bound(self) -> Expression | builtins.list[Expression]: ...
|
|
159
172
|
def __repr__(self) -> builtins.str: ...
|
|
160
173
|
def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression: ...
|
|
161
174
|
def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression: ...
|
|
@@ -1286,6 +1299,13 @@ def min(lhs:Expression | builtins.int | builtins.float | DecisionVar | Placehold
|
|
|
1286
1299
|
|
|
1287
1300
|
def neg(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any]) -> Expression: ...
|
|
1288
1301
|
|
|
1302
|
+
@typing.overload
|
|
1303
|
+
def prod(x:typing.Generator[Expression]) -> Expression:
|
|
1304
|
+
r"""
|
|
1305
|
+
Comprehension syntax for jm.sum (NOTE: only works with decorated API!)
|
|
1306
|
+
"""
|
|
1307
|
+
|
|
1308
|
+
@typing.overload
|
|
1289
1309
|
def prod(operand:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any], axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression: ...
|
|
1290
1310
|
|
|
1291
1311
|
def roll(operand:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any], shift:typing.Any, *, axis:typing.Optional[builtins.int]=None) -> Expression: ...
|
|
@@ -1298,7 +1318,19 @@ def sinh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeho
|
|
|
1298
1318
|
|
|
1299
1319
|
def sqrt(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any]) -> Expression: ...
|
|
1300
1320
|
|
|
1301
|
-
|
|
1321
|
+
@typing.overload
|
|
1322
|
+
def sum(x:typing.Generator[Expression]) -> Expression:
|
|
1323
|
+
r"""
|
|
1324
|
+
Comprehension syntax for jm.sum (NOTE: only works with decorated API!)
|
|
1325
|
+
"""
|
|
1326
|
+
|
|
1327
|
+
@typing.overload
|
|
1328
|
+
def sum(operand:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any], axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
1329
|
+
r"""
|
|
1330
|
+
Takes a summation of set or tensor-like expression.
|
|
1331
|
+
You can use `axis` to partially reducing the tensor along
|
|
1332
|
+
specified axes.
|
|
1333
|
+
"""
|
|
1302
1334
|
|
|
1303
1335
|
def tan(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Callable[[Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression], typing.Any] | typing.Callable[[Expression, Expression, Expression, Expression, Expression], typing.Any]) -> Expression: ...
|
|
1304
1336
|
|
jijmodeling/_jijmodeling.abi3.so
CHANGED
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
jijmodeling-2.0.0a7.dist-info/METADATA,sha256=xZC3whFpGaEXEnZdDY9XgJb-nd8RdpMVEk4bl6peCLk,2479
|
|
2
|
+
jijmodeling-2.0.0a7.dist-info/WHEEL,sha256=mr1qZox3cYDvZG5vJCnwvnEBrBI82LkztNJzwKJciAs,107
|
|
3
|
+
jijmodeling-2.0.0a7.dist-info/licenses/LICENSE.txt,sha256=T5HdEbP5NWG8fZbvF9pofeteW3HrS30V3_LvtPUHFYM,3400
|
|
4
|
+
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
5
|
+
jijmodeling/__init__.pyi,sha256=tIpQi5yETLtj1ENwGc5IYC7MdpMInHF12czxzWwAtUs,141965
|
|
6
|
+
jijmodeling/_jijmodeling.abi3.so,sha256=8-etT5cYUJhlFNsNnL5zqUqjl0LqhhDkx9UVip6lqfY,8859056
|
|
7
|
+
jijmodeling/_jijmodeling.pyi,sha256=9towCfPT8yTmJxvncDdME7ZCeFSSntPxAd_TT_spuXQ,162
|
|
8
|
+
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
jijmodeling-2.0.0a7.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
jijmodeling-2.0.0a6.dist-info/METADATA,sha256=2VrFrvyjqXa1xzfguzSVpo9Ixyit-TAVd5r0akUoAVM,2479
|
|
2
|
-
jijmodeling-2.0.0a6.dist-info/WHEEL,sha256=mr1qZox3cYDvZG5vJCnwvnEBrBI82LkztNJzwKJciAs,107
|
|
3
|
-
jijmodeling-2.0.0a6.dist-info/licenses/LICENSE.txt,sha256=T5HdEbP5NWG8fZbvF9pofeteW3HrS30V3_LvtPUHFYM,3400
|
|
4
|
-
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
5
|
-
jijmodeling/__init__.pyi,sha256=wS4zwiFzlhbXh0LEiLIuBoli3sn4AvRhtZGd8iRH4k4,140970
|
|
6
|
-
jijmodeling/_jijmodeling.abi3.so,sha256=vGBSekTwJOgxzZ_NNCLxXTUYaAyph8hVs985bUEuoEA,8842672
|
|
7
|
-
jijmodeling/_jijmodeling.pyi,sha256=9towCfPT8yTmJxvncDdME7ZCeFSSntPxAd_TT_spuXQ,162
|
|
8
|
-
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
jijmodeling-2.0.0a6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|