jijmodeling 2.0.0a0__cp38-abi3-macosx_10_16_x86_64.whl → 2.0.0a2__cp38-abi3-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 +97 -79
- jijmodeling/_jijmodeling.abi3.so +0 -0
- {jijmodeling-2.0.0a0.dist-info → jijmodeling-2.0.0a2.dist-info}/METADATA +2 -2
- jijmodeling-2.0.0a2.dist-info/RECORD +9 -0
- {jijmodeling-2.0.0a0.dist-info → jijmodeling-2.0.0a2.dist-info}/WHEEL +1 -1
- jijmodeling-2.0.0a0.dist-info/RECORD +0 -9
- {jijmodeling-2.0.0a0.dist-info → jijmodeling-2.0.0a2.dist-info}/licenses/LICENSE.txt +0 -0
jijmodeling/__init__.pyi
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# ruff: noqa: E501, F401
|
|
3
3
|
|
|
4
4
|
import builtins
|
|
5
|
+
import ommx.v1
|
|
5
6
|
import typing
|
|
6
7
|
from . import _jijmodeling
|
|
7
8
|
from enum import Enum, auto
|
|
@@ -9,17 +10,26 @@ from enum import Enum, auto
|
|
|
9
10
|
__version__: builtins.str
|
|
10
11
|
class Compiler:
|
|
11
12
|
def __new__(cls,namespace:Namespace, instance_data:dict): ...
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
def get_constraint_id_by_name(self, name:builtins.str) -> dict:
|
|
14
|
+
r"""
|
|
15
|
+
Obtains a dictionary from subscript to constraint Id.
|
|
16
|
+
"""
|
|
17
|
+
...
|
|
18
|
+
|
|
19
|
+
def eval_function(self, expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> ommx.v1.Function:
|
|
14
20
|
...
|
|
15
21
|
|
|
16
|
-
def
|
|
22
|
+
def eval_constraints(self, constraint:Constraint) -> builtins.list[ommx.v1.Constraint]:
|
|
17
23
|
...
|
|
18
24
|
|
|
19
|
-
def
|
|
25
|
+
def eval_problem(self, problem:Problem) -> ommx.v1.Instance:
|
|
20
26
|
...
|
|
21
27
|
|
|
22
|
-
def
|
|
28
|
+
def get_decision_variable_by_name(self, name:builtins.str, subscript:typing.Optional[typing.Sequence[builtins.int]]=None) -> ommx.v1.DecisionVariable:
|
|
29
|
+
...
|
|
30
|
+
|
|
31
|
+
@staticmethod
|
|
32
|
+
def from_problem(problem:Problem, instance_data:dict) -> Compiler:
|
|
23
33
|
...
|
|
24
34
|
|
|
25
35
|
|
|
@@ -57,24 +67,6 @@ class Constraint:
|
|
|
57
67
|
...
|
|
58
68
|
|
|
59
69
|
|
|
60
|
-
class DataType:
|
|
61
|
-
@classmethod
|
|
62
|
-
def FLOAT(cls, _cls:type) -> DataType:
|
|
63
|
-
...
|
|
64
|
-
|
|
65
|
-
@classmethod
|
|
66
|
-
def INTEGER(cls, _cls:type) -> DataType:
|
|
67
|
-
...
|
|
68
|
-
|
|
69
|
-
@classmethod
|
|
70
|
-
def BINARY(cls, _cls:type) -> DataType:
|
|
71
|
-
...
|
|
72
|
-
|
|
73
|
-
@classmethod
|
|
74
|
-
def NATURAL(cls, _cls:type) -> DataType:
|
|
75
|
-
...
|
|
76
|
-
|
|
77
|
-
|
|
78
70
|
class DecisionVar:
|
|
79
71
|
r"""
|
|
80
72
|
A class representing a decision variable in a mathematical model.
|
|
@@ -161,13 +153,13 @@ class DecisionVar:
|
|
|
161
153
|
def __repr__(self) -> builtins.str:
|
|
162
154
|
...
|
|
163
155
|
|
|
164
|
-
def __getitem__(self,
|
|
156
|
+
def __getitem__(self, subscripts:typing.Any) -> Expression:
|
|
165
157
|
...
|
|
166
158
|
|
|
167
|
-
def sum(self, axis:typing.Optional[Expression | builtins.int | typing.Sequence[Expression] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
159
|
+
def sum(self, axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
168
160
|
...
|
|
169
161
|
|
|
170
|
-
def prod(self, axis:typing.Optional[Expression | builtins.int | typing.Sequence[Expression] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
162
|
+
def prod(self, axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
171
163
|
...
|
|
172
164
|
|
|
173
165
|
def __eq__(self, other:typing.Any) -> Expression:
|
|
@@ -231,10 +223,6 @@ class DecisionVar:
|
|
|
231
223
|
class Expression:
|
|
232
224
|
r"""
|
|
233
225
|
Any expression in Python.
|
|
234
|
-
|
|
235
|
-
NOTE: to allow custom [`FromPyObject`] and `#[pyclass]`, we MUST NOT impl [`Clone`] trait directly on this type;
|
|
236
|
-
see https://github.com/PyO3/pyo3/issues/4337 for the discussion.
|
|
237
|
-
Instead, we use a custom [`PyExpression::clone`] and [`PyExpression::clone_from`] methods for cloning.
|
|
238
226
|
"""
|
|
239
227
|
def map(self, func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
240
228
|
...
|
|
@@ -248,7 +236,7 @@ class Expression:
|
|
|
248
236
|
def min(self, other:typing.Any) -> Expression:
|
|
249
237
|
...
|
|
250
238
|
|
|
251
|
-
def
|
|
239
|
+
def bnot(self) -> Expression:
|
|
252
240
|
...
|
|
253
241
|
|
|
254
242
|
def floor(self) -> Expression:
|
|
@@ -323,13 +311,13 @@ class Expression:
|
|
|
323
311
|
def __repr__(self) -> builtins.str:
|
|
324
312
|
...
|
|
325
313
|
|
|
326
|
-
def __getitem__(self,
|
|
314
|
+
def __getitem__(self, subscripts:typing.Any) -> Expression:
|
|
327
315
|
...
|
|
328
316
|
|
|
329
|
-
def sum(self, axis:typing.Optional[Expression | builtins.int | typing.Sequence[Expression] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
317
|
+
def sum(self, axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
330
318
|
...
|
|
331
319
|
|
|
332
|
-
def prod(self, axis:typing.Optional[Expression | builtins.int | typing.Sequence[Expression] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
320
|
+
def prod(self, axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
333
321
|
...
|
|
334
322
|
|
|
335
323
|
def __eq__(self, other:typing.Any) -> Expression:
|
|
@@ -399,7 +387,7 @@ class Namespace:
|
|
|
399
387
|
def add_placeholder(self, placeholder:Placeholder) -> None:
|
|
400
388
|
...
|
|
401
389
|
|
|
402
|
-
def Placeholder(self, name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[Expression]]=None, dtype:DataType=..., jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> Placeholder:
|
|
390
|
+
def Placeholder(self, name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, dtype:DataType | type=..., jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> Placeholder:
|
|
403
391
|
...
|
|
404
392
|
|
|
405
393
|
def add_decision_var(self, var:DecisionVar) -> None:
|
|
@@ -477,13 +465,13 @@ class Placeholder:
|
|
|
477
465
|
def len_at(self, index:builtins.int) -> Expression:
|
|
478
466
|
...
|
|
479
467
|
|
|
480
|
-
def __getitem__(self,
|
|
468
|
+
def __getitem__(self, subscripts:typing.Any) -> Expression:
|
|
481
469
|
...
|
|
482
470
|
|
|
483
|
-
def sum(self, axis:typing.Optional[Expression | builtins.int | typing.Sequence[Expression] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
471
|
+
def sum(self, axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
484
472
|
...
|
|
485
473
|
|
|
486
|
-
def prod(self, axis:typing.Optional[Expression | builtins.int | typing.Sequence[Expression] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
474
|
+
def prod(self, axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
487
475
|
...
|
|
488
476
|
|
|
489
477
|
def __eq__(self, other:typing.Any) -> Expression:
|
|
@@ -572,10 +560,37 @@ class Problem:
|
|
|
572
560
|
def __repr__(self) -> builtins.str:
|
|
573
561
|
...
|
|
574
562
|
|
|
575
|
-
def
|
|
563
|
+
def eval(self, instance_data:dict) -> ommx.v1.Instance:
|
|
564
|
+
...
|
|
565
|
+
|
|
566
|
+
def Placeholder(self, name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, dtype:DataType | type=..., jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> Placeholder:
|
|
576
567
|
...
|
|
577
568
|
|
|
578
|
-
def
|
|
569
|
+
def Integer(self, name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> Placeholder:
|
|
570
|
+
r"""
|
|
571
|
+
A shorthand for `Problem.Placeholder(dtype=int)`
|
|
572
|
+
"""
|
|
573
|
+
...
|
|
574
|
+
|
|
575
|
+
def Float(self, name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> Placeholder:
|
|
576
|
+
r"""
|
|
577
|
+
A shorthand for `Problem.Placeholder(dtype=float)`
|
|
578
|
+
"""
|
|
579
|
+
...
|
|
580
|
+
|
|
581
|
+
def Natural(self, name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> Placeholder:
|
|
582
|
+
r"""
|
|
583
|
+
A shorthand for `Problem.Placeholder(dtype=DataType.NATURAL)`
|
|
584
|
+
"""
|
|
585
|
+
...
|
|
586
|
+
|
|
587
|
+
def Binary(self, name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> Placeholder:
|
|
588
|
+
r"""
|
|
589
|
+
A shorthand for `Problem.Placeholder(dtype=DataType.BINARY)`
|
|
590
|
+
"""
|
|
591
|
+
...
|
|
592
|
+
|
|
593
|
+
def DecisionVar(self, name:builtins.str, *, kind:DecisionVarKind, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, lower_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], upper_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
579
594
|
r"""
|
|
580
595
|
A function to create a decision variable and register to the problem namespace. See `DecisionVar` for more details.
|
|
581
596
|
|
|
@@ -624,7 +639,7 @@ class Problem:
|
|
|
624
639
|
"""
|
|
625
640
|
...
|
|
626
641
|
|
|
627
|
-
def BinaryVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression]]=None, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
642
|
+
def BinaryVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
628
643
|
r"""
|
|
629
644
|
A function to create a binary decision variable and register to the problem namespace. See `DecisionVar` for more details.
|
|
630
645
|
|
|
@@ -670,7 +685,7 @@ class Problem:
|
|
|
670
685
|
"""
|
|
671
686
|
...
|
|
672
687
|
|
|
673
|
-
def IntegerVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression]]=None, lower_bound:Expression | typing.Sequence[Expression], upper_bound:Expression | typing.Sequence[Expression], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
688
|
+
def IntegerVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, lower_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], upper_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
674
689
|
r"""
|
|
675
690
|
A function to create a decision variable and register to the problem namespace. See `DecisionVar` for more details.
|
|
676
691
|
|
|
@@ -726,10 +741,10 @@ class Problem:
|
|
|
726
741
|
"""
|
|
727
742
|
...
|
|
728
743
|
|
|
729
|
-
def SemiIntegerVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression]]=None, lower_bound:Expression | typing.Sequence[Expression], upper_bound:Expression | typing.Sequence[Expression], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
744
|
+
def SemiIntegerVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, lower_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], upper_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
730
745
|
...
|
|
731
746
|
|
|
732
|
-
def ContinuousVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression]]=None, lower_bound:Expression | typing.Sequence[Expression], upper_bound:Expression | typing.Sequence[Expression], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
747
|
+
def ContinuousVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, lower_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], upper_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
733
748
|
r"""
|
|
734
749
|
A function to create a decision variable and register to the problem namespace. See `DecisionVar` for more details.
|
|
735
750
|
|
|
@@ -781,19 +796,13 @@ class Problem:
|
|
|
781
796
|
"""
|
|
782
797
|
...
|
|
783
798
|
|
|
784
|
-
def SemiContinuousVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression]]=None, lower_bound:Expression | typing.Sequence[Expression], upper_bound:Expression | typing.Sequence[Expression], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
799
|
+
def SemiContinuousVar(self, name:builtins.str, *, shape:typing.Optional[typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]]]=None, lower_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], upper_bound:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]], latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> DecisionVar:
|
|
785
800
|
...
|
|
786
801
|
|
|
787
802
|
def namespace(self) -> Namespace:
|
|
788
803
|
...
|
|
789
804
|
|
|
790
|
-
def
|
|
791
|
-
r"""
|
|
792
|
-
A short-hand of `Compiler.from_problem(self, data).eval_problem(self)`.
|
|
793
|
-
"""
|
|
794
|
-
...
|
|
795
|
-
|
|
796
|
-
def Constraint(self, name:builtins.str, expression:Expression, *, description:typing.Optional[builtins.str]=None) -> Constraint:
|
|
805
|
+
def Constraint(self, name:builtins.str, expression:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any], *, description:typing.Optional[builtins.str]=None) -> Constraint:
|
|
797
806
|
r"""
|
|
798
807
|
Constructs `Constraint` object, __WITHOUT__ registering it to the problem.
|
|
799
808
|
Use `+=` operator to register the constraint to the problem.
|
|
@@ -952,6 +961,15 @@ class ConstraintSense(Enum):
|
|
|
952
961
|
LESS_THAN_EQUAL = auto()
|
|
953
962
|
GREATER_THAN_EQUAL = auto()
|
|
954
963
|
|
|
964
|
+
class DataType(Enum):
|
|
965
|
+
r"""
|
|
966
|
+
A datatype for JijModeling expressions
|
|
967
|
+
"""
|
|
968
|
+
INTEGER = auto()
|
|
969
|
+
FLOAT = auto()
|
|
970
|
+
BINARY = auto()
|
|
971
|
+
NATURAL = auto()
|
|
972
|
+
|
|
955
973
|
class DecisionVarKind(Enum):
|
|
956
974
|
BINARY = auto()
|
|
957
975
|
INTEGER = auto()
|
|
@@ -966,84 +984,84 @@ class ProblemSense(Enum):
|
|
|
966
984
|
MINIMIZE = auto()
|
|
967
985
|
MAXIMIZE = auto()
|
|
968
986
|
|
|
969
|
-
def
|
|
987
|
+
def abs(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
970
988
|
...
|
|
971
989
|
|
|
972
|
-
def
|
|
990
|
+
def acos(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
973
991
|
...
|
|
974
992
|
|
|
975
|
-
def
|
|
993
|
+
def acosh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
976
994
|
...
|
|
977
995
|
|
|
978
|
-
def
|
|
996
|
+
def asin(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
979
997
|
...
|
|
980
998
|
|
|
981
|
-
def
|
|
999
|
+
def asinh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
982
1000
|
...
|
|
983
1001
|
|
|
984
|
-
def
|
|
1002
|
+
def atan(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
985
1003
|
...
|
|
986
1004
|
|
|
987
|
-
def
|
|
1005
|
+
def atanh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
988
1006
|
...
|
|
989
1007
|
|
|
990
|
-
def
|
|
1008
|
+
def bnot(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
991
1009
|
...
|
|
992
1010
|
|
|
993
|
-
def
|
|
1011
|
+
def ceil(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
994
1012
|
...
|
|
995
1013
|
|
|
996
|
-
def
|
|
1014
|
+
def cos(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
997
1015
|
...
|
|
998
1016
|
|
|
999
|
-
def
|
|
1017
|
+
def cosh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1000
1018
|
...
|
|
1001
1019
|
|
|
1002
|
-
def
|
|
1020
|
+
def exp(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1003
1021
|
...
|
|
1004
1022
|
|
|
1005
|
-
def
|
|
1023
|
+
def floor(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1006
1024
|
...
|
|
1007
1025
|
|
|
1008
|
-
def
|
|
1026
|
+
def ln(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1009
1027
|
...
|
|
1010
1028
|
|
|
1011
|
-
def
|
|
1029
|
+
def log10(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1012
1030
|
...
|
|
1013
1031
|
|
|
1014
|
-
def
|
|
1032
|
+
def log2(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1015
1033
|
...
|
|
1016
1034
|
|
|
1017
|
-
def
|
|
1035
|
+
def map(arg:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any], func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1018
1036
|
...
|
|
1019
1037
|
|
|
1020
|
-
def
|
|
1038
|
+
def max(lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any], rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1021
1039
|
...
|
|
1022
1040
|
|
|
1023
|
-
def
|
|
1041
|
+
def min(lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any], rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1024
1042
|
...
|
|
1025
1043
|
|
|
1026
|
-
def
|
|
1044
|
+
def prod(operand:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any], axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
1027
1045
|
...
|
|
1028
1046
|
|
|
1029
|
-
def
|
|
1047
|
+
def roll(operand:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any], shift:typing.Any, *, axis:typing.Optional[builtins.int]=None) -> Expression:
|
|
1030
1048
|
...
|
|
1031
1049
|
|
|
1032
|
-
def
|
|
1050
|
+
def sin(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1033
1051
|
...
|
|
1034
1052
|
|
|
1035
|
-
def
|
|
1053
|
+
def sinh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1036
1054
|
...
|
|
1037
1055
|
|
|
1038
|
-
def
|
|
1056
|
+
def sqrt(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1039
1057
|
...
|
|
1040
1058
|
|
|
1041
|
-
def
|
|
1059
|
+
def sum(operand:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any], axis:typing.Optional[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any] | builtins.int | typing.Sequence[Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]] | typing.Sequence[builtins.int]]=None) -> Expression:
|
|
1042
1060
|
...
|
|
1043
1061
|
|
|
1044
|
-
def
|
|
1062
|
+
def tan(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1045
1063
|
...
|
|
1046
1064
|
|
|
1047
|
-
def
|
|
1065
|
+
def tanh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1048
1066
|
...
|
|
1049
1067
|
|
jijmodeling/_jijmodeling.abi3.so
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jijmodeling
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a2
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Operating System :: POSIX :: Linux
|
|
6
6
|
Classifier: Operating System :: MacOS
|
|
@@ -20,7 +20,7 @@ Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
|
20
20
|
Requires-Dist: numpy
|
|
21
21
|
Requires-Dist: pandas
|
|
22
22
|
Requires-Dist: orjson>=3.8.0,<4.0.0
|
|
23
|
-
Requires-Dist: ommx>=
|
|
23
|
+
Requires-Dist: ommx>=2.0.0rc1,<3.0.0
|
|
24
24
|
License-File: LICENSE.txt
|
|
25
25
|
Summary: Mathematical modeling tool for optimization problem
|
|
26
26
|
Author: Jij Inc.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
jijmodeling-2.0.0a2.dist-info/METADATA,sha256=tdiMW4rObLVDeek9C2kZ8CfPelCjzq8ma9aLRddc5pI,2482
|
|
2
|
+
jijmodeling-2.0.0a2.dist-info/WHEEL,sha256=4FK1cQjWtxthB2GjQlwKValP2gjnkeIRpA2yeHH3EdI,104
|
|
3
|
+
jijmodeling-2.0.0a2.dist-info/licenses/LICENSE.txt,sha256=T5HdEbP5NWG8fZbvF9pofeteW3HrS30V3_LvtPUHFYM,3400
|
|
4
|
+
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
5
|
+
jijmodeling/__init__.pyi,sha256=IeEZoh_MYKJs1Kur4SxF7Ox8NMLfG00AVIlRSGER0Ek,48095
|
|
6
|
+
jijmodeling/_jijmodeling.abi3.so,sha256=G3ViiKp2xQCCxKIJEJzbpgt_8rP3h0rVAqeNsubmzQ4,5492368
|
|
7
|
+
jijmodeling/_jijmodeling.pyi,sha256=9towCfPT8yTmJxvncDdME7ZCeFSSntPxAd_TT_spuXQ,162
|
|
8
|
+
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
jijmodeling-2.0.0a2.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
jijmodeling-2.0.0a0.dist-info/METADATA,sha256=_4ydLFrJjWLOTHmr2JKhpb7mtrfSqaV423jm9DKsWHU,2479
|
|
2
|
-
jijmodeling-2.0.0a0.dist-info/WHEEL,sha256=gbF7f6jxhe08ey5tzHUeVeWP5s0nIBmofUuz4cjfcAY,104
|
|
3
|
-
jijmodeling-2.0.0a0.dist-info/licenses/LICENSE.txt,sha256=T5HdEbP5NWG8fZbvF9pofeteW3HrS30V3_LvtPUHFYM,3400
|
|
4
|
-
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
5
|
-
jijmodeling/__init__.pyi,sha256=MJZaF-5XdC-zQ4X16CtNAxGzmfFtCsQHB91JrITnars,37400
|
|
6
|
-
jijmodeling/_jijmodeling.abi3.so,sha256=BMEI-2Vqt8P5k9ZL7rQSSsE69JcchYfvvctWklp0Kno,4979232
|
|
7
|
-
jijmodeling/_jijmodeling.pyi,sha256=9towCfPT8yTmJxvncDdME7ZCeFSSntPxAd_TT_spuXQ,162
|
|
8
|
-
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
jijmodeling-2.0.0a0.dist-info/RECORD,,
|
|
File without changes
|