jijmodeling 1.10.2__cp39-cp39-manylinux_2_28_aarch64.whl → 1.11.0__cp39-cp39-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 CHANGED
@@ -1,6 +1,7 @@
1
1
  # This file is automatically generated by pyo3_stub_gen
2
2
  # ruff: noqa: E501, F401
3
3
 
4
+ import builtins
4
5
  import numpy
5
6
  import numpy.typing
6
7
  import typing
@@ -9,7 +10,7 @@ from . import experimental
9
10
  from . import range
10
11
  from enum import Enum, auto
11
12
 
12
- __version__: str
13
+ __version__: builtins.str
13
14
  class AbsOp:
14
15
  r"""
15
16
  A class for representing the absolute value
@@ -26,7 +27,7 @@ class AbsOp:
26
27
  The `AbsOp` class does not have a constructor.
27
28
  """
28
29
  operand: typing.Any
29
- def set_latex(self, latex = ...) -> None:
30
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
30
31
  r"""
31
32
  Set the LaTeX representation of the object.
32
33
  If the LaTeX representation is not set, the default representation is set.
@@ -37,13 +38,13 @@ class AbsOp:
37
38
  """
38
39
  ...
39
40
 
40
- def __str__(self) -> str:
41
+ def __str__(self) -> builtins.str:
41
42
  ...
42
43
 
43
- def __repr__(self) -> str:
44
+ def __repr__(self) -> builtins.str:
44
45
  ...
45
46
 
46
- def _repr_latex_(self) -> str:
47
+ def _repr_latex_(self) -> builtins.str:
47
48
  ...
48
49
 
49
50
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -64,10 +65,10 @@ class AbsOp:
64
65
  def __ge__(self, other:typing.Any) -> typing.Any:
65
66
  ...
66
67
 
67
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
68
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
68
69
  ...
69
70
 
70
- def __rpow__(self, base,modulo = ...) -> typing.Any:
71
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
71
72
  ...
72
73
 
73
74
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -122,8 +123,8 @@ class AddOp:
122
123
  instantiation method is by calling the addition operation on other
123
124
  expressions.
124
125
  """
125
- terms: list[typing.Any]
126
- def set_latex(self, latex = ...) -> None:
126
+ terms: builtins.list[typing.Any]
127
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
127
128
  r"""
128
129
  Set the LaTeX representation of the object.
129
130
  If the LaTeX representation is not set, the default representation is set.
@@ -134,13 +135,13 @@ class AddOp:
134
135
  """
135
136
  ...
136
137
 
137
- def __str__(self) -> str:
138
+ def __str__(self) -> builtins.str:
138
139
  ...
139
140
 
140
- def __repr__(self) -> str:
141
+ def __repr__(self) -> builtins.str:
141
142
  ...
142
143
 
143
- def _repr_latex_(self) -> str:
144
+ def _repr_latex_(self) -> builtins.str:
144
145
  ...
145
146
 
146
147
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -161,10 +162,10 @@ class AddOp:
161
162
  def __ge__(self, other:typing.Any) -> typing.Any:
162
163
  ...
163
164
 
164
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
165
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
165
166
  ...
166
167
 
167
- def __rpow__(self, base,modulo = ...) -> typing.Any:
168
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
168
169
  ...
169
170
 
170
171
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -217,8 +218,8 @@ class AndOp:
217
218
  -----
218
219
  The `AndOp` class does not have a constructor.
219
220
  """
220
- terms: list[typing.Any]
221
- def set_latex(self, latex = ...) -> None:
221
+ terms: builtins.list[typing.Any]
222
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
222
223
  r"""
223
224
  Set the LaTeX representation of the object.
224
225
  If the LaTeX representation is not set, the default representation is set.
@@ -229,13 +230,13 @@ class AndOp:
229
230
  """
230
231
  ...
231
232
 
232
- def __str__(self) -> str:
233
+ def __str__(self) -> builtins.str:
233
234
  ...
234
235
 
235
- def __repr__(self) -> str:
236
+ def __repr__(self) -> builtins.str:
236
237
  ...
237
238
 
238
- def _repr_latex_(self) -> str:
239
+ def _repr_latex_(self) -> builtins.str:
239
240
  ...
240
241
 
241
242
 
@@ -271,10 +272,10 @@ class ArrayLength:
271
272
  ```
272
273
  """
273
274
  array: Placeholder | Element | Subscript
274
- axis: int
275
- description: typing.Optional[str]
276
- def __new__(cls,array,axis,*,latex = ...,description = ...): ...
277
- def set_latex(self, latex = ...) -> None:
275
+ axis: builtins.int
276
+ description: typing.Optional[builtins.str]
277
+ def __new__(cls,array:Placeholder | Element | Subscript, axis:builtins.int, *, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
278
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
278
279
  r"""
279
280
  Set the LaTeX representation of the object.
280
281
  If the LaTeX representation is not set, the default representation is set.
@@ -285,13 +286,13 @@ class ArrayLength:
285
286
  """
286
287
  ...
287
288
 
288
- def __str__(self) -> str:
289
+ def __str__(self) -> builtins.str:
289
290
  ...
290
291
 
291
- def __repr__(self) -> str:
292
+ def __repr__(self) -> builtins.str:
292
293
  ...
293
294
 
294
- def _repr_latex_(self) -> str:
295
+ def _repr_latex_(self) -> builtins.str:
295
296
  ...
296
297
 
297
298
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -312,10 +313,10 @@ class ArrayLength:
312
313
  def __ge__(self, other:typing.Any) -> typing.Any:
313
314
  ...
314
315
 
315
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
316
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
316
317
  ...
317
318
 
318
- def __rpow__(self, base,modulo = ...) -> typing.Any:
319
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
319
320
  ...
320
321
 
321
322
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -403,11 +404,11 @@ class BinaryVar:
403
404
 
404
405
  ```
405
406
  """
406
- name: str
407
- description: str
408
- ndim: int
407
+ name: builtins.str
408
+ description: builtins.str
409
+ ndim: builtins.int
409
410
  shape: tuple
410
- def __new__(cls,name,*,shape = ...,latex = ...,description = ...): ...
411
+ def __new__(cls,name:builtins.str, *, shape:typing.Optional[typing.Sequence[typing.Any]]=None, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
411
412
  def __getitem__(self, index:typing.Any) -> typing.Any:
412
413
  ...
413
414
 
@@ -417,7 +418,7 @@ class BinaryVar:
417
418
  def __rtruediv__(self, other:typing.Any) -> typing.Any:
418
419
  ...
419
420
 
420
- def set_latex(self, latex = ...) -> None:
421
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
421
422
  r"""
422
423
  Set the LaTeX representation of the object.
423
424
  If the LaTeX representation is not set, the default representation is set.
@@ -428,13 +429,13 @@ class BinaryVar:
428
429
  """
429
430
  ...
430
431
 
431
- def __str__(self) -> str:
432
+ def __str__(self) -> builtins.str:
432
433
  ...
433
434
 
434
- def __repr__(self) -> str:
435
+ def __repr__(self) -> builtins.str:
435
436
  ...
436
437
 
437
- def _repr_latex_(self) -> str:
438
+ def _repr_latex_(self) -> builtins.str:
438
439
  ...
439
440
 
440
441
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -455,10 +456,10 @@ class BinaryVar:
455
456
  def __ge__(self, other:typing.Any) -> typing.Any:
456
457
  ...
457
458
 
458
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
459
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
459
460
  ...
460
461
 
461
- def __rpow__(self, base,modulo = ...) -> typing.Any:
462
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
462
463
  ...
463
464
 
464
465
  def __mul__(self, other:typing.Any) -> typing.Any:
@@ -499,7 +500,7 @@ class CeilOp:
499
500
  The `CeilOp` class does not have a constructor.
500
501
  """
501
502
  operand: typing.Any
502
- def set_latex(self, latex = ...) -> None:
503
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
503
504
  r"""
504
505
  Set the LaTeX representation of the object.
505
506
  If the LaTeX representation is not set, the default representation is set.
@@ -510,13 +511,13 @@ class CeilOp:
510
511
  """
511
512
  ...
512
513
 
513
- def __str__(self) -> str:
514
+ def __str__(self) -> builtins.str:
514
515
  ...
515
516
 
516
- def __repr__(self) -> str:
517
+ def __repr__(self) -> builtins.str:
517
518
  ...
518
519
 
519
- def _repr_latex_(self) -> str:
520
+ def _repr_latex_(self) -> builtins.str:
520
521
  ...
521
522
 
522
523
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -537,10 +538,10 @@ class CeilOp:
537
538
  def __ge__(self, other:typing.Any) -> typing.Any:
538
539
  ...
539
540
 
540
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
541
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
541
542
  ...
542
543
 
543
- def __rpow__(self, base,modulo = ...) -> typing.Any:
544
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
544
545
  ...
545
546
 
546
547
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -640,23 +641,23 @@ class Constraint:
640
641
 
641
642
  ```
642
643
  """
643
- name: str
644
+ name: builtins.str
644
645
  sense: ConstraintSense
645
646
  left: typing.Any
646
647
  right: typing.Any
647
- forall: list[tuple[Element, typing.Optional[typing.Any]]]
648
+ forall: Element | tuple[Element, typing.Optional[typing.Any]] | builtins.list[Element | tuple[Element, typing.Optional[typing.Any]]]
648
649
  expression: typing.Any
649
- def __new__(cls,name,expression,*,forall = ...): ...
650
- def _repr_latex_(self) -> str:
650
+ def __new__(cls,name:builtins.str, expression:typing.Any, *, forall:typing.Optional[Element | tuple[Element, typing.Optional[typing.Any]] | typing.Sequence[Element | tuple[Element, typing.Optional[typing.Any]]]]=None): ...
651
+ def _repr_latex_(self) -> builtins.str:
651
652
  ...
652
653
 
653
- def __str__(self) -> str:
654
+ def __str__(self) -> builtins.str:
654
655
  ...
655
656
 
656
- def __repr__(self) -> str:
657
+ def __repr__(self) -> builtins.str:
657
658
  ...
658
659
 
659
- def is_equality(self) -> bool:
660
+ def is_equality(self) -> builtins.bool:
660
661
  r"""
661
662
  Returns true if the constraint is an equality constraint.
662
663
 
@@ -679,7 +680,7 @@ class Constraint:
679
680
  """
680
681
  ...
681
682
 
682
- def is_inequality(self) -> bool:
683
+ def is_inequality(self) -> builtins.bool:
683
684
  r"""
684
685
  Returns true if the constraint is an inequality constraint.
685
686
 
@@ -771,13 +772,13 @@ class ContinuousVar:
771
772
 
772
773
  ```
