mdpsolver 0.9.8__tar.gz → 0.9.10__tar.gz
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-0.9.8/src/mdpsolver.egg-info → mdpsolver-0.9.10}/PKG-INFO +7 -9
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/README.md +1 -5
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/pyproject.toml +4 -3
- mdpsolver-0.9.10/src/mdpsolver/__init__.py +1 -0
- mdpsolver-0.9.10/src/mdpsolver/__pycache__/__init__.cpython-313.pyc +0 -0
- mdpsolver-0.9.10/src/mdpsolver/__pycache__/__init__.cpython-314.pyc +0 -0
- mdpsolver-0.9.10/src/mdpsolver/__pycache__/model.cpython-313.pyc +0 -0
- mdpsolver-0.9.10/src/mdpsolver/__pycache__/model.cpython-314.pyc +0 -0
- mdpsolver-0.9.10/src/mdpsolver/model.py +211 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cp310-win_amd64.pyd +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cp311-win_amd64.pyd +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cp312-win_amd64.pyd +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cp313-win_amd64.pyd +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cp314-win_amd64.pyd +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cpython-310-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cpython-311-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cpython-312-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cpython-313-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.10/src/mdpsolver/solvermodule.cpython-314-x86_64-linux-gnu.so +0 -0
- {mdpsolver-0.9.8 → mdpsolver-0.9.10/src/mdpsolver.egg-info}/PKG-INFO +7 -9
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/src/mdpsolver.egg-info/SOURCES.txt +9 -3
- mdpsolver-0.9.10/tests/test1.py +717 -0
- mdpsolver-0.9.10/tests/test1_pip.py +713 -0
- mdpsolver-0.9.10/tests/test2.py +91 -0
- mdpsolver-0.9.10/tests/test2_pip.py +87 -0
- mdpsolver-0.9.8/src/mdpsolver/__init__.py +0 -1
- mdpsolver-0.9.8/src/mdpsolver/model.py +0 -139
- mdpsolver-0.9.8/src/mdpsolver/problems/cbmaux.py +0 -39
- mdpsolver-0.9.8/src/mdpsolver/problems/tbmaux.py +0 -39
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cp310-win_amd64.pyd +0 -0
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cp311-win_amd64.pyd +0 -0
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cp312-win_amd64.pyd +0 -0
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cp313-win_amd64.pyd +0 -0
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cpython-310-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cpython-311-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cpython-312-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.8/src/mdpsolver/solvermodule.cpython-313-x86_64-linux-gnu.so +0 -0
- mdpsolver-0.9.8/tests/test1.py +0 -686
- mdpsolver-0.9.8/tests/test2.py +0 -81
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/LICENSE +0 -0
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/MANIFEST.in +0 -0
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/setup.cfg +0 -0
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/src/mdpsolver/problems/__pycache__/cbmaux.cpython-310.pyc +0 -0
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/src/mdpsolver/problems/__pycache__/tbmaux.cpython-310.pyc +0 -0
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/src/mdpsolver.egg-info/dependency_links.txt +0 -0
- {mdpsolver-0.9.8 → mdpsolver-0.9.10}/src/mdpsolver.egg-info/top_level.txt +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mdpsolver
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.10
|
|
4
4
|
Summary: A fast solver for Markov Decision Processes
|
|
5
5
|
Author-email: Anders Reenberg Andersen <andersra@live.dk>, Jesper Fink Andersen <jesperfinkandersen@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/areenberg/MDPSolver
|
|
7
7
|
Project-URL: Issues, https://github.com/areenberg/MDPSolver/issues
|
|
8
|
-
Classifier: Development Status ::
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Operating System ::
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
13
|
Requires-Python: >=3.10
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
14
15
|
License-File: LICENSE
|
|
16
|
+
Dynamic: license-file
|
|
15
17
|
|
|
16
18
|
# MDPSolver
|
|
17
19
|
|
|
18
|
-
<img src="https://github.com/areenberg/MDPSolver/blob/anders_development/Images/MDPSolver_logo_3.png" alt="Logo" width="180">
|
|
19
|
-
|
|
20
20
|
MDPSolver is a Python package for large Markov Decision Processes (MDPs) with infinite-horizons.
|
|
21
21
|
|
|
22
22
|
## Features
|
|
@@ -38,11 +38,9 @@ Install directly from PyPI with:
|
|
|
38
38
|
pip install mdpsolver
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
MDPSolver works *out of the box* on Ubuntu 22 and newer.
|
|
42
|
-
|
|
43
41
|
### GLIBC not found
|
|
44
42
|
|
|
45
|
-
Some users will encounter the `version 'GLIBC_2.
|
|
43
|
+
Some users will encounter the `version 'GLIBC_2.38' not found` error when attempting to import MDPSolver in Python. The issue can be resolved by manually compiling and replacing the SO-file for the optimization module in the MDPSolver package. See the steps on how to solve the issue in the [documentation](https://github.com/areenberg/MDPSolver/wiki#how-to-install).
|
|
46
44
|
|
|
47
45
|
## Windows
|
|
48
46
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# MDPSolver
|
|
2
2
|
|
|
3
|
-
<img src="https://github.com/areenberg/MDPSolver/blob/anders_development/Images/MDPSolver_logo_3.png" alt="Logo" width="180">
|
|
4
|
-
|
|
5
3
|
MDPSolver is a Python package for large Markov Decision Processes (MDPs) with infinite-horizons.
|
|
6
4
|
|
|
7
5
|
## Features
|
|
@@ -23,11 +21,9 @@ Install directly from PyPI with:
|
|
|
23
21
|
pip install mdpsolver
|
|
24
22
|
```
|
|
25
23
|
|
|
26
|
-
MDPSolver works *out of the box* on Ubuntu 22 and newer.
|
|
27
|
-
|
|
28
24
|
### GLIBC not found
|
|
29
25
|
|
|
30
|
-
Some users will encounter the `version 'GLIBC_2.
|
|
26
|
+
Some users will encounter the `version 'GLIBC_2.38' not found` error when attempting to import MDPSolver in Python. The issue can be resolved by manually compiling and replacing the SO-file for the optimization module in the MDPSolver package. See the steps on how to solve the issue in the [documentation](https://github.com/areenberg/MDPSolver/wiki#how-to-install).
|
|
31
27
|
|
|
32
28
|
## Windows
|
|
33
29
|
|
|
@@ -10,7 +10,7 @@ where = ["src"]
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "mdpsolver"
|
|
13
|
-
version = "0.9.
|
|
13
|
+
version = "0.9.10"
|
|
14
14
|
authors = [
|
|
15
15
|
{ name="Anders Reenberg Andersen", email="andersra@live.dk" },
|
|
16
16
|
{ name="Jesper Fink Andersen", email="jesperfinkandersen@gmail.com" },
|
|
@@ -19,10 +19,11 @@ description = "A fast solver for Markov Decision Processes"
|
|
|
19
19
|
readme = "README.md"
|
|
20
20
|
requires-python = ">=3.10"
|
|
21
21
|
classifiers = [
|
|
22
|
-
"Development Status ::
|
|
22
|
+
"Development Status :: 4 - Beta",
|
|
23
23
|
"Programming Language :: Python :: 3",
|
|
24
24
|
"License :: OSI Approved :: MIT License",
|
|
25
|
-
"Operating System ::
|
|
25
|
+
"Operating System :: Microsoft :: Windows",
|
|
26
|
+
"Operating System :: POSIX :: Linux"
|
|
26
27
|
]
|
|
27
28
|
|
|
28
29
|
[project.urls]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from mdpsolver.model import model
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mdpsolver
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.10
|
|
4
4
|
Summary: A fast solver for Markov Decision Processes
|
|
5
5
|
Author-email: Anders Reenberg Andersen <andersra@live.dk>, Jesper Fink Andersen <jesperfinkandersen@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/areenberg/MDPSolver
|
|
7
7
|
Project-URL: Issues, https://github.com/areenberg/MDPSolver/issues
|
|
8
|
-
Classifier: Development Status ::
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Operating System ::
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
13
|
Requires-Python: >=3.10
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
14
15
|
License-File: LICENSE
|
|
16
|
+
Dynamic: license-file
|
|
15
17
|
|
|
16
18
|
# MDPSolver
|
|
17
19
|
|
|
18
|
-
<img src="https://github.com/areenberg/MDPSolver/blob/anders_development/Images/MDPSolver_logo_3.png" alt="Logo" width="180">
|
|
19
|
-
|
|
20
20
|
MDPSolver is a Python package for large Markov Decision Processes (MDPs) with infinite-horizons.
|
|
21
21
|
|
|
22
22
|
## Features
|
|
@@ -38,11 +38,9 @@ Install directly from PyPI with:
|
|
|
38
38
|
pip install mdpsolver
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
MDPSolver works *out of the box* on Ubuntu 22 and newer.
|
|
42
|
-
|
|
43
41
|
### GLIBC not found
|
|
44
42
|
|
|
45
|
-
Some users will encounter the `version 'GLIBC_2.
|
|
43
|
+
Some users will encounter the `version 'GLIBC_2.38' not found` error when attempting to import MDPSolver in Python. The issue can be resolved by manually compiling and replacing the SO-file for the optimization module in the MDPSolver package. See the steps on how to solve the issue in the [documentation](https://github.com/areenberg/MDPSolver/wiki#how-to-install).
|
|
46
44
|
|
|
47
45
|
## Windows
|
|
48
46
|
|
|
@@ -8,17 +8,23 @@ src/mdpsolver/solvermodule.cp310-win_amd64.pyd
|
|
|
8
8
|
src/mdpsolver/solvermodule.cp311-win_amd64.pyd
|
|
9
9
|
src/mdpsolver/solvermodule.cp312-win_amd64.pyd
|
|
10
10
|
src/mdpsolver/solvermodule.cp313-win_amd64.pyd
|
|
11
|
+
src/mdpsolver/solvermodule.cp314-win_amd64.pyd
|
|
11
12
|
src/mdpsolver/solvermodule.cpython-310-x86_64-linux-gnu.so
|
|
12
13
|
src/mdpsolver/solvermodule.cpython-311-x86_64-linux-gnu.so
|
|
13
14
|
src/mdpsolver/solvermodule.cpython-312-x86_64-linux-gnu.so
|
|
14
15
|
src/mdpsolver/solvermodule.cpython-313-x86_64-linux-gnu.so
|
|
16
|
+
src/mdpsolver/solvermodule.cpython-314-x86_64-linux-gnu.so
|
|
15
17
|
src/mdpsolver.egg-info/PKG-INFO
|
|
16
18
|
src/mdpsolver.egg-info/SOURCES.txt
|
|
17
19
|
src/mdpsolver.egg-info/dependency_links.txt
|
|
18
20
|
src/mdpsolver.egg-info/top_level.txt
|
|
19
|
-
src/mdpsolver/
|
|
20
|
-
src/mdpsolver/
|
|
21
|
+
src/mdpsolver/__pycache__/__init__.cpython-313.pyc
|
|
22
|
+
src/mdpsolver/__pycache__/__init__.cpython-314.pyc
|
|
23
|
+
src/mdpsolver/__pycache__/model.cpython-313.pyc
|
|
24
|
+
src/mdpsolver/__pycache__/model.cpython-314.pyc
|
|
21
25
|
src/mdpsolver/problems/__pycache__/cbmaux.cpython-310.pyc
|
|
22
26
|
src/mdpsolver/problems/__pycache__/tbmaux.cpython-310.pyc
|
|
23
27
|
tests/test1.py
|
|
24
|
-
tests/
|
|
28
|
+
tests/test1_pip.py
|
|
29
|
+
tests/test2.py
|
|
30
|
+
tests/test2_pip.py
|