jijmodeling 1.12.3__cp38-abi3-win_amd64.whl → 2.0.0b4__cp38-abi3-win_amd64.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.
jijmodeling/dataset.py DELETED
@@ -1,5 +0,0 @@
1
- from ._jijmodeling import dataset as _dataset # type: ignore
2
- import sys
3
-
4
- for component in _dataset.__all__:
5
- setattr(sys.modules[__name__], component, getattr(_dataset, component))
jijmodeling/dataset.pyi DELETED
@@ -1,106 +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
-
7
- class Miplib:
8
- r"""
9
- Automatically load problems from the MIPLIB dataset.
10
-
11
- Warning: the whole dataset is downloaded and cached in your filesystem when
12
- first used. It is quite large (~300MB download, ~600MB extracted), so the
13
- time it takes to download will likely be significant. We recommend first
14
- trying to use this class in a REPL to assure the dataset has been cached.
15
-
16
- The dataset is stored at `{data_dir}/jijmodeling/miplib`, where
17
- `{data_dir}` depends on your operating system:
18
-
19
- |Platform| {data_dir} location | Example/System Default |
20
- |:-------|:---------------------------------------|:-----------------------------------------|
21
- |Linux |`$XDG_DATA_HOME` or `$HOME/.local/share`|`/home/alice/.local/share` |
22
- |macOS |`$HOME/Library/Application Support` |`/Users/Alice/Library/Application Support`|
23
- |Windows |`%AppData% |`C:\Users\Alice\AppData\Roaming` |
24
-
25
-
26
- Examples
27
- ---------
28
- ```python
29
- >>> import jijmodeling.dataset
30
-
31
- Initialize the dataset. If not cached in your filesystem, this will take several minutes.
32
- >>> miplib = jijmodeling.dataset.Miplib()
33
-
34
- Show names of each available instance.
35
- >>> miplib.available_names # doctest: +ELLIPSIS
36
- [...]
37
-
38
- Get basic statistics of a specific instance.
39
- >>> miplib.instance_statistics["unitcal_7"]
40
- {'variable': 25755, 'constraint': 48939, 'binary': 2856, 'integer': 0, 'continuous': 22899, 'non_zero': 127595}
41
-
42
- Load "revised-submissions/miplib2010_pg/instances/pg.mps.gz" in benchmark.zip
43
- >>> problem, instance_data = miplib.load("pg")
44
-
45
- ```
46
- """
47
- available_names: builtins.list[builtins.str]
48
- instance_statistics: typing.Any
49
- def __new__(cls,verbose:builtins.bool=True): ...
50
- def load(self, name:str) -> tuple:
51
- r"""
52
- Load a problem from the MIPLIB dataset.
53
- """
54
- ...
55
-
56
-
57
- class Qplib:
58
- r"""
59
- Automatically load problems from the MIPLIB dataset.
60
-
61
- Warning: the whole dataset is downloaded and cached in your filesystem when
62
- first used. It is quite large (~700MB download, ~1.5GB extracted), so the
63
- time it takes to download will likely be significant. We recommend first
64
- trying to use this class in a REPL to assure the dataset has been cached.
65
-
66
- The dataset is stored at `{data_dir}/jijmodeling/qplib`, where
67
- `{data_dir}` depends on your operating system:
68
-
69
- |Platform| {data_dir} location | Example/System Default |
70
- |:-------|:---------------------------------------|:-----------------------------------------|
71
- |Linux |`$XDG_DATA_HOME` or `$HOME/.local/share`|`/home/alice/.local/share` |
72
- |macOS |`$HOME/Library/Application Support` |`/Users/Alice/Library/Application Support`|
73
- |Windows |`%AppData% |`C:\Users\Alice\AppData\Roaming` |
74
-
75
-
76
- Examples
77
- ---------
78
- ```python
79
- >>> import jijmodeling.dataset
80
-
81
- Initialize the dataset. If not cached in your filesystem, this will take several minutes.
82
- >>> qplib = jijmodeling.dataset.Qplib()
83
-
84
- Show the names of each available instance.
85
- >>> qplib.available_names # doctest: +ELLIPSIS
86
- [...]
87
-
88
- Get basic statistics of a specific instance.
89
- >>> qplib.instance_statistics["QPLIB_2205"]
90
- {'variables': 2884, 'constraints': 2874, 'binary': 958, 'integer': 0, 'continuous': 1926, 'non_zero': 13013}
91
-
92
- Load a problem instance from QPLIB.
93
- >>> problem, instance_data = qplib.load("QPLIB_1976")
94
-
95
- ```
96
- """
97
- available_names: builtins.list[builtins.str]
98
- instance_statistics: typing.Any
99
- def __new__(cls,verbose:builtins.bool=True): ...
100
- def load(self, name:str) -> tuple:
101
- r"""
102
- Load a problem from the QPLIB dataset.
103
- """
104
- ...
105
-
106
-
@@ -1,13 +0,0 @@
1
- # `jijmodeling.jijmodeling` is a module corresponding to the shared library created by PyO3,
2
- # and `jijmodeling.jijmodeling.experimental` is its submodule defined dynamically
3
- # while the initialization of the shared library.
4
- #
5
- # This file defines a new sub-module `jijmodeling.experimental`,
6
- # and exposes all the components in `jijmodeling.jijmodeling.experimental`
7
- #
8
-
9
- from ._jijmodeling import experimental as _experimental # type: ignore
10
- import sys
11
-
12
- for component in _experimental.__all__:
13
- setattr(sys.modules[__name__], component, getattr(_experimental, component))
@@ -1,302 +0,0 @@
1
- # This file is automatically generated by pyo3_stub_gen
2
- # ruff: noqa: E501, F401
3
-
4
- import builtins
5
- import numpy
6
- import numpy.typing
7
- import typing
8
- from enum import Enum, auto
9
-
10
- class EvaluationResult:
11
- objective: builtins.float
12
- constraints: builtins.dict[builtins.str, Violation]
13
- penalties: builtins.dict[builtins.str, Violation]
14
- def __new__(cls,objective:builtins.float=0.0, constraints:typing.Mapping[builtins.str, Violation]={}, penalties:typing.Mapping[builtins.str, Violation]={}): ...
15
- def __str__(self) -> builtins.str:
16
- ...
17
-
18
- def __repr__(self) -> builtins.str:
19
- ...
20
-
21
-
22
- class MeasuringTime:
23
- def __new__(cls,solving_time:typing.Optional[SolvingTime]=None, system_time:typing.Optional[SystemTime]=None): ...
24
- def __str__(self) -> builtins.str:
25
- ...
26
-
27
- def __repr__(self) -> builtins.str:
28
- ...
29
-
30
- def total(self) -> builtins.float:
31
- r"""
32
- Returns the total time measurred, across both `SolvingTime` and `SystemTime`.
33
- """
34
- ...
35
-
36
- def view_solving_time(self) -> SolvingTime:
37
- r"""
38
- Returns a readonly view of the internal `SolvingTime` field.
39
- """
40
- ...
41
-
42
- def view_system_time(self) -> SystemTime:
43
- r"""
44
- Returns a readonly view of the internal `SystemTime` field.
45
- """
46
- ...
47
-
48
-
49
- class Sample:
50
- r"""
51
- A Sample representing an individual solution found by running the mathematical optimization model.
52
-
53
- Variables in `var_values` are stored in instances of `SparseVarValues`. This uses a dictionary
54
- style, retaining only non-zero elements. For example, if the values for a two-dimensional
55
- decision variable are `x = [[0, 1, 2], [1, 0, 0]]`, they will be stored as
56
- `{(0,1): 1, (0,2): 2, (1,0): 1}`. To retrieve this, use `sample.var_values["x"].values`.
57
- If you want a dense array of decision variables, you can use the `to_dense()` method.
58
-
59
- `run_id` is a unique identifier of the run in which this sample was found.
60
- Note that this is not the same as a unique identifier of the Sample.
61
- """
62
- run_id: builtins.str
63
- num_occurrences: builtins.int
64
- run_info: builtins.dict[builtins.str, None | builtins.str | builtins.int | builtins.float | builtins.list | builtins.dict]
65
- var_values: builtins.dict[builtins.str, SparseVarValues]
66
- eval: EvaluationResult
67
- def __new__(cls,num_occurrences:builtins.int=1, run_id:typing.Optional[builtins.str]=None, run_info:typing.Optional[typing.Mapping[builtins.str, None | builtins.str | builtins.int | builtins.float | builtins.list | builtins.dict]]=None, var_values:typing.Optional[typing.Mapping[builtins.str, SparseVarValues]]=None, eval:typing.Optional[EvaluationResult]=None): ...
68
- @staticmethod
69
- def from_dense_arrays(dict:typing.Mapping[builtins.str, numpy.typing.NDArray[numpy.float64] | list], num_occurrences:builtins.int=1, var_types:typing.Optional[typing.Mapping[builtins.str, VarType]]=None, run_id:typing.Optional[builtins.str]=None, meta_info:typing.Optional[typing.Mapping[builtins.str, None | builtins.str | builtins.int | builtins.float | builtins.list | builtins.dict]]=None) -> Sample:
70
- ...
71
-
72
- def __str__(self) -> builtins.str:
73
- ...
74
-
75
- def __repr__(self) -> builtins.str:
76
- ...
77
-
78
- def __eq__(self, other:typing.Any) -> builtins.bool:
79
- ...
80
-
81
- def is_feasible(self, epsilon:builtins.float=1e-08) -> builtins.bool:
82
- ...
83
-
84
- def to_dense(self) -> builtins.dict[builtins.str, numpy.typing.NDArray[numpy.float64]]:
85
- ...
86
-
87
- @staticmethod
88
- def from_dict(dict:dict) -> Sample:
89
- r"""
90
- Converts a python dictionary into a SampleSet.
91
-
92
- This is intended to be used primarily with dictionaries generated by
93
- the `to_dict()` method. As such sparse value maps must be represented as
94
- association lists.
95
- """
96
- ...
97
-
98
- def to_dict(self) -> typing.Any:
99
- r"""
100
- Converts this SampleSet into a regular python dictionary.
101
-
102
- Note that this dictionary has a slightly different structure to better support JSON
103
- serialization of the output dictionary: sparse values are stored differently. Any mapping
104
- with tuples as keys is transformed into an association list of key-value pairs,
105
- that is, `[(k1, v1), (k2, v2), ...]`.
106
- """
107
- ...
108
-
109
-
110
- class SampleIter:
111
- def __iter__(self) -> SampleIter:
112
- ...
113
-
114
- def __next__(self) -> Sample:
115
- ...
116
-
117
-
118
- class SampleSet:
119
- data: builtins.list[Sample]
120
- set_id: builtins.str
121
- set_info: builtins.dict[builtins.str, None | builtins.str | builtins.int | builtins.float | builtins.list | builtins.dict]
122
- run_info: builtins.dict[builtins.str, None | builtins.str | builtins.int | builtins.float | builtins.list | builtins.dict]
123
- measuring_time: MeasuringTime
124
- run_times: builtins.dict[builtins.str, MeasuringTime]
125
- def __new__(cls,data:typing.Sequence[Sample]=[], *, set_id:typing.Optional[builtins.str]=None, set_info:typing.Optional[typing.Mapping[builtins.str, None | builtins.str | builtins.int | builtins.float | builtins.list | builtins.dict]]=None, run_info:typing.Optional[typing.Mapping[builtins.str, None | builtins.str | builtins.int | builtins.float | builtins.list | builtins.dict]]=None, measuring_time:MeasuringTime=..., run_times:typing.Mapping[builtins.str, MeasuringTime]={}): ...
126
- def __str__(self) -> builtins.str:
127
- ...
128
-
129
- def __repr__(self) -> builtins.str:
130
- ...
131
-
132
- def __eq__(self, other:typing.Any) -> builtins.bool:
133
- ...
134
-
135
- def __len__(self) -> builtins.int:
136
- ...
137
-
138
- def __getitem__(self, idx:builtins.int) -> Sample:
139
- ...
140
-
141
- def __iter__(self) -> SampleIter:
142
- ...
143
-
144
- @staticmethod
145
- def from_array(samples:typing.Sequence[typing.Mapping[builtins.str, numpy.typing.NDArray[numpy.float64] | list]]) -> SampleSet:
146
- r"""
147
- Builds a SampleSet from a list of dictionaries, where each entry is interpreted as a sample.
148
-
149
- Args
150
- -----
151
- - `samples`(`list[dict[str, list | numpy.ndarray]]`)
152
- """
153
- ...
154
-
155
- @staticmethod
156
- def concat(family:typing.Sequence[SampleSet]) -> SampleSet:
157
- r"""
158
- Creates a single SampleSet by concatenating a list of multiple SampleSets.
159
-
160
- Args
161
- -----
162
- - `family` (`list[SampleSet]`)
163
- """
164
- ...
165
-
166
- @staticmethod
167
- def from_dict(dict:dict) -> SampleSet:
168
- r"""
169
- Converts a python dictionary into a SampleSet.
170
-
171
- This is intended to be used primarily with dictionaries generated by
172
- the `to_dict()` method. As such sparse value maps must be represented as
173
- association lists.
174
- """
175
- ...
176
-
177
- def to_dict(self) -> typing.Any:
178
- r"""
179
- Converts this SampleSet into a regular python dictionary.
180
-
181
- Note that this dictionary has a slightly different structure to better support JSON
182
- serialization of the output dictionary: sparse values are stored differently. Any mapping
183
- with tuples as keys is transformed into an association list of key-value pairs,
184
- that is, `[(k1, v1), (k2, v2), ...]`.
185
- """
186
- ...
187
-
188
- def feasibles(self, epsilon:builtins.float=1e-08) -> SampleSet:
189
- r"""
190
- Returns a SampleSet containing only the feasible samples.
191
-
192
- Args
193
- -----
194
- - `epsilon` (`float`, optional): Tolerance threshold for constraint violations. Defaults to $1e-8$.
195
-
196
- Returns
197
- --------
198
- - `SampleSet`: a feasible subset of the current set.
199
- """
200
- ...
201
-
202
- def separate(self) -> builtins.dict[builtins.str, SampleSet]:
203
- r"""
204
- Splits this `SampleSet` based on the `run_id` of the samples.
205
-
206
- In other words, for each distinct `run_id` among the `Sample`s contained in this instance, a
207
- new `SampleSet` is created to store all `Sample`s with that ID.
208
-
209
- Returns
210
- -----
211
- - `sets` (dict[str, SampleSet]): The separated SampleSets. Keys are the run IDs.
212
- """
213
- ...
214
-
215
- def lowest(self, epsilon:builtins.float=1e-08) -> builtins.list[Sample]:
216
- r"""
217
- Returns a list of the feasible samples which have the lowest objective value.
218
- If there are no feasible solutions, this returns an empty list.
219
-
220
- Args
221
- -----
222
- - `epsilon` (`float`, optional): Tolerance threshold. Objective values within this tolerance are included, even if not exactly the minimum value. Defaults to $1e-8$.
223
-
224
- Returns
225
- -----
226
- `lowest_samples`: A list of Sample objects with the lowest ojective value in this SampleSet.
227
- """
228
- ...
229
-
230
-
231
- class SolvingTime:
232
- compiling_time: builtins.float
233
- transpiling_time: builtins.float
234
- preprocess_time: builtins.float
235
- solving_time: builtins.float
236
- decoding_time: builtins.float
237
- postprocess_time: builtins.float
238
- def __new__(cls,compiling_time:builtins.float=0.0, transpiling_time:builtins.float=0.0, preprocess_time:builtins.float=0.0, solving_time:builtins.float=0.0, decoding_time:builtins.float=0.0, postprocess_time:builtins.float=0.0): ...
239
- def __str__(self) -> builtins.str:
240
- ...
241
-
242
- def __repr__(self) -> builtins.str:
243
- ...
244
-
245
- def total(self) -> builtins.float:
246
- ...
247
-
248
-
249
- class SparseVarValues:
250
- name: builtins.str
251
- values: builtins.dict[typing.Tuple[int, ...], builtins.float]
252
- var_type: VarType
253
- shape: tuple
254
- def __new__(cls,name:builtins.str, values:typing.Mapping[typing.Tuple[int, ...], builtins.float], shape:typing.Sequence[builtins.int], var_type:VarType=...): ...
255
- def __str__(self) -> builtins.str:
256
- ...
257
-
258
- def __repr__(self) -> builtins.str:
259
- ...
260
-
261
- @staticmethod
262
- def from_array(name:builtins.str, array:numpy.typing.NDArray[numpy.float64], var_type:VarType=...) -> SparseVarValues:
263
- ...
264
-
265
- def to_dense(self) -> numpy.typing.NDArray[numpy.float64]:
266
- ...
267
-
268
-
269
- class SystemTime:
270
- posting_time: typing.Optional[builtins.float]
271
- request_queuing_time: typing.Optional[builtins.float]
272
- fetching_problem_time: typing.Optional[builtins.float]
273
- fetching_result_time: typing.Optional[builtins.float]
274
- deserialize_time: typing.Optional[builtins.float]
275
- def __new__(cls,posting_time:typing.Optional[builtins.float]=None, request_queuing_time:typing.Optional[builtins.float]=None, fetching_problem_time:typing.Optional[builtins.float]=None, fetching_result_time:typing.Optional[builtins.float]=None, deserialize_time:typing.Optional[builtins.float]=None): ...
276
- def __str__(self) -> builtins.str:
277
- ...
278
-
279
- def __repr__(self) -> builtins.str:
280
- ...
281
-
282
-
283
- class Violation:
284
- name: builtins.str
285
- total_violation: builtins.float
286
- expr_values: builtins.dict[typing.Tuple[int, ...], builtins.float]
287
- def __new__(cls,name:builtins.str, total_violation:builtins.float, expr_values:typing.Mapping[typing.Tuple[int, ...], builtins.float]): ...
288
- def __str__(self) -> builtins.str:
289
- ...
290
-
291
- def __repr__(self) -> builtins.str:
292
- ...
293
-
294
-
295
- class VarType(Enum):
296
- CONTINUOUS = auto()
297
- INTEGER = auto()
298
- BINARY = auto()
299
-
300
- def from_old_sampleset(sampleset:typing.Any) -> SampleSet:
301
- ...
302
-
@@ -1,14 +0,0 @@
1
- # `jijmodeling.jijmodeling` is a module corresponding to the shared library
2
- # created by PyO3,
3
- # and `jijmodeling.jijmodeling.range` is its submodule defined dynamically
4
- # while the initialization of the shared library.
5
- #
6
- # This file defines a new sub-module `jijmodeling.range`,
7
- # and exposes all the components in `jijmodeling.jijmodeling.range`
8
- #
9
-
10
- from .._jijmodeling import range as _range # type: ignore
11
- import sys
12
-
13
- for component in _range.__all__:
14
- setattr(sys.modules[__name__], component, getattr(_range, component))
@@ -1,56 +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
- from . import size
7
- from . import value
8
-
9
- def at_least(bd:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
10
- r"""
11
- `at_least(lb)` returns a closed interval $[\mathtt{lb}, \infty)$; that is, $x \in \mathtt{at\_least(lb)} \iff x \geq \mathtt{lb}$.
12
- """
13
- ...
14
-
15
- def at_most(bd:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
16
- r"""
17
- `at_most(ub)` returns a closed interval $(-\infty, \mathtt{ub}]$; that is, $x \in \mathtt{at\_most(ub)} \iff x \leq \mathtt{ub}$.
18
- """
19
- ...
20
-
21
- def closed(lb:builtins.int | builtins.float, ub:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
22
- r"""
23
- `closed(lb, ub)` returns a closed interval $[\mathtt{lb}, \mathtt{ub}]$; that is, $x \in \mathtt{closed(lb, ub)} \iff \mathtt{lb} \leq x \leq \mathtt{ub}$
24
- """
25
- ...
26
-
27
- def closed_open(lb:builtins.int | builtins.float, ub:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
28
- r"""
29
- `closed_open(lb, ub)` returns a upper half-open interval $[\mathtt{lb}, \mathtt{ub})$; that is, $x \in \mathtt{closed\_open(lb, ub)} \iff \mathtt{lb} \leq x < \mathtt{ub}$. For size range, it is same as the python's standard `range(lb, ub)` function.
30
- """
31
- ...
32
-
33
- def greater_than(bd:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
34
- r"""
35
- `greater_than(lb)` returns an open interval $(\mathtt{lb}, \infty)$; that is, $x \in \mathtt{greater\_than(lb)} \iff x > \mathtt{lb}$.
36
- """
37
- ...
38
-
39
- def less_than(bd:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
40
- r"""
41
- `less_than(ub)` returns an open interval $(-\infty, \mathtt{ub})$; that is, $x \in \mathtt{less\_than(ub)} \iff x < \mathtt{ub}$. For size range, it is same as the python's standard `range(ub)` function.
42
- """
43
- ...
44
-
45
- def open(lb:builtins.int | builtins.float, ub:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
46
- r"""
47
- `open(lb, ub)` returns an open interval $(\mathtt{lb}, \mathtt{ub})$; that is, $x \in \mathtt{open(lb, ub)} \iff \mathtt{lb} < x < \mathtt{ub}$
48
- """
49
- ...
50
-
51
- def open_closed(lb:builtins.int | builtins.float, ub:builtins.int | builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']] | builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
52
- r"""
53
- `open_closed(lb, ub)` returns a lower half-open interval $(\mathtt{lb}, \mathtt{ub}]$; that is, $x \in \mathtt{open\_closed(lb, ub)} \iff \mathtt{lb} < x \leq \mathtt{ub}$.
54
- """
55
- ...
56
-
jijmodeling/range/size.py DELETED
@@ -1,14 +0,0 @@
1
- # `jijmodeling.jijmodeling` is a module corresponding to the shared library
2
- # created by PyO3,
3
- # and `jijmodeling.jijmodeling.range` is its submodule defined dynamically
4
- # while the initialization of the shared library.
5
- #
6
- # This file defines a new sub-module `jijmodeling.range`,
7
- # and exposes all the components in `jijmodeling.jijmodeling.range`
8
- #
9
-
10
- from . import size as _size # type: ignore
11
- import sys
12
-
13
- for component in _size.__all__: # type: ignore
14
- setattr(sys.modules[__name__], component, getattr(_size, component))
@@ -1,54 +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
-
7
- def at_least(arg:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
8
- r"""
9
- `at_least(lb)` returns a closed interval $[\mathtt{lb}, \infty)$; that is, $x \in \mathtt{at\_least(lb)} \iff x \geq \mathtt{lb}$.
10
- """
11
- ...
12
-
13
- def at_most(bd:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
14
- r"""
15
- `at_most(ub)` returns a closed interval $(-\infty, \mathtt{ub}]$; that is, $x \in \mathtt{at\_most(ub)} \iff x \leq \mathtt{ub}$.
16
- """
17
- ...
18
-
19
- def closed(lb:builtins.int, ub:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
20
- r"""
21
- `closed(lb, ub)` returns a closed interval $[\mathtt{lb}, \mathtt{ub}]$; that is, $x \in \mathtt{closed(lb, ub)} \iff \mathtt{lb} \leq x \leq \mathtt{ub}$
22
- """
23
- ...
24
-
25
- def closed_open(lb:builtins.int, ub:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
26
- r"""
27
- `closed_open(lb, ub)` returns a upper half-open interval $[\mathtt{lb}, \mathtt{ub})$; that is, $x \in \mathtt{closed\_open(lb, ub)} \iff \mathtt{lb} \leq x < \mathtt{ub}$. For size range, it is same as the python's standard `range(lb, ub)` function.
28
- """
29
- ...
30
-
31
- def greater_than(arg:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
32
- r"""
33
- `greater_than(lb)` returns an open interval $(\mathtt{lb}, \infty)$; that is, $x \in \mathtt{greater\_than(lb)} \iff x > \mathtt{lb}$.
34
- """
35
- ...
36
-
37
- def less_than(bd:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
38
- r"""
39
- `less_than(ub)` returns an open interval $(-\infty, \mathtt{ub})$; that is, $x \in \mathtt{less\_than(ub)} \iff x < \mathtt{ub}$. For size range, it is same as the python's standard `range(ub)` function.
40
- """
41
- ...
42
-
43
- def open(lb:builtins.int, ub:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
44
- r"""
45
- `open(lb, ub)` returns an open interval $(\mathtt{lb}, \mathtt{ub})$; that is, $x \in \mathtt{open(lb, ub)} \iff \mathtt{lb} < x < \mathtt{ub}$
46
- """
47
- ...
48
-
49
- def open_closed(lb:builtins.int, ub:builtins.int) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.int] | typing.Literal['Unbounded']]:
50
- r"""
51
- `open_closed(lb, ub)` returns a lower half-open interval $(\mathtt{lb}, \mathtt{ub}]$; that is, $x \in \mathtt{open\_closed(lb, ub)} \iff \mathtt{lb} < x \leq \mathtt{ub}$.
52
- """
53
- ...
54
-
@@ -1,14 +0,0 @@
1
- # `jijmodeling.jijmodeling` is a module corresponding to the shared library
2
- # created by PyO3,
3
- # and `jijmodeling.jijmodeling.range` is its submodule defined dynamically
4
- # while the initialization of the shared library.
5
- #
6
- # This file defines a new sub-module `jijmodeling.range`,
7
- # and exposes all the components in `jijmodeling.jijmodeling.range`
8
- #
9
-
10
- from . import value as _value # type: ignore
11
- import sys
12
-
13
- for component in _value.__all__: # type: ignore
14
- setattr(sys.modules[__name__], component, getattr(_value, component))
@@ -1,54 +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
-
7
- def at_least(arg:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
8
- r"""
9
- `at_least(lb)` returns a closed interval $[\mathtt{lb}, \infty)$; that is, $x \in \mathtt{at\_least(lb)} \iff x \geq \mathtt{lb}$.
10
- """
11
- ...
12
-
13
- def at_most(bd:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
14
- r"""
15
- `at_most(ub)` returns a closed interval $(-\infty, \mathtt{ub}]$; that is, $x \in \mathtt{at\_most(ub)} \iff x \leq \mathtt{ub}$.
16
- """
17
- ...
18
-
19
- def closed(lb:builtins.float, ub:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
20
- r"""
21
- `closed(lb, ub)` returns a closed interval $[\mathtt{lb}, \mathtt{ub}]$; that is, $x \in \mathtt{closed(lb, ub)} \iff \mathtt{lb} \leq x \leq \mathtt{ub}$
22
- """
23
- ...
24
-
25
- def closed_open(lb:builtins.float, ub:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
26
- r"""
27
- `closed_open(lb, ub)` returns a upper half-open interval $[\mathtt{lb}, \mathtt{ub})$; that is, $x \in \mathtt{closed\_open(lb, ub)} \iff \mathtt{lb} \leq x < \mathtt{ub}$. For size range, it is same as the python's standard `range(lb, ub)` function.
28
- """
29
- ...
30
-
31
- def greater_than(arg:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
32
- r"""
33
- `greater_than(lb)` returns an open interval $(\mathtt{lb}, \infty)$; that is, $x \in \mathtt{greater\_than(lb)} \iff x > \mathtt{lb}$.
34
- """
35
- ...
36
-
37
- def less_than(bd:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
38
- r"""
39
- `less_than(ub)` returns an open interval $(-\infty, \mathtt{ub})$; that is, $x \in \mathtt{less\_than(ub)} \iff x < \mathtt{ub}$. For size range, it is same as the python's standard `range(ub)` function.
40
- """
41
- ...
42
-
43
- def open(lb:builtins.float, ub:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
44
- r"""
45
- `open(lb, ub)` returns an open interval $(\mathtt{lb}, \mathtt{ub})$; that is, $x \in \mathtt{open(lb, ub)} \iff \mathtt{lb} < x < \mathtt{ub}$
46
- """
47
- ...
48
-
49
- def open_closed(lb:builtins.float, ub:builtins.float) -> builtins.dict[builtins.str, builtins.dict[builtins.str, builtins.float] | typing.Literal['Unbounded']]:
50
- r"""
51
- `open_closed(lb, ub)` returns a lower half-open interval $(\mathtt{lb}, \mathtt{ub}]$; that is, $x \in \mathtt{open\_closed(lb, ub)} \iff \mathtt{lb} < x \leq \mathtt{ub}$.
52
- """
53
- ...
54
-
@@ -1,18 +0,0 @@
1
- jijmodeling-1.12.3.dist-info/METADATA,sha256=05o9V0utDNpgl8ZlxNBsXj5MIzTzXRd-fbvv7kzjqF8,2494
2
- jijmodeling-1.12.3.dist-info/WHEEL,sha256=hKPP3BCTWtTwj6SFaSI--T5aOGqh_llYfbZ_BsqivwA,94
3
- jijmodeling-1.12.3.dist-info/licenses/LICENSE.txt,sha256=llUjgcEN5bUeFlj1RqxJxDMxUnlYvowLsldCF6Lwq8c,3445
4
- jijmodeling/dataset.py,sha256=L8yUjKp81m6_CoSfdPJMoJmlCQ_gf7n8okURTKRMXaw,190
5
- jijmodeling/dataset.pyi,sha256=lUu23EjUbmU6AKiQkWWkN_c0Yw_r_C-5FrD1ZzQZEm4,4189
6
- jijmodeling/experimental.py,sha256=WWmxJzkyx_EYac1zmxflmFND191-xbVVXEdqot2VrM4,588
7
- jijmodeling/experimental.pyi,sha256=Rrir0zWKwY-IN75Jm3Rx2aRYTOEkdM4wpzns2AewvYY,11577
8
- jijmodeling/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- jijmodeling/range/size.py,sha256=F-cc3hLTAxUQo4umo6qFM5crGYdcWIEFLvWO963TyFY,542
10
- jijmodeling/range/size.pyi,sha256=UBRz76PS9Wqo2TL0yMDx26XIa8AnfPt8dNWmyKmpYbg,2884
11
- jijmodeling/range/value.py,sha256=VCtUjzL4vfOo-yqSEmfLD1JZ98d73NYPuzohWDu5R2Q,546
12
- jijmodeling/range/value.pyi,sha256=TKdEWQz9DHttbW2WXVKeEYPzyZe9InF7ZQuLQrGsosc,2924
13
- jijmodeling/range/__init__.py,sha256=Dh-hTX2LMtTaM-Aps6Z4KfV28EoLI3vfkiRr4lQu13s,543
14
- jijmodeling/range/__init__.pyi,sha256=aZCIz2ZjSBDDo3rhhluu_mzpuIIJYbclqTEt5JYu-Vc,3967
15
- jijmodeling/__init__.py,sha256=jJ6o5wp3MPAP1uR3dqSvjaXG57t1IwcS8ojqPpZL-gU,45
16
- jijmodeling/__init__.pyi,sha256=QnIq71jPVWbhRAqBYNZ4a5xIXoarSODDst2Rc7RBV7A,160154
17
- jijmodeling/_jijmodeling.pyd,sha256=hHXhaVNdlEnZFuopVnzXkDF5AdKQLNDwFCivZtqL7g8,10842624
18
- jijmodeling-1.12.3.dist-info/RECORD,,