773
774
  """
774
- name: str
775
- description: str
776
- ndim: int
775
+ name: builtins.str
776
+ description: builtins.str
777
+ ndim: builtins.int
777
778
  shape: tuple
778
779
  lower_bound: typing.Any | Placeholder | Subscript
779
780
  upper_bound: typing.Any | Placeholder | Subscript
780
- def __new__(cls,name,*,shape = ...,lower_bound,upper_bound,latex = ...,description = ...): ...
781
+ def __new__(cls,name:builtins.str, *, shape:typing.Optional[typing.Sequence[typing.Any]]=None, lower_bound:typing.Any | Placeholder | Subscript, upper_bound:typing.Any | Placeholder | Subscript, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
781
782
  def __getitem__(self, index:typing.Any) -> typing.Any:
782
783
  ...
783
784
 
@@ -787,7 +788,7 @@ class ContinuousVar:
787
788
  def __rtruediv__(self, other:typing.Any) -> typing.Any:
788
789
  ...
789
790
 
790
- def set_latex(self, latex = ...) -> None:
791
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
791
792
  r"""
792
793
  Set the LaTeX representation of the object.
793
794
  If the LaTeX representation is not set, the default representation is set.
@@ -798,13 +799,13 @@ class ContinuousVar:
798
799
  """
799
800
  ...
800
801
 
801
- def __str__(self) -> str:
802
+ def __str__(self) -> builtins.str:
802
803
  ...
803
804
 
804
- def __repr__(self) -> str:
805
+ def __repr__(self) -> builtins.str:
805
806
  ...
806
807
 
807
- def _repr_latex_(self) -> str:
808
+ def _repr_latex_(self) -> builtins.str:
808
809
  ...
809
810
 
810
811
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -825,10 +826,10 @@ class ContinuousVar:
825
826
  def __ge__(self, other:typing.Any) -> typing.Any:
826
827
  ...
827
828
 
828
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
829
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
829
830
  ...
830
831
 
831
- def __rpow__(self, base,modulo = ...) -> typing.Any:
832
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
832
833
  ...
833
834
 
834
835
  def __mul__(self, other:typing.Any) -> typing.Any:
@@ -915,17 +916,17 @@ class CustomPenaltyTerm:
915
916
 
916
917
  ```
917
918
  """
918
- name: str
919
+ name: builtins.str
919
920
  expression: typing.Any
920
- forall: list[tuple[Element, typing.Optional[typing.Any]]]
921
- def __new__(cls,name,expression,*,forall = ...): ...
922
- def _repr_latex_(self) -> str:
921
+ forall: Element | tuple[Element, typing.Optional[typing.Any]] | builtins.list[Element | tuple[Element, typing.Optional[typing.Any]]]
922
+ def __new__(cls,name:builtins.str, expression:typing.Any, *, forall:typing.Optional[Element | tuple[Element, typing.Optional[typing.Any]] | typing.Sequence[Element | tuple[Element, typing.Optional[typing.Any]]]]=None): ...
923
+ def _repr_latex_(self) -> builtins.str:
923
924
  ...
924
925
 
925
- def __str__(self) -> str:
926
+ def __str__(self) -> builtins.str:
926
927
  ...
927
928
 
928
- def __repr__(self) -> str:
929
+ def __repr__(self) -> builtins.str:
929
930
  ...
930
931
 
931
932
 
@@ -1092,16 +1093,16 @@ class Element:
1092
1093
 
1093
1094
  ```
1094
1095
  """
1095
- name: str
1096
- ndim: int
1096
+ name: builtins.str
1097
+ ndim: builtins.int
1097
1098
  belong_to: Range | Placeholder | Element | Subscript
1098
- description: typing.Optional[str]
1099
+ description: typing.Optional[builtins.str]
1099
1100
  shape: tuple
1100
- def __new__(cls,name,belong_to,*,latex = ...,description = ...): ...
1101
- def len_at(self, axis,*,latex = ...,description = ...) -> ArrayLength:
1101
+ def __new__(cls,name:builtins.str, belong_to:typing.Any, *, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
1102
+ def len_at(self, axis:builtins.int, *, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> ArrayLength:
1102
1103
  ...
1103
1104
 
1104
- def set_latex(self, latex = ...) -> None:
1105
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1105
1106
  r"""
1106
1107
  Set the LaTeX representation of the object.
1107
1108
  If the LaTeX representation is not set, the default representation is set.
@@ -1112,13 +1113,13 @@ class Element:
1112
1113
  """
1113
1114
  ...
1114
1115
 
1115
- def __str__(self) -> str:
1116
+ def __str__(self) -> builtins.str:
1116
1117
  ...
1117
1118
 
1118
- def __repr__(self) -> str:
1119
+ def __repr__(self) -> builtins.str:
1119
1120
  ...
1120
1121
 
1121
- def _repr_latex_(self) -> str:
1122
+ def _repr_latex_(self) -> builtins.str:
1122
1123
  ...
1123
1124
 
1124
1125
  def __getitem__(self, index:typing.Any) -> Subscript:
@@ -1142,10 +1143,10 @@ class Element:
1142
1143
  def __ge__(self, other:typing.Any) -> typing.Any:
1143
1144
  ...
1144
1145
 
1145
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
1146
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1146
1147
  ...
1147
1148
 
1148
- def __rpow__(self, base,modulo = ...) -> typing.Any:
1149
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1149
1150
  ...
1150
1151
 
1151
1152
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -1200,7 +1201,7 @@ class EqualOp:
1200
1201
  """
1201
1202
  left: typing.Any
1202
1203
  right: typing.Any
1203
- def set_latex(self, latex = ...) -> None:
1204
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1204
1205
  r"""
1205
1206
  Set the LaTeX representation of the object.
1206
1207
  If the LaTeX representation is not set, the default representation is set.
@@ -1211,13 +1212,13 @@ class EqualOp:
1211
1212
  """
1212
1213
  ...
1213
1214
 
1214
- def __str__(self) -> str:
1215
+ def __str__(self) -> builtins.str:
1215
1216
  ...
1216
1217
 
1217
- def __repr__(self) -> str:
1218
+ def __repr__(self) -> builtins.str:
1218
1219
  ...
1219
1220
 
1220
- def _repr_latex_(self) -> str:
1221
+ def _repr_latex_(self) -> builtins.str:
1221
1222
  ...
1222
1223
 
1223
1224
 
@@ -1239,17 +1240,17 @@ class Evaluation:
1239
1240
  objective: numpy.typing.NDArray[numpy.float64]
1240
1241
  constraint_violations: dict
1241
1242
  constraint_forall: dict
1242
- constraint_values: list[dict]
1243
+ constraint_values: builtins.list[dict]
1243
1244
  penalty: dict
1244
- constraint_expr_values: list[dict[str, dict]]
1245
- def __new__(cls,energy = ...,objective = ...,constraint_violations = ...,constraint_forall = ...,constraint_values = ...,penalty = ...): ...
1246
- def __str__(self) -> str:
1245
+ constraint_expr_values: builtins.list[builtins.dict[builtins.str, dict]]
1246
+ def __new__(cls,energy:typing.Optional[typing.Sequence[builtins.float]]=None, objective:typing.Optional[typing.Sequence[builtins.float]]=None, constraint_violations:typing.Optional[typing.Mapping[builtins.str, typing.Sequence[builtins.float]]]=None, constraint_forall:typing.Optional[typing.Mapping[builtins.str, typing.Sequence[typing.Sequence[builtins.int]]]]=None, constraint_values:typing.Optional[typing.Sequence[typing.Mapping[builtins.str, typing.Sequence[builtins.float]]]]=None, penalty:typing.Optional[typing.Mapping[builtins.str, typing.Sequence[builtins.float]]]=None): ...
1247
+ def __str__(self) -> builtins.str:
1247
1248
  ...
1248
1249
 
1249
- def __repr__(self) -> str:
1250
+ def __repr__(self) -> builtins.str:
1250
1251
  ...
1251
1252
 
1252
- def __richcmp__(self, other:Evaluation, op:int) -> bool:
1253
+ def __richcmp__(self, other:Evaluation, op:int) -> builtins.bool:
1253
1254
  ...
1254
1255
 
1255
1256
  def to_dict(self) -> dict:
@@ -1273,7 +1274,7 @@ class Evaluation:
1273
1274
  """
1274
1275
  ...
1275
1276
 
1276
- def to_json(self) -> str:
1277
+ def to_json(self) -> builtins.str:
1277
1278
  r"""
1278
1279
  Serialize the Evaluation object into a JSON string.
1279
1280
 
@@ -1324,7 +1325,7 @@ class FloorOp:
1324
1325
  The `FloorOp` class does not have a constructor.
1325
1326
  """
1326
1327
  operand: typing.Any
1327
- def set_latex(self, latex = ...) -> None:
1328
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1328
1329
  r"""
1329
1330
  Set the LaTeX representation of the object.
1330
1331
  If the LaTeX representation is not set, the default representation is set.
@@ -1335,13 +1336,13 @@ class FloorOp:
1335
1336
  """
1336
1337
  ...
1337
1338
 
1338
- def __str__(self) -> str:
1339
+ def __str__(self) -> builtins.str:
1339
1340
  ...
1340
1341
 
1341
- def __repr__(self) -> str:
1342
+ def __repr__(self) -> builtins.str:
1342
1343
  ...
1343
1344
 
1344
- def _repr_latex_(self) -> str:
1345
+ def _repr_latex_(self) -> builtins.str:
1345
1346
  ...
1346
1347
 
1347
1348
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -1362,10 +1363,10 @@ class FloorOp:
1362
1363
  def __ge__(self, other:typing.Any) -> typing.Any:
1363
1364
  ...
1364
1365
 
1365
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
1366
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1366
1367
  ...
1367
1368
 
1368
- def __rpow__(self, base,modulo = ...) -> typing.Any:
1369
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1369
1370
  ...
1370
1371
 
1371
1372
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -1420,7 +1421,7 @@ class GreaterThanEqualOp:
1420
1421
  """
1421
1422
  left: typing.Any
1422
1423
  right: typing.Any
1423
- def set_latex(self, latex = ...) -> None:
1424
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1424
1425
  r"""
1425
1426
  Set the LaTeX representation of the object.
1426
1427
  If the LaTeX representation is not set, the default representation is set.
@@ -1431,13 +1432,13 @@ class GreaterThanEqualOp:
1431
1432
  """
1432
1433
  ...
1433
1434
 
1434
- def __str__(self) -> str:
1435
+ def __str__(self) -> builtins.str:
1435
1436
  ...
1436
1437
 
1437
- def __repr__(self) -> str:
1438
+ def __repr__(self) -> builtins.str:
1438
1439
  ...
1439
1440
 
1440
- def _repr_latex_(self) -> str:
1441
+ def _repr_latex_(self) -> builtins.str:
1441
1442
  ...
1442
1443
 
1443
1444
 
@@ -1459,7 +1460,7 @@ class GreaterThanOp:
1459
1460
  """
1460
1461
  left: typing.Any
1461
1462
  right: typing.Any
1462
- def set_latex(self, latex = ...) -> None:
1463
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1463
1464
  r"""
1464
1465
  Set the LaTeX representation of the object.
1465
1466
  If the LaTeX representation is not set, the default representation is set.
@@ -1470,13 +1471,13 @@ class GreaterThanOp:
1470
1471
  """
1471
1472
  ...
1472
1473
 
1473
- def __str__(self) -> str:
1474
+ def __str__(self) -> builtins.str:
1474
1475
  ...
1475
1476
 
1476
- def __repr__(self) -> str:
1477
+ def __repr__(self) -> builtins.str:
1477
1478
  ...
1478
1479
 
1479
- def _repr_latex_(self) -> str:
1480
+ def _repr_latex_(self) -> builtins.str:
1480
1481
  ...
1481
1482
 
1482
1483
 
@@ -1549,13 +1550,13 @@ class IntegerVar:
1549
1550
 
1550
1551
  ```
