jijmodeling 2.0.0a2__cp38-abi3-macosx_10_16_x86_64.whl → 2.0.0a4__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 +342 -97
- jijmodeling/_jijmodeling.abi3.so +0 -0
- {jijmodeling-2.0.0a2.dist-info → jijmodeling-2.0.0a4.dist-info}/METADATA +2 -2
- jijmodeling-2.0.0a4.dist-info/RECORD +9 -0
- jijmodeling-2.0.0a2.dist-info/RECORD +0 -9
- {jijmodeling-2.0.0a2.dist-info → jijmodeling-2.0.0a4.dist-info}/WHEEL +0 -0
- {jijmodeling-2.0.0a2.dist-info → jijmodeling-2.0.0a4.dist-info}/licenses/LICENSE.txt +0 -0
jijmodeling/__init__.pyi
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
# ruff: noqa: E501, F401
|
|
3
3
|
|
|
4
4
|
import builtins
|
|
5
|
+
import numpy
|
|
6
|
+
import numpy.typing
|
|
5
7
|
import ommx.v1
|
|
6
8
|
import typing
|
|
7
9
|
from . import _jijmodeling
|
|
@@ -9,7 +11,7 @@ from enum import Enum, auto
|
|
|
9
11
|
|
|
10
12
|
__version__: builtins.str
|
|
11
13
|
class Compiler:
|
|
12
|
-
def __new__(cls,namespace:Namespace, instance_data:
|
|
14
|
+
def __new__(cls,namespace:Namespace, instance_data:typing.Mapping[builtins.str, builtins.int | builtins.float | numpy.typing.NDArray[numpy.float64] | numpy.typing.NDArray[numpy.int64] | list]): ...
|
|
13
15
|
def get_constraint_id_by_name(self, name:builtins.str) -> dict:
|
|
14
16
|
r"""
|
|
15
17
|
Obtains a dictionary from subscript to constraint Id.
|
|
@@ -29,7 +31,7 @@ class Compiler:
|
|
|
29
31
|
...
|
|
30
32
|
|
|
31
33
|
@staticmethod
|
|
32
|
-
def from_problem(problem:Problem, instance_data:
|
|
34
|
+
def from_problem(problem:Problem, instance_data:typing.Mapping[builtins.str, builtins.int | builtins.float | numpy.typing.NDArray[numpy.float64] | numpy.typing.NDArray[numpy.int64] | list]) -> Compiler:
|
|
33
35
|
...
|
|
34
36
|
|
|
35
37
|
|
|
@@ -153,70 +155,148 @@ class DecisionVar:
|
|
|
153
155
|
def __repr__(self) -> builtins.str:
|
|
154
156
|
...
|
|
155
157
|
|
|
156
|
-
def
|
|
158
|
+
def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression:
|
|
157
159
|
...
|
|
158
160
|
|
|
159
|
-
def
|
|
161
|
+
def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression:
|
|
160
162
|
...
|
|
161
163
|
|
|
162
|
-
def
|
|
164
|
+
def __add__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
163
165
|
...
|
|
164
166
|
|
|
165
|
-
def
|
|
167
|
+
def __radd__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
166
168
|
...
|
|
167
169
|
|
|
168
|
-
def
|
|
170
|
+
def __sub__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
169
171
|
...
|
|
170
172
|
|
|
171
|
-
def
|
|
173
|
+
def __rsub__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
172
174
|
...
|
|
173
175
|
|
|
174
|
-
def
|
|
176
|
+
def __mul__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
175
177
|
...
|
|
176
178
|
|
|
177
|
-
def
|
|
179
|
+
def __rmul__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
178
180
|
...
|
|
179
181
|
|
|
180
|
-
def
|
|
182
|
+
def __truediv__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
181
183
|
...
|
|
182
184
|
|
|
183
|
-
def
|
|
185
|
+
def __rtruediv__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
184
186
|
...
|
|
185
187
|
|
|
186
|
-
def
|
|
188
|
+
def __mod__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
187
189
|
...
|
|
188
190
|
|
|
189
|
-
def
|
|
191
|
+
def __rmod__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
190
192
|
...
|
|
191
193
|
|
|
192
|
-
def
|
|
194
|
+
def min(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
193
195
|
...
|
|
194
196
|
|
|
195
|
-
def
|
|
197
|
+
def max(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
196
198
|
...
|
|
197
199
|
|
|
198
|
-
def
|
|
200
|
+
def __neg__(self) -> Expression:
|
|
199
201
|
...
|
|
200
202
|
|
|
201
|
-
def
|
|
203
|
+
def abs(self) -> Expression:
|
|
202
204
|
...
|
|
203
205
|
|
|
204
|
-
def
|
|
206
|
+
def sqrt(self) -> Expression:
|
|
205
207
|
...
|
|
206
208
|
|
|
207
|
-
def
|
|
209
|
+
def sin(self) -> Expression:
|
|
208
210
|
...
|
|
209
211
|
|
|
210
|
-
def
|
|
212
|
+
def cos(self) -> Expression:
|
|
211
213
|
...
|
|
212
214
|
|
|
213
|
-
def
|
|
215
|
+
def tan(self) -> Expression:
|
|
214
216
|
...
|
|
215
217
|
|
|
216
|
-
def
|
|
218
|
+
def asin(self) -> Expression:
|
|
217
219
|
...
|
|
218
220
|
|
|
219
|
-
def
|
|
221
|
+
def acos(self) -> Expression:
|
|
222
|
+
...
|
|
223
|
+
|
|
224
|
+
def atan(self) -> Expression:
|
|
225
|
+
...
|
|
226
|
+
|
|
227
|
+
def sinh(self) -> Expression:
|
|
228
|
+
...
|
|
229
|
+
|
|
230
|
+
def cosh(self) -> Expression:
|
|
231
|
+
...
|
|
232
|
+
|
|
233
|
+
def tanh(self) -> Expression:
|
|
234
|
+
...
|
|
235
|
+
|
|
236
|
+
def asinh(self) -> Expression:
|
|
237
|
+
...
|
|
238
|
+
|
|
239
|
+
def acosh(self) -> Expression:
|
|
240
|
+
...
|
|
241
|
+
|
|
242
|
+
def atanh(self) -> Expression:
|
|
243
|
+
...
|
|
244
|
+
|
|
245
|
+
def exp(self) -> Expression:
|
|
246
|
+
...
|
|
247
|
+
|
|
248
|
+
def ln(self) -> Expression:
|
|
249
|
+
...
|
|
250
|
+
|
|
251
|
+
def log10(self) -> Expression:
|
|
252
|
+
...
|
|
253
|
+
|
|
254
|
+
def log2(self) -> Expression:
|
|
255
|
+
...
|
|
256
|
+
|
|
257
|
+
def ceil(self) -> Expression:
|
|
258
|
+
...
|
|
259
|
+
|
|
260
|
+
def floor(self) -> Expression:
|
|
261
|
+
...
|
|
262
|
+
|
|
263
|
+
def map(self, func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
264
|
+
...
|
|
265
|
+
|
|
266
|
+
def roll(self, shift:typing.Any, *, axis:typing.Optional[builtins.int]=None) -> Expression:
|
|
267
|
+
...
|
|
268
|
+
|
|
269
|
+
def filter(self, predicate:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
270
|
+
...
|
|
271
|
+
|
|
272
|
+
def flat_map(self, func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
273
|
+
...
|
|
274
|
+
|
|
275
|
+
def __getitem__(self, subscripts:typing.Any) -> Expression:
|
|
276
|
+
...
|
|
277
|
+
|
|
278
|
+
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:
|
|
279
|
+
...
|
|
280
|
+
|
|
281
|
+
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:
|
|
282
|
+
...
|
|
283
|
+
|
|
284
|
+
def __eq__(self, other:typing.Any) -> Expression:
|
|
285
|
+
...
|
|
286
|
+
|
|
287
|
+
def __ne__(self, other:typing.Any) -> Expression:
|
|
288
|
+
...
|
|
289
|
+
|
|
290
|
+
def __lt__(self, other:typing.Any) -> Expression:
|
|
291
|
+
...
|
|
292
|
+
|
|
293
|
+
def __le__(self, other:typing.Any) -> Expression:
|
|
294
|
+
...
|
|
295
|
+
|
|
296
|
+
def __gt__(self, other:typing.Any) -> Expression:
|
|
297
|
+
...
|
|
298
|
+
|
|
299
|
+
def __ge__(self, other:typing.Any) -> Expression:
|
|
220
300
|
...
|
|
221
301
|
|
|
222
302
|
|
|
@@ -224,157 +304,184 @@ class Expression:
|
|
|
224
304
|
r"""
|
|
225
305
|
Any expression in Python.
|
|
226
306
|
"""
|
|
227
|
-
def
|
|
307
|
+
def __call__(self, *args) -> Expression:
|
|
228
308
|
...
|
|
229
309
|
|
|
230
|
-
def
|
|
310
|
+
def shape(self) -> Expression:
|
|
311
|
+
...
|
|
312
|
+
|
|
313
|
+
def len_at(self, axis:builtins.int) -> Expression:
|
|
231
314
|
...
|
|
232
315
|
|
|
233
|
-
def
|
|
316
|
+
def __repr__(self) -> builtins.str:
|
|
234
317
|
...
|
|
235
318
|
|
|
236
|
-
def
|
|
319
|
+
def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression:
|
|
237
320
|
...
|
|
238
321
|
|
|
239
|
-
def
|
|
322
|
+
def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression:
|
|
240
323
|
...
|
|
241
324
|
|
|
242
|
-
def
|
|
325
|
+
def __add__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
243
326
|
...
|
|
244
327
|
|
|
245
|
-
def
|
|
328
|
+
def __radd__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
246
329
|
...
|
|
247
330
|
|
|
248
|
-
def
|
|
331
|
+
def __sub__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
249
332
|
...
|
|
250
333
|
|
|
251
|
-
def
|
|
334
|
+
def __rsub__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
252
335
|
...
|
|
253
336
|
|
|
254
|
-
def
|
|
337
|
+
def __mul__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
255
338
|
...
|
|
256
339
|
|
|
257
|
-
def
|
|
340
|
+
def __rmul__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
258
341
|
...
|
|
259
342
|
|
|
260
|
-
def
|
|
343
|
+
def __truediv__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
261
344
|
...
|
|
262
345
|
|
|
263
|
-
def
|
|
346
|
+
def __rtruediv__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
264
347
|
...
|
|
265
348
|
|
|
266
|
-
def
|
|
349
|
+
def __mod__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
267
350
|
...
|
|
268
351
|
|
|
269
|
-
def
|
|
352
|
+
def __rmod__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
270
353
|
...
|
|
271
354
|
|
|
272
|
-
def
|
|
355
|
+
def min(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
273
356
|
...
|
|
274
357
|
|
|
275
|
-
def
|
|
358
|
+
def max(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
276
359
|
...
|
|
277
360
|
|
|
278
|
-
def
|
|
361
|
+
def __neg__(self) -> Expression:
|
|
279
362
|
...
|
|
280
363
|
|
|
281
|
-
def
|
|
364
|
+
def abs(self) -> Expression:
|
|
282
365
|
...
|
|
283
366
|
|
|
284
367
|
def sqrt(self) -> Expression:
|
|
285
368
|
...
|
|
286
369
|
|
|
287
|
-
def
|
|
370
|
+
def sin(self) -> Expression:
|
|
288
371
|
...
|
|
289
372
|
|
|
290
|
-
def
|
|
373
|
+
def cos(self) -> Expression:
|
|
291
374
|
...
|
|
292
375
|
|
|
293
|
-
def
|
|
376
|
+
def tan(self) -> Expression:
|
|
294
377
|
...
|
|
295
378
|
|
|
296
|
-
def
|
|
379
|
+
def asin(self) -> Expression:
|
|
297
380
|
...
|
|
298
381
|
|
|
299
|
-
def
|
|
382
|
+
def acos(self) -> Expression:
|
|
300
383
|
...
|
|
301
384
|
|
|
302
|
-
def
|
|
385
|
+
def atan(self) -> Expression:
|
|
303
386
|
...
|
|
304
387
|
|
|
305
|
-
def
|
|
388
|
+
def sinh(self) -> Expression:
|
|
306
389
|
...
|
|
307
390
|
|
|
308
|
-
def
|
|
391
|
+
def cosh(self) -> Expression:
|
|
309
392
|
...
|
|
310
393
|
|
|
311
|
-
def
|
|
394
|
+
def tanh(self) -> Expression:
|
|
312
395
|
...
|
|
313
396
|
|
|
314
|
-
def
|
|
397
|
+
def asinh(self) -> Expression:
|
|
315
398
|
...
|
|
316
399
|
|
|
317
|
-
def
|
|
400
|
+
def acosh(self) -> Expression:
|
|
318
401
|
...
|
|
319
402
|
|
|
320
|
-
def
|
|
403
|
+
def atanh(self) -> Expression:
|
|
321
404
|
...
|
|
322
405
|
|
|
323
|
-
def
|
|
406
|
+
def exp(self) -> Expression:
|
|
324
407
|
...
|
|
325
408
|
|
|
326
|
-
def
|
|
409
|
+
def ln(self) -> Expression:
|
|
327
410
|
...
|
|
328
411
|
|
|
329
|
-
def
|
|
412
|
+
def log10(self) -> Expression:
|
|
330
413
|
...
|
|
331
414
|
|
|
332
|
-
def
|
|
415
|
+
def log2(self) -> Expression:
|
|
333
416
|
...
|
|
334
417
|
|
|
335
|
-
def
|
|
418
|
+
def ceil(self) -> Expression:
|
|
336
419
|
...
|
|
337
420
|
|
|
338
|
-
def
|
|
421
|
+
def floor(self) -> Expression:
|
|
339
422
|
...
|
|
340
423
|
|
|
341
|
-
def
|
|
424
|
+
def map(self, func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
342
425
|
...
|
|
343
426
|
|
|
344
|
-
def
|
|
427
|
+
def roll(self, shift:typing.Any, *, axis:typing.Optional[builtins.int]=None) -> Expression:
|
|
345
428
|
...
|
|
346
429
|
|
|
347
|
-
def
|
|
430
|
+
def filter(self, predicate:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
348
431
|
...
|
|
349
432
|
|
|
350
|
-
def
|
|
433
|
+
def flat_map(self, func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
351
434
|
...
|
|
352
435
|
|
|
353
|
-
def
|
|
436
|
+
def __getitem__(self, subscripts:typing.Any) -> Expression:
|
|
354
437
|
...
|
|
355
438
|
|
|
356
|
-
def
|
|
439
|
+
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:
|
|
357
440
|
...
|
|
358
441
|
|
|
359
|
-
def
|
|
442
|
+
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:
|
|
360
443
|
...
|
|
361
444
|
|
|
362
|
-
def
|
|
445
|
+
def __and__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
363
446
|
...
|
|
364
447
|
|
|
365
|
-
def
|
|
448
|
+
def __rand__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
366
449
|
...
|
|
367
450
|
|
|
368
|
-
def
|
|
451
|
+
def __or__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
369
452
|
...
|
|
370
453
|
|
|
371
|
-
def
|
|
454
|
+
def __ror__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
372
455
|
...
|
|
373
456
|
|
|
374
|
-
def
|
|
457
|
+
def __xor__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
375
458
|
...
|
|
376
459
|
|
|
377
|
-
def
|
|
460
|
+
def __rxor__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
461
|
+
...
|
|
462
|
+
|
|
463
|
+
def diff(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
464
|
+
...
|
|
465
|
+
|
|
466
|
+
def bnot(self) -> Expression:
|
|
467
|
+
...
|
|
468
|
+
|
|
469
|
+
def __eq__(self, other:typing.Any) -> Expression:
|
|
470
|
+
...
|
|
471
|
+
|
|
472
|
+
def __ne__(self, other:typing.Any) -> Expression:
|
|
473
|
+
...
|
|
474
|
+
|
|
475
|
+
def __lt__(self, other:typing.Any) -> Expression:
|
|
476
|
+
...
|
|
477
|
+
|
|
478
|
+
def __le__(self, other:typing.Any) -> Expression:
|
|
479
|
+
...
|
|
480
|
+
|
|
481
|
+
def __gt__(self, other:typing.Any) -> Expression:
|
|
482
|
+
...
|
|
483
|
+
|
|
484
|
+
def __ge__(self, other:typing.Any) -> Expression:
|
|
378
485
|
...
|
|
379
486
|
|
|
380
487
|
|
|
@@ -393,6 +500,12 @@ class Namespace:
|
|
|
393
500
|
def add_decision_var(self, var:DecisionVar) -> None:
|
|
394
501
|
...
|
|
395
502
|
|
|
503
|
+
def type_of(self, name:builtins.str) -> Type:
|
|
504
|
+
...
|
|
505
|
+
|
|
506
|
+
def infer(self, expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Type:
|
|
507
|
+
...
|
|
508
|
+
|
|
396
509
|
|
|
397
510
|
class Placeholder:
|
|
398
511
|
r"""
|
|
@@ -465,70 +578,172 @@ class Placeholder:
|
|
|
465
578
|
def len_at(self, index:builtins.int) -> Expression:
|
|
466
579
|
...
|
|
467
580
|
|
|
468
|
-
def
|
|
581
|
+
def __pow__(self, exponent:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression:
|
|
469
582
|
...
|
|
470
583
|
|
|
471
|
-
def
|
|
584
|
+
def __rpow__(self, base:typing.Any, modulo:typing.Optional[typing.Any]=None) -> Expression:
|
|
472
585
|
...
|
|
473
586
|
|
|
474
|
-
def
|
|
587
|
+
def __add__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
475
588
|
...
|
|
476
589
|
|
|
477
|
-
def
|
|
590
|
+
def __radd__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
478
591
|
...
|
|
479
592
|
|
|
480
|
-
def
|
|
593
|
+
def __sub__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
481
594
|
...
|
|
482
595
|
|
|
483
|
-
def
|
|
596
|
+
def __rsub__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
484
597
|
...
|
|
485
598
|
|
|
486
|
-
def
|
|
599
|
+
def __mul__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
487
600
|
...
|
|
488
601
|
|
|
489
|
-
def
|
|
602
|
+
def __rmul__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
490
603
|
...
|
|
491
604
|
|
|
492
|
-
def
|
|
605
|
+
def __truediv__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
493
606
|
...
|
|
494
607
|
|
|
495
|
-
def
|
|
608
|
+
def __rtruediv__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
496
609
|
...
|
|
497
610
|
|
|
498
|
-
def
|
|
611
|
+
def __mod__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
499
612
|
...
|
|
500
613
|
|
|
501
|
-
def
|
|
614
|
+
def __rmod__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
502
615
|
...
|
|
503
616
|
|
|
504
|
-
def
|
|
617
|
+
def min(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
505
618
|
...
|
|
506
619
|
|
|
507
|
-
def
|
|
620
|
+
def max(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
508
621
|
...
|
|
509
622
|
|
|
510
|
-
def
|
|
623
|
+
def __neg__(self) -> Expression:
|
|
511
624
|
...
|
|
512
625
|
|
|
513
|
-
def
|
|
626
|
+
def abs(self) -> Expression:
|
|
514
627
|
...
|
|
515
628
|
|
|
516
|
-
def
|
|
629
|
+
def sqrt(self) -> Expression:
|
|
517
630
|
...
|
|
518
631
|
|
|
519
|
-
def
|
|
632
|
+
def sin(self) -> Expression:
|
|
520
633
|
...
|
|
521
634
|
|
|
522
|
-
def
|
|
635
|
+
def cos(self) -> Expression:
|
|
523
636
|
...
|
|
524
637
|
|
|
525
|
-
def
|
|
638
|
+
def tan(self) -> Expression:
|
|
526
639
|
...
|
|
527
640
|
|
|
528
|
-
def
|
|
641
|
+
def asin(self) -> Expression:
|
|
529
642
|
...
|
|
530
643
|
|
|
531
|
-
def
|
|
644
|
+
def acos(self) -> Expression:
|
|
645
|
+
...
|
|
646
|
+
|
|
647
|
+
def atan(self) -> Expression:
|
|
648
|
+
...
|
|
649
|
+
|
|
650
|
+
def sinh(self) -> Expression:
|
|
651
|
+
...
|
|
652
|
+
|
|
653
|
+
def cosh(self) -> Expression:
|
|
654
|
+
...
|
|
655
|
+
|
|
656
|
+
def tanh(self) -> Expression:
|
|
657
|
+
...
|
|
658
|
+
|
|
659
|
+
def asinh(self) -> Expression:
|
|
660
|
+
...
|
|
661
|
+
|
|
662
|
+
def acosh(self) -> Expression:
|
|
663
|
+
...
|
|
664
|
+
|
|
665
|
+
def atanh(self) -> Expression:
|
|
666
|
+
...
|
|
667
|
+
|
|
668
|
+
def exp(self) -> Expression:
|
|
669
|
+
...
|
|
670
|
+
|
|
671
|
+
def ln(self) -> Expression:
|
|
672
|
+
...
|
|
673
|
+
|
|
674
|
+
def log10(self) -> Expression:
|
|
675
|
+
...
|
|
676
|
+
|
|
677
|
+
def log2(self) -> Expression:
|
|
678
|
+
...
|
|
679
|
+
|
|
680
|
+
def ceil(self) -> Expression:
|
|
681
|
+
...
|
|
682
|
+
|
|
683
|
+
def floor(self) -> Expression:
|
|
684
|
+
...
|
|
685
|
+
|
|
686
|
+
def map(self, func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
687
|
+
...
|
|
688
|
+
|
|
689
|
+
def roll(self, shift:typing.Any, *, axis:typing.Optional[builtins.int]=None) -> Expression:
|
|
690
|
+
...
|
|
691
|
+
|
|
692
|
+
def filter(self, predicate:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
693
|
+
...
|
|
694
|
+
|
|
695
|
+
def flat_map(self, func:typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
696
|
+
...
|
|
697
|
+
|
|
698
|
+
def __getitem__(self, subscripts:typing.Any) -> Expression:
|
|
699
|
+
...
|
|
700
|
+
|
|
701
|
+
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:
|
|
702
|
+
...
|
|
703
|
+
|
|
704
|
+
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:
|
|
705
|
+
...
|
|
706
|
+
|
|
707
|
+
def __and__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
708
|
+
...
|
|
709
|
+
|
|
710
|
+
def __rand__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
711
|
+
...
|
|
712
|
+
|
|
713
|
+
def __or__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
714
|
+
...
|
|
715
|
+
|
|
716
|
+
def __ror__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
717
|
+
...
|
|
718
|
+
|
|
719
|
+
def __xor__(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
720
|
+
...
|
|
721
|
+
|
|
722
|
+
def __rxor__(self, lhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
723
|
+
...
|
|
724
|
+
|
|
725
|
+
def diff(self, rhs:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
726
|
+
...
|
|
727
|
+
|
|
728
|
+
def bnot(self) -> Expression:
|
|
729
|
+
...
|
|
730
|
+
|
|
731
|
+
def __eq__(self, other:typing.Any) -> Expression:
|
|
732
|
+
...
|
|
733
|
+
|
|
734
|
+
def __ne__(self, other:typing.Any) -> Expression:
|
|
735
|
+
...
|
|
736
|
+
|
|
737
|
+
def __lt__(self, other:typing.Any) -> Expression:
|
|
738
|
+
...
|
|
739
|
+
|
|
740
|
+
def __le__(self, other:typing.Any) -> Expression:
|
|
741
|
+
...
|
|
742
|
+
|
|
743
|
+
def __gt__(self, other:typing.Any) -> Expression:
|
|
744
|
+
...
|
|
745
|
+
|
|
746
|
+
def __ge__(self, other:typing.Any) -> Expression:
|
|
532
747
|
...
|
|
533
748
|
|
|
534
749
|
|
|
@@ -955,6 +1170,15 @@ class Problem:
|
|
|
955
1170
|
"""
|
|
956
1171
|
...
|
|
957
1172
|
|
|
1173
|
+
def type_of(self, name:builtins.str) -> Type:
|
|
1174
|
+
...
|
|
1175
|
+
|
|
1176
|
+
def infer(self, expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Type:
|
|
1177
|
+
...
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
class Type:
|
|
1181
|
+
...
|
|
958
1182
|
|
|
959
1183
|
class ConstraintSense(Enum):
|
|
960
1184
|
EQUAL = auto()
|
|
@@ -1005,9 +1229,15 @@ def atan(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeho
|
|
|
1005
1229
|
def atanh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1006
1230
|
...
|
|
1007
1231
|
|
|
1232
|
+
def band(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:
|
|
1233
|
+
...
|
|
1234
|
+
|
|
1008
1235
|
def bnot(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1009
1236
|
...
|
|
1010
1237
|
|
|
1238
|
+
def bor(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:
|
|
1239
|
+
...
|
|
1240
|
+
|
|
1011
1241
|
def ceil(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1012
1242
|
...
|
|
1013
1243
|
|
|
@@ -1017,9 +1247,18 @@ def cos(expr:Expression | builtins.int | builtins.float | DecisionVar | Placehol
|
|
|
1017
1247
|
def cosh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1018
1248
|
...
|
|
1019
1249
|
|
|
1250
|
+
def diff(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:
|
|
1251
|
+
...
|
|
1252
|
+
|
|
1020
1253
|
def exp(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1021
1254
|
...
|
|
1022
1255
|
|
|
1256
|
+
def filter(predicate:typing.Callable[[Expression], typing.Any], operand:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1257
|
+
...
|
|
1258
|
+
|
|
1259
|
+
def flat_map(func:typing.Callable[[Expression], typing.Any], arg:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1260
|
+
...
|
|
1261
|
+
|
|
1023
1262
|
def floor(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1024
1263
|
...
|
|
1025
1264
|
|
|
@@ -1032,7 +1271,7 @@ def log10(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeh
|
|
|
1032
1271
|
def log2(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1033
1272
|
...
|
|
1034
1273
|
|
|
1035
|
-
def map(arg:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]
|
|
1274
|
+
def map(func:typing.Callable[[Expression], typing.Any], arg:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1036
1275
|
...
|
|
1037
1276
|
|
|
1038
1277
|
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:
|
|
@@ -1041,6 +1280,9 @@ def max(lhs:Expression | builtins.int | builtins.float | DecisionVar | Placehold
|
|
|
1041
1280
|
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:
|
|
1042
1281
|
...
|
|
1043
1282
|
|
|
1283
|
+
def neg(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1284
|
+
...
|
|
1285
|
+
|
|
1044
1286
|
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:
|
|
1045
1287
|
...
|
|
1046
1288
|
|
|
@@ -1065,3 +1307,6 @@ def tan(expr:Expression | builtins.int | builtins.float | DecisionVar | Placehol
|
|
|
1065
1307
|
def tanh(expr:Expression | builtins.int | builtins.float | DecisionVar | Placeholder | list | tuple | typing.Callable[[Expression], typing.Any]) -> Expression:
|
|
1066
1308
|
...
|
|
1067
1309
|
|
|
1310
|
+
def xor(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:
|
|
1311
|
+
...
|
|
1312
|
+
|
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.0a4
|
|
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>=2.0.
|
|
23
|
+
Requires-Dist: ommx>=2.0.0,<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.0a4.dist-info/METADATA,sha256=272CUGe-pz2-ZG3naHt6idaVsDMDZ06IKcc_-9_6eCQ,2479
|
|
2
|
+
jijmodeling-2.0.0a4.dist-info/WHEEL,sha256=4FK1cQjWtxthB2GjQlwKValP2gjnkeIRpA2yeHH3EdI,104
|
|
3
|
+
jijmodeling-2.0.0a4.dist-info/licenses/LICENSE.txt,sha256=T5HdEbP5NWG8fZbvF9pofeteW3HrS30V3_LvtPUHFYM,3400
|
|
4
|
+
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
5
|
+
jijmodeling/__init__.pyi,sha256=2TpLy5Og4ioDI3Ng8kpAFla3cqys5BKx9G-KPjCX8LI,60714
|
|
6
|
+
jijmodeling/_jijmodeling.abi3.so,sha256=E49RMbSFFiNAlnG5rUEVvTpYQNF-Mc9p_iM768SMqk0,5878676
|
|
7
|
+
jijmodeling/_jijmodeling.pyi,sha256=9towCfPT8yTmJxvncDdME7ZCeFSSntPxAd_TT_spuXQ,162
|
|
8
|
+
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
jijmodeling-2.0.0a4.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|