jijmodeling 1.13.4__cp38-abi3-macosx_10_16_x86_64.whl → 1.14.0__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 +0 -41
- jijmodeling/_jijmodeling.abi3.so +0 -0
- {jijmodeling-1.13.4.dist-info → jijmodeling-1.14.0.dist-info}/METADATA +1 -1
- {jijmodeling-1.13.4.dist-info → jijmodeling-1.14.0.dist-info}/RECORD +6 -8
- {jijmodeling-1.13.4.dist-info → jijmodeling-1.14.0.dist-info}/WHEEL +1 -1
- jijmodeling/dataset.py +0 -5
- jijmodeling/dataset.pyi +0 -137
- {jijmodeling-1.13.4.dist-info → jijmodeling-1.14.0.dist-info}/licenses/LICENSE.txt +0 -0
jijmodeling/__init__.pyi
CHANGED
|
@@ -5,7 +5,6 @@ import builtins
|
|
|
5
5
|
import numpy
|
|
6
6
|
import numpy.typing
|
|
7
7
|
import typing
|
|
8
|
-
from . import dataset
|
|
9
8
|
from . import experimental
|
|
10
9
|
from . import range
|
|
11
10
|
from enum import Enum
|
|
@@ -3612,46 +3611,6 @@ def ln(operand:typing.Any) -> LnOp:
|
|
|
3612
3611
|
`ModelingError`: Raises if the input contains a decision variable.
|
|
3613
3612
|
"""
|
|
3614
3613
|
|
|
3615
|
-
def load_mps(path:builtins.str) -> tuple:
|
|
3616
|
-
r"""
|
|
3617
|
-
Load a MPS file as a set of `Problem` and dictionary for instance data
|
|
3618
|
-
"""
|
|
3619
|
-
|
|
3620
|
-
def load_qplib(path:builtins.str, load_extra_data:builtins.bool=False) -> tuple:
|
|
3621
|
-
r"""
|
|
3622
|
-
Load a file in QPLIB format to generate a `Problem` object and a
|
|
3623
|
-
corresponding instance data dictionary.
|
|
3624
|
-
|
|
3625
|
-
Note regarding the final sections of qplib files:
|
|
3626
|
-
- starting points of x, y (lagrange multipliers), z (dual variables)
|
|
3627
|
-
- variable names and constraint names
|
|
3628
|
-
|
|
3629
|
-
These are not directly supported by jijmodeling and not linked to the
|
|
3630
|
-
Problem object, and are thus not part of the instance data. With the
|
|
3631
|
-
optional argument `load_extra_data=True`, these final sections of the qplib
|
|
3632
|
-
file are parsed and returned alongisde the problem.
|
|
3633
|
-
|
|
3634
|
-
The `extra_data` dictionary is provided effectively raw, just as it is in
|
|
3635
|
-
the file, with entries being dictionaries keyed by variable/constraint
|
|
3636
|
-
indices. These are provided as-is, and do not match the rest the indices
|
|
3637
|
-
seen in `instance_data`.
|
|
3638
|
-
|
|
3639
|
-
Args
|
|
3640
|
-
-----
|
|
3641
|
-
- `load_extra_data`(`bool`)
|
|
3642
|
-
|
|
3643
|
-
Returns
|
|
3644
|
-
----
|
|
3645
|
-
- (`problem`, `instance_data)`: a `Problem` and a dictionary generated from
|
|
3646
|
-
the parsed file.
|
|
3647
|
-
|
|
3648
|
-
or
|
|
3649
|
-
|
|
3650
|
-
- (`problem`, `instance_data`, `extra_data`): if `load_extra_data`; the
|
|
3651
|
-
additional dictionary holds information on starting points, variable names
|
|
3652
|
-
and constraint names, as defined in the file.
|
|
3653
|
-
"""
|
|
3654
|
-
|
|
3655
3614
|
def log10(operand:typing.Any) -> Log10Op:
|
|
3656
3615
|
r"""
|
|
3657
3616
|
Create the `Log10Op` object from the expression.
|
jijmodeling/_jijmodeling.abi3.so
CHANGED
|
Binary file
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
jijmodeling-1.
|
|
2
|
-
jijmodeling-1.
|
|
3
|
-
jijmodeling-1.
|
|
1
|
+
jijmodeling-1.14.0.dist-info/METADATA,sha256=u0XcEJU3Em-mOmxcCz3tS53A6b1-frK9g4XFQ138T6Y,2511
|
|
2
|
+
jijmodeling-1.14.0.dist-info/WHEEL,sha256=CgGqcZFqKZbtMU541PLxCSO4bQDqiNtqsMSYO-VmMvY,104
|
|
3
|
+
jijmodeling-1.14.0.dist-info/licenses/LICENSE.txt,sha256=UDoDtHuEfRayMGh1HKVD3OR4lXFmXC4ifF2hQvwwj3w,3449
|
|
4
4
|
jijmodeling/__init__.py,sha256=43DV_WzDxS0n6FseNyfJZ6oQucO31T4qqbz3bx9JMtE,44
|
|
5
|
-
jijmodeling/__init__.pyi,sha256=
|
|
6
|
-
jijmodeling/_jijmodeling.abi3.so,sha256=
|
|
7
|
-
jijmodeling/dataset.py,sha256=S4piVIiUGJMi8MlG3kFV-8JIkzvnktAS0IdkbJ655hw,185
|
|
8
|
-
jijmodeling/dataset.pyi,sha256=Ktyf4tYSS7hb5UdysFYs_Qv32tKbVNkCYVOL-ODtemY,6227
|
|
5
|
+
jijmodeling/__init__.pyi,sha256=1C45mMr6TRskPV-Zxi7yVFULu-a_58NgMNyyBY7TzH8,154352
|
|
6
|
+
jijmodeling/_jijmodeling.abi3.so,sha256=_B5TUPLNxkwaRXJazSIyDp0bg9T9tMXaLTRDSXCrGSU,6582808
|
|
9
7
|
jijmodeling/experimental.py,sha256=Of-tUY3kfpFHpjGbIcclbMenCP2BMW07me895YH7tG8,575
|
|
10
8
|
jijmodeling/experimental.pyi,sha256=2p7SGwvBZrWKQe6N80o_ie0yKNyfaYwh4pqSKeOm2PA,11990
|
|
11
9
|
jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -15,4 +13,4 @@ jijmodeling/range/size.py,sha256=gBwFfLuO4GprRfjVWyCplEvFJri8cxPRtuEd5uXzo7Q,528
|
|
|
15
13
|
jijmodeling/range/size.pyi,sha256=yoKQNzsJG-TP1I5U4BXtl_nreD0yzH8_Qv6Sqrsatfo,2766
|
|
16
14
|
jijmodeling/range/value.py,sha256=aRwQGzpH5MZgpgKvd8gxMkMRyloq0S5zv87Kv3PHSd4,532
|
|
17
15
|
jijmodeling/range/value.pyi,sha256=n69FBubyMklpUEiFJEfFwvx8cbBxv-3x6YfO2oQ3c4I,2806
|
|
18
|
-
jijmodeling-1.
|
|
16
|
+
jijmodeling-1.14.0.dist-info/RECORD,,
|
jijmodeling/dataset.py
DELETED
jijmodeling/dataset.pyi
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
# This file is automatically generated by pyo3_stub_gen
|
|
2
|
-
# ruff: noqa: E501, F401
|
|
3
|
-
|
|
4
|
-
import builtins
|
|
5
|
-
import typing
|
|
6
|
-
import typing_extensions
|
|
7
|
-
|
|
8
|
-
class Miplib:
|
|
9
|
-
r"""
|
|
10
|
-
Automatically load problems from the MIPLIB dataset.
|
|
11
|
-
|
|
12
|
-
Warning: the whole dataset is downloaded and cached in your filesystem when
|
|
13
|
-
first used. It is quite large (~300MB download, ~600MB extracted), so the
|
|
14
|
-
time it takes to download will likely be significant. We recommend first
|
|
15
|
-
trying to use this class in a REPL to assure the dataset has been cached.
|
|
16
|
-
|
|
17
|
-
The dataset is stored at `{data_dir}/jijmodeling/miplib`, where
|
|
18
|
-
`{data_dir}` depends on your operating system:
|
|
19
|
-
|
|
20
|
-
|Platform| {data_dir} location | Example/System Default |
|
|
21
|
-
|:-------|:---------------------------------------|:-----------------------------------------|
|
|
22
|
-
|Linux |`$XDG_DATA_HOME` or `$HOME/.local/share`|`/home/alice/.local/share` |
|
|
23
|
-
|macOS |`$HOME/Library/Application Support` |`/Users/Alice/Library/Application Support`|
|
|
24
|
-
|Windows |`%AppData% |`C:\Users\Alice\AppData\Roaming` |
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Examples
|
|
28
|
-
---------
|
|
29
|
-
```python
|
|
30
|
-
>>> import jijmodeling.dataset
|
|
31
|
-
|
|
32
|
-
Initialize the dataset. If not cached in your filesystem, this will take several minutes.
|
|
33
|
-
>>> miplib = jijmodeling.dataset.Miplib()
|
|
34
|
-
|
|
35
|
-
Show names of each available instance.
|
|
36
|
-
>>> miplib.available_names # doctest: +ELLIPSIS
|
|
37
|
-
[...]
|
|
38
|
-
|
|
39
|
-
Get basic statistics of a specific instance.
|
|
40
|
-
>>> miplib.instance_statistics["unitcal_7"]
|
|
41
|
-
{'variable': 25755, 'constraint': 48939, 'binary': 2856, 'integer': 0, 'continuous': 22899, 'non_zero': 127595}
|
|
42
|
-
|
|
43
|
-
Load "revised-submissions/miplib2010_pg/instances/pg.mps.gz" in benchmark.zip
|
|
44
|
-
>>> problem, instance_data = miplib.load("pg")
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
"""
|
|
48
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
49
|
-
@property
|
|
50
|
-
def available_names(self) -> builtins.list[builtins.str]:
|
|
51
|
-
r"""
|
|
52
|
-
List of available problem names.
|
|
53
|
-
"""
|
|
54
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
55
|
-
@property
|
|
56
|
-
def instance_statistics(self) -> typing.Any:
|
|
57
|
-
r"""
|
|
58
|
-
Dict of name to problem size, i.e. number of binary/integer/real variable and number of equality/inequality constraints
|
|
59
|
-
"""
|
|
60
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
61
|
-
def __new__(cls, verbose:builtins.bool=True) -> Miplib:
|
|
62
|
-
r"""
|
|
63
|
-
Setup MIPLIB dataset.
|
|
64
|
-
|
|
65
|
-
This downloads the MIPLIB dataset if not cached in your local filesystem.
|
|
66
|
-
"""
|
|
67
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
68
|
-
def load(self, name:str) -> tuple:
|
|
69
|
-
r"""
|
|
70
|
-
Load a problem from the MIPLIB dataset.
|
|
71
|
-
"""
|
|
72
|
-
|
|
73
|
-
class Qplib:
|
|
74
|
-
r"""
|
|
75
|
-
Automatically load problems from the MIPLIB dataset.
|
|
76
|
-
|
|
77
|
-
Warning: the whole dataset is downloaded and cached in your filesystem when
|
|
78
|
-
first used. It is quite large (~700MB download, ~1.5GB extracted), so the
|
|
79
|
-
time it takes to download will likely be significant. We recommend first
|
|
80
|
-
trying to use this class in a REPL to assure the dataset has been cached.
|
|
81
|
-
|
|
82
|
-
The dataset is stored at `{data_dir}/jijmodeling/qplib`, where
|
|
83
|
-
`{data_dir}` depends on your operating system:
|
|
84
|
-
|
|
85
|
-
|Platform| {data_dir} location | Example/System Default |
|
|
86
|
-
|:-------|:---------------------------------------|:-----------------------------------------|
|
|
87
|
-
|Linux |`$XDG_DATA_HOME` or `$HOME/.local/share`|`/home/alice/.local/share` |
|
|
88
|
-
|macOS |`$HOME/Library/Application Support` |`/Users/Alice/Library/Application Support`|
|
|
89
|
-
|Windows |`%AppData% |`C:\Users\Alice\AppData\Roaming` |
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Examples
|
|
93
|
-
---------
|
|
94
|
-
```python
|
|
95
|
-
>>> import jijmodeling.dataset
|
|
96
|
-
|
|
97
|
-
Initialize the dataset. If not cached in your filesystem, this will take several minutes.
|
|
98
|
-
>>> qplib = jijmodeling.dataset.Qplib()
|
|
99
|
-
|
|
100
|
-
Show the names of each available instance.
|
|
101
|
-
>>> qplib.available_names # doctest: +ELLIPSIS
|
|
102
|
-
[...]
|
|
103
|
-
|
|
104
|
-
Get basic statistics of a specific instance.
|
|
105
|
-
>>> qplib.instance_statistics["QPLIB_2205"]
|
|
106
|
-
{'variables': 2884, 'constraints': 2874, 'binary': 958, 'integer': 0, 'continuous': 1926, 'non_zero': 13013}
|
|
107
|
-
|
|
108
|
-
Load a problem instance from QPLIB.
|
|
109
|
-
>>> problem, instance_data = qplib.load("QPLIB_1976")
|
|
110
|
-
|
|
111
|
-
```
|
|
112
|
-
"""
|
|
113
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
114
|
-
@property
|
|
115
|
-
def available_names(self) -> builtins.list[builtins.str]:
|
|
116
|
-
r"""
|
|
117
|
-
List of available problem names.
|
|
118
|
-
"""
|
|
119
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
120
|
-
@property
|
|
121
|
-
def instance_statistics(self) -> typing.Any:
|
|
122
|
-
r"""
|
|
123
|
-
Dict of name to problem size, i.e. number of binary/integer/real variable and number of equality/inequality constraints
|
|
124
|
-
"""
|
|
125
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
126
|
-
def __new__(cls, verbose:builtins.bool=True) -> Qplib:
|
|
127
|
-
r"""
|
|
128
|
-
Setup QPLIB dataset.
|
|
129
|
-
|
|
130
|
-
This downloads the QPLIB dataset if not cached in your local filesystem.
|
|
131
|
-
"""
|
|
132
|
-
@typing_extensions.deprecated("Dataset loading feature is deprecated and will be removed in JijModeling 2. Please use OMMX's corresponding feature instead.")
|
|
133
|
-
def load(self, name:str) -> tuple:
|
|
134
|
-
r"""
|
|
135
|
-
Load a problem from the QPLIB dataset.
|
|
136
|
-
"""
|
|
137
|
-
|
|
File without changes
|