1551
1552
  """
1552
- name: str
1553
- description: str
1554
- ndim: int
1553
+ name: builtins.str
1554
+ description: builtins.str
1555
+ ndim: builtins.int
1555
1556
  shape: tuple
1556
1557
  lower_bound: typing.Any | Placeholder | Subscript
1557
1558
  upper_bound: typing.Any | Placeholder | Subscript
1558
- def __new__(cls,name,*,shape = ...,lower_bound,upper_bound,latex = ...,description = ...): ...
1559
+ def __new__(cls,name:builtins.str, *, shape:typing.Optional[typing.Sequence[typing.Any]]=None, lower_bound:typing.Any | Placeholder | Subscript, upper_bound:typing.Any | Placeholder | Subscript, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
1559
1560
  def __getitem__(self, index:typing.Any) -> typing.Any:
1560
1561
  ...
1561
1562
 
@@ -1565,7 +1566,7 @@ class IntegerVar:
1565
1566
  def __rtruediv__(self, other:typing.Any) -> typing.Any:
1566
1567
  ...
1567
1568
 
1568
- def set_latex(self, latex = ...) -> None:
1569
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1569
1570
  r"""
1570
1571
  Set the LaTeX representation of the object.
1571
1572
  If the LaTeX representation is not set, the default representation is set.
@@ -1576,13 +1577,13 @@ class IntegerVar:
1576
1577
  """
1577
1578
  ...
1578
1579
 
1579
- def __str__(self) -> str:
1580
+ def __str__(self) -> builtins.str:
1580
1581
  ...
1581
1582
 
1582
- def __repr__(self) -> str:
1583
+ def __repr__(self) -> builtins.str:
1583
1584
  ...
1584
1585
 
1585
- def _repr_latex_(self) -> str:
1586
+ def _repr_latex_(self) -> builtins.str:
1586
1587
  ...
1587
1588
 
1588
1589
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -1603,10 +1604,10 @@ class IntegerVar:
1603
1604
  def __ge__(self, other:typing.Any) -> typing.Any:
1604
1605
  ...
1605
1606
 
1606
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
1607
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1607
1608
  ...
1608
1609
 
1609
- def __rpow__(self, base,modulo = ...) -> typing.Any:
1610
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1610
1611
  ...
1611
1612
 
1612
1613
  def __mul__(self, other:typing.Any) -> typing.Any:
@@ -1677,37 +1678,48 @@ class Interpreter:
1677
1678
 
1678
1679
  ```
1679
1680
  """
1680
- num_decision_variables: int
1681
- num_constraints: int
1681
+ num_decision_variables: builtins.int
1682
1682
  def __new__(cls,instance_data:dict): ...
1683
- def insert_instance_data(self, key:str, value:float | numpy.typing.NDArray[numpy.float64] | JaggedArray | typing.Sequence[float] | typing.Sequence[typing.Sequence[float]] | typing.Sequence[typing.Sequence[typing.Sequence[float]]] | typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[float]]]]) -> None:
1683
+ def insert_instance_data(self, key:builtins.str, value:builtins.float | numpy.typing.NDArray[numpy.float64] | JaggedArray | typing.Sequence[builtins.float] | typing.Sequence[typing.Sequence[builtins.float]] | typing.Sequence[typing.Sequence[typing.Sequence[builtins.float]]] | typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[builtins.float]]]]) -> None:
1684
1684
  ...
1685
1685
 
1686
- def get_instance_data(self, key:str) -> float | numpy.typing.NDArray[numpy.float64] | JaggedArray:
1686
+ def get_instance_data(self, key:builtins.str) -> builtins.float | numpy.typing.NDArray[numpy.float64] | JaggedArray:
1687
1687
  ...
1688
1688
 
1689
- def instance_data(self) -> dict[str, float | numpy.typing.NDArray[numpy.float64] | JaggedArray]:
1689
+ def instance_data(self) -> builtins.dict[builtins.str, builtins.float | numpy.typing.NDArray[numpy.float64] | JaggedArray]:
1690
1690
  ...
1691
1691
 
1692
- def __str__(self) -> str:
1692
+ def __str__(self) -> builtins.str:
1693
1693
  ...
1694
1694
 
1695
- def get_decision_variable_by_id(self, id:int) -> typing.Any:
1695
+ def get_decision_variable_by_id(self, id:builtins.int) -> typing.Any:
1696
1696
  ...
1697
1697
 
1698
- def get_decision_variable_by_name(self, name,subscript = ...) -> typing.Any:
1698
+ def get_decision_variable_by_name(self, name:builtins.str, subscript:typing.Optional[typing.Sequence[builtins.int]]=None) -> typing.Any:
1699
1699
  ...
1700
1700
 
1701
- def eval_scalar(self, expr:typing.Any) -> float:
1701
+ def eval_scalar(self, expr:typing.Any) -> builtins.float:
1702
1702
  ...
1703
1703
 
1704
1704
  def eval_expr(self, expr:typing.Any) -> typing.Any:
1705
1705
  ...
1706
1706
 
1707
- def eval_constraints(self, constraints:Constraint) -> list[typing.Any]:
1707
+ def eval_constraints(self, constraints:Constraint) -> builtins.list[typing.Any]:
1708
1708
  ...
1709
1709
 
1710
- def eval_problem(self, problem:Problem) -> typing.Any:
1710
+ def eval_problem(self, problem:Problem, hints:typing.Optional[typing.Sequence[typing.Literal['OneHot']]]=None) -> typing.Any:
1711
+ r"""
1712
+ Evaluate the problem and returns `ommx.v1.Instance`.
1713
+
1714
+ Args
1715
+ ----
1716
+ - `problem`: a `jijmodeling.Problem` object to compile.
1717
+ - `hints` (optional): a list of constraint hints to be detected during evaluation. When omitted or given `None`, the default constraint hints are used. Pass empty list to disable hint detection entirely.
1718
+
1719
+ Returns
1720
+ -------
1721
+ `instance`: an OMMX v1 instance object.
1722
+ """
1711
1723
  ...
1712
1724
 
1713
1725
 
@@ -1754,21 +1766,21 @@ class JaggedArray:
1754
1766
 
