mdpsolver 0.10.0__cp313-cp313-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.
- mdpsolver/__init__.py +12 -0
- mdpsolver/model.py +211 -0
- mdpsolver/solvermodule.cp313-win_amd64.pyd +0 -0
- mdpsolver-0.10.0.dist-info/DELVEWHEEL +2 -0
- mdpsolver-0.10.0.dist-info/METADATA +151 -0
- mdpsolver-0.10.0.dist-info/RECORD +10 -0
- mdpsolver-0.10.0.dist-info/WHEEL +5 -0
- mdpsolver-0.10.0.dist-info/licenses/LICENSE +21 -0
- mdpsolver.libs/libomp140.x86_64-4a20c1e5c115c29771a12324513eb109.dll +0 -0
- mdpsolver.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll +0 -0
mdpsolver/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""""" # start delvewheel patch
|
|
2
|
+
def _delvewheel_patch_1_13_0():
|
|
3
|
+
import os
|
|
4
|
+
if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'mdpsolver.libs'))):
|
|
5
|
+
os.add_dll_directory(libs_dir)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
_delvewheel_patch_1_13_0()
|
|
9
|
+
del _delvewheel_patch_1_13_0
|
|
10
|
+
# end delvewheel patch
|
|
11
|
+
|
|
12
|
+
from mdpsolver.model import model
|
mdpsolver/model.py
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MDPSolver
|
|
3
|
+
|
|
4
|
+
This file defines a `model` class that wraps around the `solvermodule` to create
|
|
5
|
+
and solve Markov Decision Processes (MDPs). It provides methods to configure the model,
|
|
6
|
+
solve it, and extract the resulting policy and value vectors.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import sys
|
|
10
|
+
from mdpsolver import solvermodule
|
|
11
|
+
|
|
12
|
+
class model:
|
|
13
|
+
"""
|
|
14
|
+
Creates an MDPSolver object.
|
|
15
|
+
|
|
16
|
+
This class provides methods to initialize, solve, and return results
|
|
17
|
+
from an MDP model.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
def __init__(self):
|
|
21
|
+
"""Initialize the model by creating a solver module object."""
|
|
22
|
+
self.initialize()
|
|
23
|
+
|
|
24
|
+
def initialize(self):
|
|
25
|
+
"""Create and initialize the solver module object."""
|
|
26
|
+
self.mdl = solvermodule.Model()
|
|
27
|
+
|
|
28
|
+
def solve(
|
|
29
|
+
self,
|
|
30
|
+
algorithm: str = "mpi",
|
|
31
|
+
tolerance: float = 1e-3,
|
|
32
|
+
update: str = "standard",
|
|
33
|
+
criterion: str = "discounted",
|
|
34
|
+
parIterLim: int = 100,
|
|
35
|
+
SORrelaxation: float = 1.0,
|
|
36
|
+
initPolicy: list = list(),
|
|
37
|
+
initValueVector: list = list(),
|
|
38
|
+
verbose: bool = False,
|
|
39
|
+
postProcessing: bool = True,
|
|
40
|
+
makeFinalCheck: bool = True,
|
|
41
|
+
parallel: bool = True,
|
|
42
|
+
) -> None:
|
|
43
|
+
"""
|
|
44
|
+
Derive an epsilon-optimal policy for the selected MDP model.
|
|
45
|
+
|
|
46
|
+
Args:
|
|
47
|
+
algorithm (str): Algorithm to use.
|
|
48
|
+
tolerance (float): Convergence threshold for the algorithm.
|
|
49
|
+
update (str): The value-update method.
|
|
50
|
+
criterion (str): The optimality criterion.
|
|
51
|
+
parIterLim (int): The partial evaluation limit employed in the modified policy iteration algorithm.
|
|
52
|
+
SORrelaxation (float): Relaxation parameter for the Successive Over-Relaxation method.
|
|
53
|
+
initPolicy (list): A 1D-list defining the initial policy. This option can be used for "warm starting" the optimization procedure.
|
|
54
|
+
initValueVector (list): A 1D-list defining the initial value vector. This option can be used for "warm starting" the optimization procedure.
|
|
55
|
+
verbose (bool): If True, prints solver progress to console.
|
|
56
|
+
postProcessing (bool): If True, performs post-processing after solving.
|
|
57
|
+
makeFinalCheck (bool): If True, makes a final check of the value vector. This process checks if the resulting values are reasonable.
|
|
58
|
+
parallel (bool): If True, enables parallel computation for faster solving. This option is only available for the custom MDP model with standard updates.
|
|
59
|
+
|
|
60
|
+
Returns:
|
|
61
|
+
None
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
if not (algorithm == "mpi" or algorithm == "pi" or algorithm == "vi"):
|
|
65
|
+
sys.exit("Error: Algorithm type not recognized. Select either: 'mpi', 'pi', or 'vi'.")
|
|
66
|
+
if tolerance <= 0.0:
|
|
67
|
+
sys.exit("Error: The tolerance needs to be a positive number.")
|
|
68
|
+
if not (update == "standard" or update == "gs" or update == "sor"):
|
|
69
|
+
sys.exit("Error: Update method not recognized. Select either: 'standard', 'gs', or 'sor'.")
|
|
70
|
+
if not (criterion == "discounted" or criterion == "average"):
|
|
71
|
+
sys.exit("Error: Optimality criterion not recognized. Select either: 'discounted' or 'average'.")
|
|
72
|
+
if parIterLim <= 0 and algorithm == "mpi":
|
|
73
|
+
sys.exit("Error: The partial evaluation limit needs to be a positive number.")
|
|
74
|
+
if (SORrelaxation <= 0.0 or SORrelaxation >= 2.0) and update == "sor":
|
|
75
|
+
sys.exit("Error: The relaxation parameter needs to be between 0.0 and 2.0 (i.e. 0 < SORrelaxation < 2).")
|
|
76
|
+
|
|
77
|
+
self.mdl.solve(
|
|
78
|
+
algorithm=algorithm,
|
|
79
|
+
tolerance=tolerance,
|
|
80
|
+
update=update,
|
|
81
|
+
criterion=criterion,
|
|
82
|
+
parIterLim=parIterLim,
|
|
83
|
+
SORrelaxation=SORrelaxation,
|
|
84
|
+
initPolicy=initPolicy,
|
|
85
|
+
initValueVector=initValueVector,
|
|
86
|
+
verbose=verbose,
|
|
87
|
+
postProcessing=postProcessing,
|
|
88
|
+
makeFinalCheck=makeFinalCheck,
|
|
89
|
+
parallel=parallel,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
def getRuntime(self) -> float:
|
|
93
|
+
"""
|
|
94
|
+
Get the runtime of the last solver execution.
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
float: Runtime in milliseconds.
|
|
98
|
+
"""
|
|
99
|
+
return self.mdl.getRuntime()
|
|
100
|
+
|
|
101
|
+
def printPolicy(self) -> None:
|
|
102
|
+
"""Print the entire policy to the terminal."""
|
|
103
|
+
self.mdl.printPolicy()
|
|
104
|
+
|
|
105
|
+
def printValueVector(self) -> None:
|
|
106
|
+
"""Print the entire value vector to the terminal."""
|
|
107
|
+
self.mdl.printValueVector()
|
|
108
|
+
|
|
109
|
+
def getAction(self, stateIndex: int = 0) -> int:
|
|
110
|
+
"""
|
|
111
|
+
Get the action from the optimized policy for a specific state.
|
|
112
|
+
|
|
113
|
+
Args:
|
|
114
|
+
stateIndex (int): Index of the state.
|
|
115
|
+
|
|
116
|
+
Returns:
|
|
117
|
+
int: Action for the given state.
|
|
118
|
+
"""
|
|
119
|
+
return self.mdl.getAction(stateIndex=stateIndex)
|
|
120
|
+
|
|
121
|
+
def getValue(self, stateIndex: int = 0) -> float:
|
|
122
|
+
"""
|
|
123
|
+
Get the value from the optimized value vector for a specific state.
|
|
124
|
+
|
|
125
|
+
Args:
|
|
126
|
+
stateIndex (int): Index of the state.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
float: Value for the given state.
|
|
130
|
+
"""
|
|
131
|
+
return self.mdl.getValue(stateIndex=stateIndex)
|
|
132
|
+
|
|
133
|
+
def getPolicy(self) -> list:
|
|
134
|
+
"""
|
|
135
|
+
Get the entire optimized policy.
|
|
136
|
+
|
|
137
|
+
Returns:
|
|
138
|
+
list: Optimized policy.
|
|
139
|
+
"""
|
|
140
|
+
return self.mdl.getPolicy()
|
|
141
|
+
|
|
142
|
+
def getValueVector(self):
|
|
143
|
+
"""
|
|
144
|
+
Get the entire optimized value vector.
|
|
145
|
+
|
|
146
|
+
Returns:
|
|
147
|
+
list: Optimized value vector.
|
|
148
|
+
"""
|
|
149
|
+
return self.mdl.getValueVector()
|
|
150
|
+
|
|
151
|
+
def saveToFile(self, fileName: str = "result.csv", type: str = "policy") -> None:
|
|
152
|
+
"""
|
|
153
|
+
Save the optimized policy or value vector to a file.
|
|
154
|
+
|
|
155
|
+
Args:
|
|
156
|
+
fileName (str): Name of the output file.
|
|
157
|
+
type (str): Type of result to save ('policy' or 'value').
|
|
158
|
+
|
|
159
|
+
Returns:
|
|
160
|
+
None
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
if not (type == "policy" or type == "value"):
|
|
164
|
+
sys.exit("Error: Type not recognized. Select either: 'policy' or 'value'.")
|
|
165
|
+
|
|
166
|
+
return self.mdl.saveToFile(fileName=fileName, type=type)
|
|
167
|
+
|
|
168
|
+
def mdp(
|
|
169
|
+
self,
|
|
170
|
+
discount: float = 0.99,
|
|
171
|
+
rewards: list = list(),
|
|
172
|
+
rewardsElementwise: list = list(),
|
|
173
|
+
rewardsFromFile: str = "rewards.csv",
|
|
174
|
+
tranMatWithZeros: list = list(),
|
|
175
|
+
tranMatElementwise: list = list(),
|
|
176
|
+
tranMatProbs: list = list(),
|
|
177
|
+
tranMatColumns: list = list(),
|
|
178
|
+
tranMatFromFile: str = "transitions.csv",
|
|
179
|
+
) -> None:
|
|
180
|
+
"""
|
|
181
|
+
Define the generic MDP model.
|
|
182
|
+
|
|
183
|
+
Args:
|
|
184
|
+
discount (float): Discount factor.
|
|
185
|
+
rewards (list): A 2D-list containing the reward (float) of a particular action in a particular state.
|
|
186
|
+
rewardsElementwise (list): Alternative reward format. A 2D-list where each row corresponds to a combination of a state and an action.
|
|
187
|
+
rewardsFromFile (str): Load the rewards from a comma-separated (,) file.
|
|
188
|
+
tranMatWithZeros (list): A 3D-list containing the transition probabilities.
|
|
189
|
+
tranMatElementwise (list): Sparse transition probabilities (option 1). A 2D-list where each row corresponds to a combination of a current state, an action, and a next state.
|
|
190
|
+
tranMatProbs (list): Sparse transition probabilities (option 2, part 1). A 3D-list containing the non-zero transition probabilities.
|
|
191
|
+
tranMatColumns (list): Sparse transition probabilities (option 2, part 2). A 3D-list containing the columns of the non-zero transition probabilities.
|
|
192
|
+
tranMatFromFile (str): Load the transition probabilities from a comma-separated (,) file.
|
|
193
|
+
|
|
194
|
+
Returns:
|
|
195
|
+
None
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
if discount <= 0.0 or discount >= 1.0:
|
|
199
|
+
sys.exit("Error: The discount needs to be in the interval between 0.0 and 1.0 (i.e. 0 < discount < 1).")
|
|
200
|
+
|
|
201
|
+
self.mdl.mdp(
|
|
202
|
+
discount=discount,
|
|
203
|
+
rewards=rewards,
|
|
204
|
+
rewardsElementwise=rewardsElementwise,
|
|
205
|
+
rewardsFromFile=rewardsFromFile,
|
|
206
|
+
tranMatWithZeros=tranMatWithZeros,
|
|
207
|
+
tranMatElementwise=tranMatElementwise,
|
|
208
|
+
tranMatProbs=tranMatProbs,
|
|
209
|
+
tranMatColumns=tranMatColumns,
|
|
210
|
+
tranMatFromFile=tranMatFromFile,
|
|
211
|
+
)
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Version: 1.13.0
|
|
2
|
+
Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-_v3rp46l\\cp313-win_amd64\\build\\venv\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-_v3rp46l\\cp313-win_amd64\\repaired_wheel', '-v', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-_v3rp46l\\cp313-win_amd64\\built_wheel\\mdpsolver-0.10.0-cp313-cp313-win_amd64.whl']
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: mdpsolver
|
|
3
|
+
Version: 0.10.0
|
|
4
|
+
Summary: A fast solver for Markov Decision Processes
|
|
5
|
+
Author-Email: Anders Reenberg Andersen <andersra@live.dk>, Jesper Fink Andersen <jesperfinkandersen@gmail.com>
|
|
6
|
+
Classifier: Development Status :: 4 - Beta
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
+
Classifier: Operating System :: MacOS
|
|
12
|
+
Project-URL: Homepage, https://github.com/areenberg/MDPSolver
|
|
13
|
+
Project-URL: Issues, https://github.com/areenberg/MDPSolver/issues
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
|
+
Provides-Extra: test
|
|
16
|
+
Requires-Dist: numpy; extra == "test"
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# MDPSolver
|
|
20
|
+
|
|
21
|
+
MDPSolver is a Python package for large Markov Decision Processes (MDPs) with infinite-horizons.
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
* Fast solver: Our C++-based solver is substantially faster than other CPU-based MDP packages available for Python. See details in the documentation.
|
|
26
|
+
* Two optimality criteria: *Discounted* and *Average* reward.
|
|
27
|
+
* Three optimization algorithms: *Value iteration*, *Policy iteration*, and *Modified policy iteration*.
|
|
28
|
+
* Three value-update methods: *Standard*, *Gauss–Seidel*, and *Successive over-relaxation*.
|
|
29
|
+
* Supports sparse matrices.
|
|
30
|
+
* Employs parallel computing.
|
|
31
|
+
|
|
32
|
+
# Installation
|
|
33
|
+
|
|
34
|
+
Prebuilt wheels are available for **Linux**, **Windows**, and **macOS (14+)** across Python 3.10–3.14. Install directly from PyPI with:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
pip install mdpsolver
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
# Quick start guide
|
|
41
|
+
|
|
42
|
+
The following shows how to get quickly started with `mdpsolver`.
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
Start by specifying the reward function and transition probabilities as lists. The following is an example of a simple MDP containing **three states** and **two actions in each state**.
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
#Import packages
|
|
50
|
+
import mdpsolver
|
|
51
|
+
|
|
52
|
+
#Rewards (3 states x 2 actions)
|
|
53
|
+
#e.g. choosing second action in first state gives reward=-1
|
|
54
|
+
rewards = [[5,-1],
|
|
55
|
+
[1,-2],
|
|
56
|
+
[50,0]]
|
|
57
|
+
|
|
58
|
+
#Transition probabilities (3 from_states x 2 actions x 3 to_states)
|
|
59
|
+
#e.g. choosing first action in third state gives a probability of 0.6 of staying in third state
|
|
60
|
+
tranMatWithZeros = [[[0.9,0.1,0.0],[0.1,0.9,0.0]],
|
|
61
|
+
[[0.4,0.5,0.1],[0.3,0.5,0.2]],
|
|
62
|
+
[[0.2,0.2,0.6],[0.5,0.5,0.0]]]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Now, create the model object and insert the problem parameters.
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
#Create model object
|
|
69
|
+
mdl = mdpsolver.model()
|
|
70
|
+
|
|
71
|
+
#Insert the problem parameters
|
|
72
|
+
mdl.mdp(discount=0.8,
|
|
73
|
+
rewards=rewards,
|
|
74
|
+
tranMatWithZeros=tranMatWithZeros)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
We can now optimize the policy.
|
|
78
|
+
|
|
79
|
+
```python
|
|
80
|
+
mdl.solve()
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The optimized policy can be returned in a variety of ways. Here, we return the policy as a list and print directly in the terminal.
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
print(mdl.getPolicy())
|
|
87
|
+
#[1, 1, 0]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Sparse transition matrix?
|
|
91
|
+
|
|
92
|
+
`mdpsolver` has three alternative formats for large and highly sparse transition probability matrices.
|
|
93
|
+
|
|
94
|
+
**(1) Elementwise representation (excluding elements containing zeros):**
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
#[from_state,action,to_state,probability]
|
|
98
|
+
tranMatElementwise = [[0,0,0,0.9],
|
|
99
|
+
[0,0,1,0.1],
|
|
100
|
+
[0,1,0,0.1],
|
|
101
|
+
[0,1,1,0.9],
|
|
102
|
+
[1,0,0,0.4],
|
|
103
|
+
[1,0,1,0.5],
|
|
104
|
+
[1,0,2,0.1],
|
|
105
|
+
[1,1,0,0.3],
|
|
106
|
+
[1,1,1,0.5],
|
|
107
|
+
[1,1,2,0.2],
|
|
108
|
+
[2,0,0,0.2],
|
|
109
|
+
[2,0,1,0.2],
|
|
110
|
+
[2,0,2,0.6],
|
|
111
|
+
[2,1,0,0.5],
|
|
112
|
+
[2,1,1,0.5]]
|
|
113
|
+
|
|
114
|
+
mdl.mdp(discount=0.8,
|
|
115
|
+
rewards=rewards,
|
|
116
|
+
tranMatElementwise=tranMatElementwise)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**(2) Probabilities and column (to_state) indices in separate lists:**
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
tranMatProbs = [[[0.9,0.1],[0.1,0.9]],
|
|
123
|
+
[[0.4,0.5,0.1],[0.3,0.5,0.2]],
|
|
124
|
+
[[0.2,0.2,0.6],[0.5,0.5]]]
|
|
125
|
+
|
|
126
|
+
tranMatColumns = [[[0,1],[0,1]],
|
|
127
|
+
[[0,1,2],[0,1,2]],
|
|
128
|
+
[[0,1,2],[0,1]]]
|
|
129
|
+
|
|
130
|
+
mdl.mdp(discount=0.8,
|
|
131
|
+
rewards=rewards,
|
|
132
|
+
tranMatProbs=tranMatProbs,
|
|
133
|
+
tranMatColumns=tranMatColumns)
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**(3) Load the elementwise representation from a file:**
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
mdl.mdp(discount=0.8,
|
|
141
|
+
rewards=rewards,
|
|
142
|
+
tranMatFromFile="transitions.csv")
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
# Documentation
|
|
146
|
+
|
|
147
|
+
The documentation can be found in the [wiki for MDPSolver](https://github.com/areenberg/MDPSolver/wiki).
|
|
148
|
+
|
|
149
|
+
# How to cite
|
|
150
|
+
|
|
151
|
+
[](https://zenodo.org/badge/latestdoi/294063917)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
mdpsolver/model.py,sha256=P2_KIKxmDlJIkJz-bKI8xWOyYvHOqGJkHy9GbszbMB8,8471
|
|
2
|
+
mdpsolver/solvermodule.cp313-win_amd64.pyd,sha256=SleS_NHwqYEEZmTcONz9zBmecxgYrWsVQh2dseCXZFs,337408
|
|
3
|
+
mdpsolver/__init__.py,sha256=xLEYt_z5jB31k1nXSlcpLamFj_IpuzEoHw7SqgtKbg8,366
|
|
4
|
+
mdpsolver-0.10.0.dist-info/DELVEWHEEL,sha256=AqXqH2wGYfxAkA2Un_FZ0U_Dml-aSByrhJWKZWCRtZM,409
|
|
5
|
+
mdpsolver-0.10.0.dist-info/METADATA,sha256=RZNDDc0XOIuYvyT5BFTIiHLVfAJ8nsqq7830zNLvRkQ,4546
|
|
6
|
+
mdpsolver-0.10.0.dist-info/RECORD,,
|
|
7
|
+
mdpsolver-0.10.0.dist-info/WHEEL,sha256=dXz53UX_wVrENU3pg7IjBHl1TfATF0jKSXtQDtrFnLw,105
|
|
8
|
+
mdpsolver-0.10.0.dist-info/licenses/LICENSE,sha256=KOcIKv2SHW1fmMFokSbuqssz4Xg8mUnQ0kB8nOKIww4,1127
|
|
9
|
+
mdpsolver.libs/libomp140.x86_64-4a20c1e5c115c29771a12324513eb109.dll,sha256=SiDB5cEVwpdxoSMkUT6xCbraxyGA95SBUnrXnZlv-zM,661856
|
|
10
|
+
mdpsolver.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll,sha256=pMIim9wqKmMKzcCVtNhgCOXD47x3cxdDVPPaT1vrnN4,575056
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Anders Reenberg Andersen and Jesper Fink Andersen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
Binary file
|
|
Binary file
|