1755
1767
  ```
1756
1768
  """
1757
- dim: int
1769
+ dim: builtins.int
1758
1770
  def __new__(cls,obj:typing.Any): ...
1759
- def __str__(self) -> str:
1771
+ def __str__(self) -> builtins.str:
1760
1772
  ...
1761
1773
 
1762
- def __eq__(self, other:typing.Any) -> bool:
1774
+ def __eq__(self, other:typing.Any) -> builtins.bool:
1763
1775
  ...
1764
1776
 
1765
- def get(self, index:typing.Sequence[int]) -> float:
1777
+ def get(self, index:typing.Sequence[builtins.int]) -> builtins.float:
1766
1778
  ...
1767
1779
 
1768
- def __getitem__(self, index:typing.Sequence[int]) -> float:
1780
+ def __getitem__(self, index:typing.Sequence[builtins.int]) -> builtins.float:
1769
1781
  ...
1770
1782
 
1771
- def size_at(self, index:typing.Sequence[int]) -> int:
1783
+ def size_at(self, index:typing.Sequence[builtins.int]) -> builtins.int:
1772
1784
  ...
1773
1785
 
1774
1786
 
@@ -1790,7 +1802,7 @@ class LessThanEqualOp:
1790
1802
  """
1791
1803
  left: typing.Any
1792
1804
  right: typing.Any
1793
- def set_latex(self, latex = ...) -> None:
1805
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1794
1806
  r"""
1795
1807
  Set the LaTeX representation of the object.
1796
1808
  If the LaTeX representation is not set, the default representation is set.
@@ -1801,13 +1813,13 @@ class LessThanEqualOp:
1801
1813
  """
1802
1814
  ...
1803
1815
 
1804
- def __str__(self) -> str:
1816
+ def __str__(self) -> builtins.str:
1805
1817
  ...
1806
1818
 
1807
- def __repr__(self) -> str:
1819
+ def __repr__(self) -> builtins.str:
1808
1820
  ...
1809
1821
 
1810
- def _repr_latex_(self) -> str:
1822
+ def _repr_latex_(self) -> builtins.str:
1811
1823
  ...
1812
1824
 
1813
1825
 
@@ -1829,7 +1841,7 @@ class LessThanOp:
1829
1841
  """
1830
1842
  left: typing.Any
1831
1843
  right: typing.Any
1832
- def set_latex(self, latex = ...) -> None:
1844
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1833
1845
  r"""
1834
1846
  Set the LaTeX representation of the object.
1835
1847
  If the LaTeX representation is not set, the default representation is set.
@@ -1840,13 +1852,13 @@ class LessThanOp:
1840
1852
  """
1841
1853
  ...
1842
1854
 
1843
- def __str__(self) -> str:
1855
+ def __str__(self) -> builtins.str:
1844
1856
  ...
1845
1857
 
1846
- def __repr__(self) -> str:
1858
+ def __repr__(self) -> builtins.str:
1847
1859
  ...
1848
1860
 
1849
- def _repr_latex_(self) -> str:
1861
+ def _repr_latex_(self) -> builtins.str:
1850
1862
  ...
1851
1863
 
1852
1864
 
@@ -1866,7 +1878,7 @@ class LnOp:
1866
1878
  The `LnOp` class does not have a constructor.
1867
1879
  """
1868
1880
  operand: typing.Any
1869
- def set_latex(self, latex = ...) -> None:
1881
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1870
1882
  r"""
1871
1883
  Set the LaTeX representation of the object.
1872
1884
  If the LaTeX representation is not set, the default representation is set.
@@ -1877,13 +1889,13 @@ class LnOp:
1877
1889
  """
1878
1890
  ...
1879
1891
 
1880
- def __str__(self) -> str:
1892
+ def __str__(self) -> builtins.str:
1881
1893
  ...
1882
1894
 
1883
- def __repr__(self) -> str:
1895
+ def __repr__(self) -> builtins.str:
1884
1896
  ...
1885
1897
 
1886
- def _repr_latex_(self) -> str:
1898
+ def _repr_latex_(self) -> builtins.str:
1887
1899
  ...
1888
1900
 
1889
1901
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -1904,10 +1916,10 @@ class LnOp:
1904
1916
  def __ge__(self, other:typing.Any) -> typing.Any:
1905
1917
  ...
1906
1918
 
1907
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
1919
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1908
1920
  ...
1909
1921
 
1910
- def __rpow__(self, base,modulo = ...) -> typing.Any:
1922
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
1911
1923
  ...
1912
1924
 
1913
1925
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -1960,7 +1972,7 @@ class Log10Op:
1960
1972
  The `Log10Op` class does not have a constructor.
1961
1973
  """
1962
1974
  operand: typing.Any
1963
- def set_latex(self, latex = ...) -> None:
1975
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
1964
1976
  r"""
1965
1977
  Set the LaTeX representation of the object.
1966
1978
  If the LaTeX representation is not set, the default representation is set.
@@ -1971,13 +1983,13 @@ class Log10Op:
1971
1983
  """
1972
1984
  ...
1973
1985
 
1974
- def __str__(self) -> str:
1986
+ def __str__(self) -> builtins.str:
1975
1987
  ...
1976
1988
 
1977
- def __repr__(self) -> str:
1989
+ def __repr__(self) -> builtins.str:
1978
1990
  ...
1979
1991
 
1980
- def _repr_latex_(self) -> str:
1992
+ def _repr_latex_(self) -> builtins.str:
1981
1993
  ...
1982
1994
 
1983
1995
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -1998,10 +2010,10 @@ class Log10Op:
1998
2010
  def __ge__(self, other:typing.Any) -> typing.Any:
1999
2011
  ...
2000
2012
 
2001
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2013
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2002
2014
  ...
2003
2015
 
2004
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2016
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2005
2017
  ...
2006
2018
 
2007
2019
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2054,7 +2066,7 @@ class Log2Op:
2054
2066
  The `Log2Op` class does not have a constructor.
2055
2067
  """
2056
2068
  operand: typing.Any
2057
- def set_latex(self, latex = ...) -> None:
2069
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2058
2070
  r"""
2059
2071
  Set the LaTeX representation of the object.
2060
2072
  If the LaTeX representation is not set, the default representation is set.
@@ -2065,13 +2077,13 @@ class Log2Op:
2065
2077
  """
2066
2078
  ...
2067
2079
 
2068
- def __str__(self) -> str:
2080
+ def __str__(self) -> builtins.str:
2069
2081
  ...
2070
2082
 
2071
- def __repr__(self) -> str:
2083
+ def __repr__(self) -> builtins.str:
2072
2084
  ...
2073
2085
 
2074
- def _repr_latex_(self) -> str:
2086
+ def _repr_latex_(self) -> builtins.str:
2075
2087
  ...
2076
2088
 
2077
2089
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -2092,10 +2104,10 @@ class Log2Op:
2092
2104
  def __ge__(self, other:typing.Any) -> typing.Any:
2093
2105
  ...
2094
2106
 
2095
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2107
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2096
2108
  ...
2097
2109
 
2098
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2110
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2099
2111
  ...
2100
2112
 
2101
2113
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2148,8 +2160,8 @@ class MaxOp:
2148
2160
  The `MaxOp` class does not have a constructor. Its intended
2149
2161
  instantiation method is by calling the `max` function.
2150
2162
  """
2151
- terms: list[typing.Any]
2152
- def set_latex(self, latex = ...) -> None:
2163
+ terms: builtins.list[typing.Any]
2164
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2153
2165
  r"""
2154
2166
  Set the LaTeX representation of the object.
2155
2167
  If the LaTeX representation is not set, the default representation is set.
@@ -2160,13 +2172,13 @@ class MaxOp:
2160
2172
  """
2161
2173
  ...
2162
2174
 
2163
- def __str__(self) -> str:
2175
+ def __str__(self) -> builtins.str:
2164
2176
  ...
2165
2177
 
2166
- def __repr__(self) -> str:
2178
+ def __repr__(self) -> builtins.str:
2167
2179
  ...
2168
2180
 
2169
- def _repr_latex_(self) -> str:
2181
+ def _repr_latex_(self) -> builtins.str:
2170
2182
  ...
2171
2183
 
2172
2184
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -2187,10 +2199,10 @@ class MaxOp:
2187
2199
  def __ge__(self, other:typing.Any) -> typing.Any:
2188
2200
  ...
2189
2201
 
2190
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2202
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2191
2203
  ...
2192
2204
 
2193
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2205
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2194
2206
  ...
2195
2207
 
2196
2208
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2239,15 +2251,15 @@ class MeasuringTime:
2239
2251
  """
2240
2252
  solve: SolvingTime
2241
2253
  system: SystemTime
2242
- total: typing.Optional[float]
2243
- def __new__(cls,solve = ...,system = ...,total = ...): ...
2244
- def __str__(self) -> str:
2254
+ total: typing.Optional[builtins.float]
2255
+ def __new__(cls,solve:typing.Optional[SolvingTime]=None, system:typing.Optional[SystemTime]=None, total:typing.Optional[builtins.float]=None): ...
2256
+ def __str__(self) -> builtins.str:
2245
2257
  ...
2246
2258
 
2247
- def __repr__(self) -> str:
2259
+ def __repr__(self) -> builtins.str:
2248
2260
  ...
2249
2261
 
2250
- def __richcmp__(self, other:MeasuringTime, op:int) -> bool:
2262
+ def __richcmp__(self, other:MeasuringTime, op:int) -> builtins.bool:
2251
2263
  ...
2252
2264
 
2253
2265
  def to_dict(self) -> dict:
@@ -2277,7 +2289,7 @@ class MeasuringTime:
2277
2289
  """
2278
2290
  ...
2279
2291
 
2280
- def to_json(self) -> str:
2292
+ def to_json(self) -> builtins.str:
2281
2293
  r"""
2282
2294
  Serialize the `MeasuringTime` object into a JSON string.
2283
2295
 
@@ -2323,8 +2335,8 @@ class MinOp:
2323
2335
  The `MinOp` class does not have a constructor. Its intended
2324
2336
  instantiation method is by calling the `min` function.
2325
2337
  """
2326
- terms: list[typing.Any]
2327
- def set_latex(self, latex = ...) -> None:
2338
+ terms: builtins.list[typing.Any]
2339
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2328
2340
  r"""
2329
2341
  Set the LaTeX representation of the object.
2330
2342
  If the LaTeX representation is not set, the default representation is set.
@@ -2335,13 +2347,13 @@ class MinOp:
2335
2347
  """
2336
2348
  ...
2337
2349
 
2338
- def __str__(self) -> str:
2350
+ def __str__(self) -> builtins.str:
2339
2351
  ...
2340
2352
 
2341
- def __repr__(self) -> str:
2353
+ def __repr__(self) -> builtins.str:
2342
2354
  ...
2343
2355
 
2344
- def _repr_latex_(self) -> str:
2356
+ def _repr_latex_(self) -> builtins.str:
2345
2357
  ...
2346
2358
 
2347
2359
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -2362,10 +2374,10 @@ class MinOp:
2362
2374
  def __ge__(self, other:typing.Any) -> typing.Any:
2363
2375
  ...
2364
2376
 
2365
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2377
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2366
2378
  ...
2367
2379
 
2368
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2380
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2369
2381
  ...
2370
2382
 
2371
2383
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2420,7 +2432,7 @@ class ModOp:
2420
2432
  """
2421
2433
  left: typing.Any
2422
2434
  right: typing.Any
2423
- def set_latex(self, latex = ...) -> None:
2435
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2424
2436
  r"""
2425
2437
  Set the LaTeX representation of the object.
2426
2438
  If the LaTeX representation is not set, the default representation is set.
@@ -2431,13 +2443,13 @@ class ModOp:
2431
2443
  """
2432
2444
  ...
2433
2445
 
2434
- def __str__(self) -> str:
2446
+ def __str__(self) -> builtins.str:
2435
2447
  ...
2436
2448
 
2437
- def __repr__(self) -> str:
2449
+ def __repr__(self) -> builtins.str:
2438
2450
  ...
2439
2451
 
2440
- def _repr_latex_(self) -> str:
2452
+ def _repr_latex_(self) -> builtins.str:
2441
2453
  ...
2442
2454
 
2443
2455
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -2458,10 +2470,10 @@ class ModOp:
2458
2470
  def __ge__(self, other:typing.Any) -> typing.Any:
2459
2471
  ...
2460
2472
 
2461
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2473
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2462
2474
  ...
2463
2475
 
2464
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2476
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2465
2477
  ...
2466
2478
 
2467
2479
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2516,8 +2528,8 @@ class MulOp:
2516
2528
  instantiation method is by calling the multiplication operation on other
2517
2529
  expressions.
2518
2530
  """
2519
- terms: list[typing.Any]
2520
- def set_latex(self, latex = ...) -> None:
2531
+ terms: builtins.list[typing.Any]
2532
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2521
2533
  r"""
2522
2534
  Set the LaTeX representation of the object.
2523
2535
  If the LaTeX representation is not set, the default representation is set.
@@ -2528,13 +2540,13 @@ class MulOp:
2528
2540
  """
2529
2541
  ...
2530
2542
 
2531
- def __str__(self) -> str:
2543
+ def __str__(self) -> builtins.str:
2532
2544
  ...
2533
2545
 
2534
- def __repr__(self) -> str:
2546
+ def __repr__(self) -> builtins.str:
2535
2547
  ...
2536
2548
 
2537
- def _repr_latex_(self) -> str:
2549
+ def _repr_latex_(self) -> builtins.str:
2538
2550
  ...
2539
2551
 
2540
2552
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -2555,10 +2567,10 @@ class MulOp:
2555
2567
  def __ge__(self, other:typing.Any) -> typing.Any:
2556
2568
  ...
2557
2569
 
2558
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2570
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2559
2571
  ...
2560
2572
 
2561
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2573
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2562
2574
  ...
2563
2575
 
2564
2576
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2613,7 +2625,7 @@ class NotEqualOp:
2613
2625
  """
2614
2626
  left: typing.Any
2615
2627
  right: typing.Any
2616
- def set_latex(self, latex = ...) -> None:
2628
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2617
2629
  r"""
2618
2630
  Set the LaTeX representation of the object.
2619
2631
  If the LaTeX representation is not set, the default representation is set.
@@ -2624,13 +2636,13 @@ class NotEqualOp:
2624
2636
  """
2625
2637
  ...
2626
2638
 
2627
- def __str__(self) -> str:
2639
+ def __str__(self) -> builtins.str:
2628
2640
  ...
2629
2641
 
2630
- def __repr__(self) -> str:
2642
+ def __repr__(self) -> builtins.str:
2631
2643
  ...
2632
2644
 
2633
- def _repr_latex_(self) -> str:
2645
+ def _repr_latex_(self) -> builtins.str:
2634
2646
  ...
2635
2647
 
2636
2648
 
@@ -2675,16 +2687,16 @@ class NumberLit:
2675
2687
 
2676
2688
  ```
2677
2689
  """
2678
- value: int | float
2690
+ value: builtins.int | builtins.float
2679
2691
  dtype: DataType
2680
- def __new__(cls,value): ...
2681
- def __str__(self) -> str:
2692
+ def __new__(cls,value:builtins.int | builtins.float): ...
2693
+ def __str__(self) -> builtins.str:
2682
2694
  ...
2683
2695
 
2684
- def __repr__(self) -> str:
2696
+ def __repr__(self) -> builtins.str:
2685
2697
  ...
2686
2698
 
2687
- def _repr_latex_(self) -> str:
2699
+ def _repr_latex_(self) -> builtins.str:
2688
2700
  ...
2689
2701
 
2690
2702
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -2705,10 +2717,10 @@ class NumberLit:
2705
2717
  def __ge__(self, other:typing.Any) -> typing.Any:
2706
2718
  ...
2707
2719
 
2708
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2720
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2709
2721
  ...
2710
2722
 
2711
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2723
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2712
2724
  ...
2713
2725
 
2714
2726
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2761,8 +2773,8 @@ class OrOp:
2761
2773
  -----
2762
2774
  The `OrOp` class does not have a constructor.
2763
2775
  """
2764
- terms: list[typing.Any]
2765
- def set_latex(self, latex = ...) -> None:
2776
+ terms: builtins.list[typing.Any]
2777
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2766
2778
  r"""
2767
2779
  Set the LaTeX representation of the object.
2768
2780
  If the LaTeX representation is not set, the default representation is set.
@@ -2773,13 +2785,13 @@ class OrOp:
2773
2785
  """
2774
2786
  ...
2775
2787
 
2776
- def __str__(self) -> str:
2788
+ def __str__(self) -> builtins.str:
2777
2789
  ...
2778
2790
 
2779
- def __repr__(self) -> str:
2791
+ def __repr__(self) -> builtins.str:
2780
2792
  ...
2781
2793
 
2782
- def _repr_latex_(self) -> str:
2794
+ def _repr_latex_(self) -> builtins.str:
2783
2795
  ...
2784
2796
 
2785
2797
 
@@ -2845,17 +2857,17 @@ class Placeholder:
2845
2857
 
2846
2858
  ```
2847
2859
  """
2848
- name: str
2849
- ndim: int
2860
+ name: builtins.str
2861
+ ndim: builtins.int
2850
2862
  dtype: typing.Optional[DataType]
2851
- jagged: bool
2852
- description: typing.Optional[str]
2863
+ jagged: builtins.bool
2864
+ description: typing.Optional[builtins.str]
2853
2865
  shape: tuple
2854
- def __new__(cls,name,*,ndim = ...,shape = ...,dtype = ...,jagged = ...,latex = ...,description = ...): ...
2855
- def len_at(self, axis,*,latex = ...,description = ...) -> ArrayLength:
2866
+ def __new__(cls,name:builtins.str, *, ndim:typing.Optional[builtins.int]=None, shape:typing.Optional[typing.Sequence[typing.Optional[typing.Any]]]=None, dtype:typing.Optional[DataType]=None, jagged:builtins.bool=False, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
2867
+ def len_at(self, axis:builtins.int, *, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> ArrayLength:
2856
2868
  ...
2857
2869
 
2858
- def set_latex(self, latex = ...) -> None:
2870
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2859
2871
  r"""
2860
2872
  Set the LaTeX representation of the object.
2861
2873
  If the LaTeX representation is not set, the default representation is set.
@@ -2866,13 +2878,13 @@ class Placeholder:
2866
2878
  """
2867
2879
  ...
2868
2880
 
2869
- def __str__(self) -> str:
2881
+ def __str__(self) -> builtins.str:
2870
2882
  ...
2871
2883
 
2872
- def __repr__(self) -> str:
2884
+ def __repr__(self) -> builtins.str:
2873
2885
  ...
2874
2886
 
2875
- def _repr_latex_(self) -> str:
2887
+ def _repr_latex_(self) -> builtins.str:
2876
2888
  ...
2877
2889
 
2878
2890
  def __getitem__(self, index:typing.Any) -> Subscript:
@@ -2896,10 +2908,10 @@ class Placeholder:
2896
2908
  def __ge__(self, other:typing.Any) -> typing.Any:
2897
2909
  ...
2898
2910
 
2899
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
2911
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2900
2912
  ...
2901
2913
 
2902
- def __rpow__(self, base,modulo = ...) -> typing.Any:
2914
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2903
2915
  ...
2904
2916
 
2905
2917
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -2954,7 +2966,7 @@ class PowOp:
2954
2966
  """
2955
2967
  base: typing.Any
2956
2968
  exponent: typing.Any
2957
- def set_latex(self, latex = ...) -> None:
2969
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
2958
2970
  r"""
2959
2971
  Set the LaTeX representation of the object.
2960
2972
  If the LaTeX representation is not set, the default representation is set.
@@ -2965,13 +2977,13 @@ class PowOp:
2965
2977
  """
2966
2978
  ...
2967
2979
 
2968
- def __str__(self) -> str:
2980
+ def __str__(self) -> builtins.str:
2969
2981
  ...
2970
2982
 
2971
- def __repr__(self) -> str:
2983
+ def __repr__(self) -> builtins.str:
2972
2984
  ...
2973
2985
 
2974
- def _repr_latex_(self) -> str:
2986
+ def _repr_latex_(self) -> builtins.str:
2975
2987
  ...
2976
2988
 
2977
2989
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -2992,10 +3004,10 @@ class PowOp:
2992
3004
  def __ge__(self, other:typing.Any) -> typing.Any:
2993
3005
  ...
2994
3006
 
2995
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
3007
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2996
3008
  ...
2997
3009
 
2998
- def __rpow__(self, base,modulo = ...) -> typing.Any:
3010
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
2999
3011
  ...
3000
3012
 
3001
3013
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -3053,19 +3065,19 @@ class Problem:
3053
3065
  - `name` (`str`): A name of the optimization problem.
3054
3066
  - `sense` (optional): Sense of the optimization problem. Defaults to `ProblemSense.MINIMIZE`.
3055
3067
  """
3056
- name: str
3068
+ name: builtins.str
3057
3069
  sense: ProblemSense
3058
3070
  objective: typing.Any
3059
- constraints: dict[str, Constraint]
3060
- custom_penalty_terms: dict[str, CustomPenaltyTerm]
3061
- def __new__(cls,name,*,sense = ...): ...
3071
+ constraints: builtins.dict[builtins.str, Constraint]
3072
+ custom_penalty_terms: builtins.dict[builtins.str, CustomPenaltyTerm]
3073
+ def __new__(cls,name:builtins.str, *, sense:ProblemSense=...): ...
3062
3074
  def __iadd__(self, other:typing.Any) -> Problem:
3063
3075
  ...
3064
3076
 
3065
- def _repr_latex_(self) -> str:
3077
+ def _repr_latex_(self) -> builtins.str:
3066
3078
  ...
3067
3079
 
3068
- def used_placeholders(self) -> list[Placeholder]:
3080
+ def used_placeholders(self) -> builtins.list[Placeholder]:
3069
3081
  ...
3070
3082
 
3071
3083
  def get_problem_schema(self) -> dict:
@@ -3078,7 +3090,7 @@ class Problem:
3078
3090
  """
3079
3091
  ...
3080
3092
 
3081
- def generate_random_dataset(self, default = ...,options = ...,seed = ...) -> dict[str, float | numpy.typing.NDArray[numpy.float64] | JaggedArray]:
3093
+ def generate_random_dataset(self, default:typing.Mapping[builtins.str, builtins.range | tuple[typing.Optional[builtins.int], typing.Optional[builtins.int]] | builtins.int | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | tuple[typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded'], typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.range | tuple[typing.Optional[builtins.float], typing.Optional[builtins.float]] | builtins.int | builtins.float | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']] | tuple[builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded'], builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]]={'size': {'start': {'Included': 1}, 'end': {'Included': 5}}, 'value': {'start': {'Included': -1.0}, 'end': {'Included': 1.0}}}, options:typing.Mapping[builtins.str, typing.Mapping[builtins.str, builtins.range | tuple[typing.Optional[builtins.int], typing.Optional[builtins.int]] | builtins.int | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | tuple[typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded'], typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.range | tuple[typing.Optional[builtins.float], typing.Optional[builtins.float]] | builtins.int | builtins.float | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']] | tuple[builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded'], builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]]]={}, seed:typing.Optional[builtins.int]=None) -> builtins.dict[builtins.str, builtins.float | numpy.typing.NDArray[numpy.float64] | JaggedArray]:
3082
3094
  r"""
3083
3095
  Generates a dictionary of random `InstanceDataValue` for a given problem.
3084
3096
  To generate `ommx.v1.Instance` object directly, use `InstanceDataValue.generate_random_instance` instead.
@@ -3168,7 +3180,7 @@ class Problem:
3168
3180
  """
3169
3181
  ...
3170
3182
 
3171
- def generate_random_instance(self, default = ...,options = ...,seed = ...) -> typing.Any:
3183
+ def generate_random_instance(self, default:typing.Mapping[builtins.str, builtins.range | tuple[typing.Optional[builtins.int], typing.Optional[builtins.int]] | builtins.int | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | tuple[typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded'], typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.range | tuple[typing.Optional[builtins.float], typing.Optional[builtins.float]] | builtins.int | builtins.float | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']] | tuple[builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded'], builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]]={'size': {'start': {'Included': 1}, 'end': {'Included': 5}}, 'value': {'start': {'Included': -1.0}, 'end': {'Included': 1.0}}}, options:typing.Mapping[builtins.str, typing.Mapping[builtins.str, builtins.range | tuple[typing.Optional[builtins.int], typing.Optional[builtins.int]] | builtins.int | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | tuple[typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded'], typing.Mapping[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.range | tuple[typing.Optional[builtins.float], typing.Optional[builtins.float]] | builtins.int | builtins.float | None | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']] | tuple[builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded'], builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]]]={}, seed:typing.Optional[builtins.int]=None, hints:typing.Optional[typing.Sequence[typing.Literal['OneHot']]]=None) -> typing.Any:
3172
3184
  r"""
3173
3185
  Generates random `ommx.v1.Instance` for a given problem.
3174
3186
  See also `InstanceDataValue.generate_random_dataset`.
@@ -3178,6 +3190,7 @@ class Problem:
3178
3190
  - `options` (optional): a dictionary of range parameters for each separate placeholders. The key must be the name of the placeholder and the value must be range parameter (as described in "Range Parameters and Range Syntax" section in :func:`~jijmodeling.Problem.generate_random_dataset`).
3179
3191
  - `default` (optional): default range parameters for placeholders which is not specified in `options`.
3180
3192
  - `seed` (optional): seed for random number generation.
3193
+ - `hints` (optional): the hints to be detected during compilation see `Interpreter.eval_problem` for more details.
3181
3194
 
3182
3195
  Returns
3183
3196
  --------
@@ -3231,7 +3244,7 @@ class ProdOp:
3231
3244
  index: Element
3232
3245
  condition: typing.Optional[typing.Any]
3233
3246
  operand: typing.Any
3234
- def set_latex(self, latex = ...) -> None:
3247
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
3235
3248
  r"""
3236
3249
  Set the LaTeX representation of the object.
3237
3250
  If the LaTeX representation is not set, the default representation is set.
@@ -3242,13 +3255,13 @@ class ProdOp:
3242
3255
  """
3243
3256
  ...
3244
3257
 
3245
- def __str__(self) -> str:
3258
+ def __str__(self) -> builtins.str:
3246
3259
  ...
3247
3260
 
3248
- def __repr__(self) -> str:
3261
+ def __repr__(self) -> builtins.str:
3249
3262
  ...
3250
3263
 
3251
- def _repr_latex_(self) -> str:
3264
+ def _repr_latex_(self) -> builtins.str:
3252
3265
  ...
3253
3266
 
3254
3267
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -3269,10 +3282,10 @@ class ProdOp:
3269
3282
  def __ge__(self, other:typing.Any) -> typing.Any:
3270
3283
  ...
3271
3284
 
3272
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
3285
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
3273
3286
  ...
3274
3287
 
3275
- def __rpow__(self, base,modulo = ...) -> typing.Any:
3288
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
3276
3289
  ...
3277
3290
 
3278
3291
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -3327,10 +3340,10 @@ class Range:
3327
3340
  """
3328
3341
  start: typing.Any
3329
3342
  end: typing.Any
3330
- def __str__(self) -> str:
3343
+ def __str__(self) -> builtins.str:
3331
3344
  ...
3332
3345
 
3333
- def __repr__(self) -> str:
3346
+ def __repr__(self) -> builtins.str:
3334
3347
  ...
3335
3348
 
3336
3349
 
@@ -3380,16 +3393,16 @@ class Record:
3380
3393
  - `solution` (`Union[Dict[str, List[numpy.ndarray]], Dict[str, List[Tuple[List[int], List[float], Tuple[int, ...]]]]]`): A solution.
3381
3394
  - `num_occurrences` (`List[int]`): A list of the number of occurrences in which the solution is observed.
3382
3395
  """
3383
- num_occurrences: list[int]
3396
+ num_occurrences: builtins.list[builtins.int]
3384
3397
  solution: dict
3385
- def __new__(cls,solution,num_occurrences): ...
3386
- def __str__(self) -> str:
3398
+ def __new__(cls,solution:typing.Any, num_occurrences:typing.Sequence[builtins.int]): ...
3399
+ def __str__(self) -> builtins.str:
3387
3400
  ...
3388
3401
 
3389
- def __repr__(self) -> str:
3402
+ def __repr__(self) -> builtins.str:
3390
3403
  ...
3391
3404
 
3392
- def __richcmp__(self, other:Record, op:int) -> bool:
3405
+ def __richcmp__(self, other:Record, op:int) -> builtins.bool:
3393
3406
  ...
3394
3407
 
3395
3408
  def to_dict(self) -> dict:
@@ -3419,7 +3432,7 @@ class Record:
3419
3432
  """
3420
3433
  ...
3421
3434
 
3422
- def to_json(self) -> str:
3435
+ def to_json(self) -> builtins.str:
3423
3436
  r"""
3424
3437
  Serialize the `Record` object into a JSON string.
3425
3438
 
@@ -3448,7 +3461,7 @@ class Record:
3448
3461
  """
3449
3462
  ...
3450
3463
 
3451
- def is_dense(self) -> bool:
3464
+ def is_dense(self) -> builtins.bool:
3452
3465
  r"""
3453
3466
  Return true if the solution is dense.
3454
3467
 
@@ -3458,7 +3471,7 @@ class Record:
3458
3471
  """
3459
3472
  ...
3460
3473
 
3461
- def is_sparse(self) -> bool:
3474
+ def is_sparse(self) -> builtins.bool:
3462
3475
  r"""
3463
3476
  Return true if the solution is sparse.
3464
3477
 
@@ -3521,14 +3534,14 @@ class SampleSet:
3521
3534
  evaluation: Evaluation
3522
3535
  measuring_time: MeasuringTime
3523
3536
  metadata: dict
3524
- def __new__(cls,record,evaluation,measuring_time,metadata = ...): ...
3525
- def __str__(self) -> str:
3537
+ def __new__(cls,record:Record, evaluation:Evaluation, measuring_time:MeasuringTime, metadata:typing.Optional[dict]=None): ...
3538
+ def __str__(self) -> builtins.str:
3526
3539
  ...
3527
3540
 
3528
- def __repr__(self) -> str:
3541
+ def __repr__(self) -> builtins.str:
3529
3542
  ...
3530
3543
 
3531
- def __richcmp__(self, other:SampleSet, op:int) -> bool:
3544
+ def __richcmp__(self, other:SampleSet, op:int) -> builtins.bool:
3532
3545
  ...
3533
3546
 
3534
3547
  def to_dict(self) -> dict:
@@ -3558,7 +3571,7 @@ class SampleSet:
3558
3571
  """
3559
3572
  ...
3560
3573
 
3561
- def to_json(self) -> str:
3574
+ def to_json(self) -> builtins.str:
3562
3575
  r"""
3563
3576
  Serialize the `SampleSet` object into a JSON string.
3564
3577
 
@@ -3608,7 +3621,7 @@ class SampleSet:
3608
3621
  """
3609
3622
  ...
3610
3623
 
3611
- def feasible(self, rtol = ...,atol = ...) -> SampleSet:
3624
+ def feasible(self, rtol:builtins.float=1e-05, atol:builtins.float=1e-08) -> SampleSet:
3612
3625
  r"""
3613
3626
  Return a `SampleSet` with only feasible solutions.
3614
3627
  If there is no feasible solution, the record and evaluation are empty.
@@ -3629,7 +3642,7 @@ class SampleSet:
3629
3642
  """
3630
3643
  ...
3631
3644
 
3632
- def infeasible(self, rtol = ...,atol = ...) -> SampleSet:
3645
+ def infeasible(self, rtol:builtins.float=1e-05, atol:builtins.float=1e-08) -> SampleSet:
3633
3646
  r"""
3634
3647
  Return a `SampleSet` with only infeasible solutions.
3635
3648
  If there is no infeasible solution, the record and evaluation are empty.
@@ -3650,7 +3663,7 @@ class SampleSet:
3650
3663
  """
3651
3664
  ...
3652
3665
 
3653
- def lowest(self, rtol = ...,atol = ...) -> SampleSet:
3666
+ def lowest(self, rtol:builtins.float=1e-05, atol:builtins.float=1e-08) -> SampleSet:
3654
3667
  r"""
3655
3668
  Return a `SampleSet` with feasible solutions which has the lowest objective.
3656
3669
  If there is no feasible solution, the record and evaluation are empty.
@@ -3671,7 +3684,7 @@ class SampleSet:
3671
3684
  """
3672
3685
  ...
3673
3686
 
3674
- def is_dense(self) -> bool:
3687
+ def is_dense(self) -> builtins.bool:
3675
3688
  r"""
3676
3689
  Return true if the solution is dense.
3677
3690
 
@@ -3681,7 +3694,7 @@ class SampleSet:
3681
3694
  """
3682
3695
  ...
3683
3696
 
3684
- def is_sparse(self) -> bool:
3697
+ def is_sparse(self) -> builtins.bool:
3685
3698
  r"""
3686
3699
  Return true if the solution is sparse.
3687
3700
 
@@ -3771,13 +3784,13 @@ class SemiContinuousVar:
3771
3784
 
3772
3785
  ```
3773
3786
  """
3774
- name: str
3775
- description: str
3776
- ndim: int
3787
+ name: builtins.str
3788
+ description: builtins.str
3789
+ ndim: builtins.int
3777
3790
  shape: tuple
3778
3791
  lower_bound: typing.Any | Placeholder | Subscript
3779
3792
  upper_bound: typing.Any | Placeholder | Subscript
3780
- def __new__(cls,name,*,shape = ...,lower_bound,upper_bound,latex = ...,description = ...): ...
3793
+ def __new__(cls,name:builtins.str, *, shape:typing.Optional[typing.Sequence[typing.Any]]=None, lower_bound:typing.Any | Placeholder | Subscript, upper_bound:typing.Any | Placeholder | Subscript, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
3781
3794
  def __getitem__(self, index:typing.Any) -> typing.Any:
3782
3795
  ...
3783
3796
 
@@ -3787,7 +3800,7 @@ class SemiContinuousVar:
3787
3800
  def __rtruediv__(self, other:typing.Any) -> typing.Any:
3788
3801
  ...
3789
3802
 
3790
- def set_latex(self, latex = ...) -> None:
3803
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
3791
3804
  r"""
3792
3805
  Set the LaTeX representation of the object.
3793
3806
  If the LaTeX representation is not set, the default representation is set.
@@ -3798,13 +3811,13 @@ class SemiContinuousVar:
3798
3811
  """
3799
3812
  ...
3800
3813
 
3801
- def __str__(self) -> str:
3814
+ def __str__(self) -> builtins.str:
3802
3815
  ...
3803
3816
 
3804
- def __repr__(self) -> str:
3817
+ def __repr__(self) -> builtins.str:
3805
3818
  ...
3806
3819
 
3807
- def _repr_latex_(self) -> str:
3820
+ def _repr_latex_(self) -> builtins.str:
3808
3821
  ...
3809
3822
 
3810
3823
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -3825,10 +3838,10 @@ class SemiContinuousVar:
3825
3838
  def __ge__(self, other:typing.Any) -> typing.Any:
3826
3839
  ...
3827
3840
 
3828
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
3841
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
3829
3842
  ...
3830
3843
 
3831
- def __rpow__(self, base,modulo = ...) -> typing.Any:
3844
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
3832
3845
  ...
3833
3846
 
3834
3847
  def __mul__(self, other:typing.Any) -> typing.Any:
@@ -3923,13 +3936,13 @@ class SemiIntegerVar:
3923
3936
 
3924
3937
  ```
3925
3938
  """
3926
- name: str
3927
- description: str
3928
- ndim: int
3939
+ name: builtins.str
3940
+ description: builtins.str
3941
+ ndim: builtins.int
3929
3942
  shape: tuple
3930
3943
  lower_bound: typing.Any | Placeholder | Subscript
3931
3944
  upper_bound: typing.Any | Placeholder | Subscript
3932
- def __new__(cls,name,*,shape = ...,lower_bound,upper_bound,latex = ...,description = ...): ...
3945
+ def __new__(cls,name:builtins.str, *, shape:typing.Optional[typing.Sequence[typing.Any]]=None, lower_bound:typing.Any | Placeholder | Subscript, upper_bound:typing.Any | Placeholder | Subscript, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None): ...
3933
3946
  def __getitem__(self, index:typing.Any) -> typing.Any:
3934
3947
  ...
3935
3948
 
@@ -3939,7 +3952,7 @@ class SemiIntegerVar:
3939
3952
  def __rtruediv__(self, other:typing.Any) -> typing.Any:
3940
3953
  ...
3941
3954
 
3942
- def set_latex(self, latex = ...) -> None:
3955
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
3943
3956
  r"""
3944
3957
  Set the LaTeX representation of the object.
3945
3958
  If the LaTeX representation is not set, the default representation is set.
@@ -3950,13 +3963,13 @@ class SemiIntegerVar:
3950
3963
  """
3951
3964
  ...
3952
3965
 
3953
- def __str__(self) -> str:
3966
+ def __str__(self) -> builtins.str:
3954
3967
  ...
3955
3968
 
3956
- def __repr__(self) -> str:
3969
+ def __repr__(self) -> builtins.str:
3957
3970
  ...
3958
3971
 
3959
- def _repr_latex_(self) -> str:
3972
+ def _repr_latex_(self) -> builtins.str:
3960
3973
  ...
3961
3974
 
3962
3975
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -3977,10 +3990,10 @@ class SemiIntegerVar:
3977
3990
  def __ge__(self, other:typing.Any) -> typing.Any:
3978
3991
  ...
3979
3992
 
3980
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
3993
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
3981
3994
  ...
3982
3995
 
3983
- def __rpow__(self, base,modulo = ...) -> typing.Any:
3996
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
3984
3997
  ...
3985
3998
 
3986
3999
  def __mul__(self, other:typing.Any) -> typing.Any:
@@ -4015,17 +4028,17 @@ class SolvingTime:
4015
4028
  - `solve` (`float`, optional): Time to solve the problem. Defaults to None.
4016
4029
  - `postprocess` (`float`, optional): Time to postprocess the problem. Defaults to None.
4017
4030
  """
4018
- preprocess: typing.Optional[float]
4019
- solve: typing.Optional[float]
4020
- postprocess: typing.Optional[float]
4021
- def __new__(cls,preprocess = ...,solve = ...,postprocess = ...): ...
4022
- def __str__(self) -> str:
4031
+ preprocess: typing.Optional[builtins.float]
4032
+ solve: typing.Optional[builtins.float]
4033
+ postprocess: typing.Optional[builtins.float]
4034
+ def __new__(cls,preprocess:typing.Optional[builtins.float]=None, solve:typing.Optional[builtins.float]=None, postprocess:typing.Optional[builtins.float]=None): ...
4035
+ def __str__(self) -> builtins.str:
4023
4036
  ...
4024
4037
 
4025
- def __repr__(self) -> str:
4038
+ def __repr__(self) -> builtins.str:
4026
4039
  ...
4027
4040
 
4028
- def __richcmp__(self, other:SolvingTime, op:int) -> bool:
4041
+ def __richcmp__(self, other:SolvingTime, op:int) -> builtins.bool:
4029
4042
  ...
4030
4043
 
4031
4044
  def to_dict(self) -> dict:
@@ -4055,7 +4068,7 @@ class SolvingTime:
4055
4068
  """
4056
4069
  ...
4057
4070
 
4058
- def to_json(self) -> str:
4071
+ def to_json(self) -> builtins.str:
4059
4072
  r"""
4060
4073
  Serialize the `SolvingTime` object into a JSON string.
4061
4074
 
@@ -4102,13 +4115,13 @@ class Subscript:
4102
4115
  The Subscript class does not have a constructor.
4103
4116
  """
4104
4117
  variable: typing.Any
4105
- subscripts: list[typing.Any]
4106
- ndim: int
4118
+ subscripts: builtins.list[typing.Any]
4119
+ ndim: builtins.int
4107
4120
  shape: tuple
4108
- def len_at(self, axis,*,latex = ...,description = ...) -> ArrayLength:
4121
+ def len_at(self, axis:builtins.int, *, latex:typing.Optional[builtins.str]=None, description:typing.Optional[builtins.str]=None) -> ArrayLength:
4109
4122
  ...
4110
4123
 
4111
- def set_latex(self, latex = ...) -> None:
4124
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
4112
4125
  r"""
4113
4126
  Set the LaTeX representation of the object.
4114
4127
  If the LaTeX representation is not set, the default representation is set.
@@ -4119,13 +4132,13 @@ class Subscript:
4119
4132
  """
4120
4133
  ...
4121
4134
 
4122
- def __str__(self) -> str:
4135
+ def __str__(self) -> builtins.str:
4123
4136
  ...
4124
4137
 
4125
- def __repr__(self) -> str:
4138
+ def __repr__(self) -> builtins.str:
4126
4139
  ...
4127
4140
 
4128
- def _repr_latex_(self) -> str:
4141
+ def _repr_latex_(self) -> builtins.str:
4129
4142
  ...
4130
4143
 
4131
4144
  def __getitem__(self, index:typing.Any) -> Subscript:
@@ -4149,10 +4162,10 @@ class Subscript:
4149
4162
  def __ge__(self, other:typing.Any) -> typing.Any:
4150
4163
  ...
4151
4164
 
4152
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
4165
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
4153
4166
  ...
4154
4167
 
4155
- def __rpow__(self, base,modulo = ...) -> typing.Any:
4168
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
4156
4169
  ...
4157
4170
 
4158
4171
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -4209,7 +4222,7 @@ class SumOp:
4209
4222
  index: Element
4210
4223
  condition: typing.Optional[typing.Any]
4211
4224
  operand: typing.Any
4212
- def set_latex(self, latex = ...) -> None:
4225
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
4213
4226
  r"""
4214
4227
  Set the LaTeX representation of the object.
4215
4228
  If the LaTeX representation is not set, the default representation is set.
@@ -4220,13 +4233,13 @@ class SumOp:
4220
4233
  """
4221
4234
  ...
4222
4235
 
4223
- def __str__(self) -> str:
4236
+ def __str__(self) -> builtins.str:
4224
4237
  ...
4225
4238
 
4226
- def __repr__(self) -> str:
4239
+ def __repr__(self) -> builtins.str:
4227
4240
  ...
4228
4241
 
4229
- def _repr_latex_(self) -> str:
4242
+ def _repr_latex_(self) -> builtins.str:
4230
4243
  ...
4231
4244
 
4232
4245
  def __eq__(self, other:typing.Any) -> typing.Any:
@@ -4247,10 +4260,10 @@ class SumOp:
4247
4260
  def __ge__(self, other:typing.Any) -> typing.Any:
4248
4261
  ...
4249
4262
 
4250
- def __pow__(self, exponent,modulo = ...) -> typing.Any:
4263
+ def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
4251
4264
  ...
4252
4265
 
4253
- def __rpow__(self, base,modulo = ...) -> typing.Any:
4266
+ def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> typing.Any:
4254
4267
  ...
4255
4268
 
4256
4269
  def __mod__(self, other:typing.Any) -> typing.Any:
@@ -4299,19 +4312,19 @@ class SystemTime:
4299
4312
  - `fetch_result` (`float`, optional): Time to fetch result. Defaults to None.
4300
4313
  - `deserialize_solution` (`float`, optional): Time to deserialize json object. Defaults to None.
4301
4314
  """
4302
- post_problem_and_instance_data: typing.Optional[float]
4303
- request_queue: typing.Optional[float]
4304
- fetch_problem_and_instance_data: typing.Optional[float]
4305
- fetch_result: typing.Optional[float]
4306
- deserialize_solution: typing.Optional[float]
4307
- def __new__(cls,post_problem_and_instance_data = ...,request_queue = ...,fetch_problem_and_instance_data = ...,fetch_result = ...,deserialize_solution = ...): ...
4308
- def __str__(self) -> str:
4315
+ post_problem_and_instance_data: typing.Optional[builtins.float]
4316
+ request_queue: typing.Optional[builtins.float]
4317
+ fetch_problem_and_instance_data: typing.Optional[builtins.float]
4318
+ fetch_result: typing.Optional[builtins.float]
4319
+ deserialize_solution: typing.Optional[builtins.float]
4320
+ def __new__(cls,post_problem_and_instance_data:typing.Optional[builtins.float]=None, request_queue:typing.Optional[builtins.float]=None, fetch_problem_and_instance_data:typing.Optional[builtins.float]=None, fetch_result:typing.Optional[builtins.float]=None, deserialize_solution:typing.Optional[builtins.float]=None): ...
4321
+ def __str__(self) -> builtins.str:
4309
4322
  ...
4310
4323
 
4311
- def __repr__(self) -> str:
4324
+ def __repr__(self) -> builtins.str:
4312
4325
  ...
4313
4326
 
4314
- def __richcmp__(self, other:SystemTime, op:int) -> bool:
4327
+ def __richcmp__(self, other:SystemTime, op:int) -> builtins.bool:
4315
4328
  ...
4316
4329
 
4317
4330
  def to_dict(self) -> dict:
@@ -4341,7 +4354,7 @@ class SystemTime:
4341
4354
  """
4342
4355
  ...
4343
4356
 
4344
- def to_json(self) -> str:
4357
+ def to_json(self) -> builtins.str:
4345
4358
  r"""
4346
4359
  Serialize the `SystemTime` object into a JSON string.
4347
4360
 
@@ -4387,8 +4400,8 @@ class XorOp:
4387
4400
  -----
4388
4401
  The `XorOp` class does not have a constructor.
4389
4402
  """
4390
- terms: list[typing.Any]
4391
- def set_latex(self, latex = ...) -> None:
4403
+ terms: builtins.list[typing.Any]
4404
+ def set_latex(self, latex:typing.Optional[builtins.str]=None) -> None:
4392
4405
  r"""
4393
4406
  Set the LaTeX representation of the object.
4394
4407
  If the LaTeX representation is not set, the default representation is set.
@@ -4399,13 +4412,13 @@ class XorOp:
4399
4412
  """
4400
4413
  ...
4401
4414
 
4402
- def __str__(self) -> str:
4415
+ def __str__(self) -> builtins.str:
4403
4416
  ...
4404
4417
 
4405
- def __repr__(self) -> str:
4418
+ def __repr__(self) -> builtins.str:
4406
4419
  ...
4407
4420
 
4408
- def _repr_latex_(self) -> str:
4421
+ def _repr_latex_(self) -> builtins.str:
4409
4422
  ...
4410
4423
 
4411
4424
 
@@ -4504,7 +4517,7 @@ def concatenate(sample_sets:typing.Sequence[SampleSet]) -> SampleSet:
4504
4517
  """
4505
4518
  ...
4506
4519
 
4507
- def extract_nodes(obj:typing.Any,class_or_tuple:type | typing.Sequence[type]) -> list[typing.Any]:
4520
+ def extract_nodes(obj:typing.Any, class_or_tuple:type | typing.Sequence[type]) -> builtins.list[typing.Any]:
4508
4521
  r"""
4509
4522
  Extract all nodes from the given object.
4510
4523
 
@@ -4551,7 +4564,7 @@ def extract_nodes(obj:typing.Any,class_or_tuple:type | typing.Sequence[type]) ->
4551
4564
  """
4552
4565
  ...
4553
4566
 
4554
- def extract_variables(obj:typing.Any) -> list[typing.Any]:
4567
+ def extract_variables(obj:typing.Any) -> builtins.list[typing.Any]:
4555
4568
  r"""
4556
4569
  Extract all variables from the given object without duplication.
4557
4570
 
@@ -4624,7 +4637,7 @@ def floor(operand:typing.Any) -> FloorOp:
4624
4637
  def from_protobuf(buf:bytes) -> typing.Any:
4625
4638
  ...
4626
4639
 
4627
- def is_dynamic_degree(expr:typing.Any) -> bool:
4640
+ def is_dynamic_degree(expr:typing.Any) -> builtins.bool:
4628
4641
  r"""
4629
4642
  Return true if degree of the expression is not determined statically.
4630
4643
 
@@ -4652,7 +4665,7 @@ def is_dynamic_degree(expr:typing.Any) -> bool:
4652
4665
  """
4653
4666
  ...
4654
4667
 
4655
- def is_higher_order(expr:typing.Any) -> bool:
4668
+ def is_higher_order(expr:typing.Any) -> builtins.bool:
4656
4669
  r"""
4657
4670
  Return true if the degree of the given expression is higher than 2.
4658
4671
 
@@ -4666,7 +4679,7 @@ def is_higher_order(expr:typing.Any) -> bool:
4666
4679
  """
4667
4680
  ...
4668
4681
 
4669
- def is_linear(expr:typing.Any) -> bool:
4682
+ def is_linear(expr:typing.Any) -> builtins.bool:
4670
4683
  r"""
4671
4684
  Return true if the given expression is linear.
4672
4685
 
@@ -4680,7 +4693,7 @@ def is_linear(expr:typing.Any) -> bool:
4680
4693
  """
4681
4694
  ...
4682
4695
 
4683
- def is_quadratic(expr:typing.Any) -> bool:
4696
+ def is_quadratic(expr:typing.Any) -> builtins.bool:
4684
4697
  r"""
4685
4698
  Return true if the given expression is quadratic.
4686
4699
 
@@ -4694,7 +4707,7 @@ def is_quadratic(expr:typing.Any) -> bool:
4694
4707
  """
4695
4708
  ...
4696
4709
 
4697
- def is_same(src:typing.Any,dst:typing.Any) -> bool:
4710
+ def is_same(src:typing.Any, dst:typing.Any) -> builtins.bool:
4698
4711
  r"""
4699
4712
  Return `true` if `src` and `dst` are the same object defined by Jijmodeling.
4700
4713
 
@@ -4780,7 +4793,7 @@ def load_mps(path:str) -> tuple:
4780
4793
  """
4781
4794
  ...
4782
4795
 
4783
- def load_qplib(path,load_extra_data = ...) -> tuple:
4796
+ def load_qplib(path:str, load_extra_data:builtins.bool=False) -> tuple:
4784
4797
  r"""
4785
4798
  Load a file in QPLIB format to generate a `Problem` object and a
4786
4799
  corresponding instance data dictionary.
@@ -4874,7 +4887,7 @@ def log2(operand:typing.Any) -> Log2Op:
4874
4887
  """
4875
4888
  ...
4876
4889
 
4877
- def max(* operands) -> MaxOp:
4890
+ def max(*operands) -> MaxOp:
4878
4891
  r"""
4879
4892
  Create the `MaxOp` object from the expression.
4880
4893
 
@@ -4905,7 +4918,7 @@ def max(* operands) -> MaxOp:
4905
4918
  """
4906
4919
  ...
4907
4920
 
4908
- def min(* operands) -> MinOp:
4921
+ def min(*operands) -> MinOp:
4909
4922
  r"""
4910
4923
  Create the `MinOp` object from the expression.
4911
4924
 
@@ -4936,7 +4949,7 @@ def min(* operands) -> MinOp:
4936
4949
  """
4937
4950
  ...
4938
4951
 
4939
- def prod(index:typing.Any,operand:typing.Any) -> ProdOp:
4952
+ def prod(index:typing.Any, operand:typing.Any) -> ProdOp:
4940
4953
  r"""
4941
4954
  Create the `ProdOp` object.
4942
4955
 
@@ -4989,7 +5002,7 @@ def prod(index:typing.Any,operand:typing.Any) -> ProdOp:
4989
5002
  """
4990
5003
  ...
4991
5004
 
4992
- def replace(target:typing.Any,replacer:typing.Any) -> typing.Any:
5005
+ def replace(target:typing.Any, replacer:typing.Any) -> typing.Any:
4993
5006
  r"""
4994
5007
  Replace expression nodes with the result of calling the replacer function.
4995
5008
 
@@ -5074,7 +5087,7 @@ def replace(target:typing.Any,replacer:typing.Any) -> typing.Any:
5074
5087
  """
5075
5088
  ...
5076
5089
 
5077
- def sum(index:typing.Any,operand:typing.Any) -> SumOp:
5090
+ def sum(index:typing.Any, operand:typing.Any) -> SumOp:
5078
5091
  r"""
5079
5092
  Create the `SumOp` object.
5080
5093