Home

One intuitive modelling interface.
Three ways to solve.
Write a Markov decision process once, in DynaML — canonical Python, compiled to vectorized C++ speed using LLVM JIT — and deploy and compare a range of methods.
-
Intuitive & correct MDP models
Write the state, the random events that move it, the actions that shape it and the costs they incur in plain Python that mirrors the MDP definition — and is checked against it. One model feeds all three methods.
-
Vectorized reinforcement learning
Compiled, vectorized environments drive Deep Controlled Learning, designed for the highly stochastic problems of operations management, and DRL algorithms (PPO, etc) through a vectorized gym interface.
-
Compare & optimize policies
Evaluate heuristics and parameterized policies against each other on common random numbers, with statistical error bars, and optimize their parameters — all at compiled speed.
-
Exact dynamic programming
Where the state space can be enumerated and events are discrete: exact optimal policies, for finite and infinite horizons — a powerfull yardstick to benchmark heuristic and trained agents.
DynaPlex is an optimization library for formulating and solving Markov Decision Processes, i.e. for identifying well-performing policies that select actions based on complete or partial observations of the state space. Its design enables clean modelling and efficient solving of problems arising in operations management (OM) and related fields — supply chain management, transportation, manufacturing, warehousing, maintenance and process optimization. Models are written in DynaML, a purpose-built modelling language whose syntax is canonical Python, extended with modelling primitives such as discrete distributions, and executed by a multi-threaded engine with a bundled LLVM JIT: you read and write plain Python, and get auto-vectorized C++ speed.
New to MDPs?
Start with the introduction to MDPs, then work through the step-by-step tutorial, beginning with the airplane ticket selling MDP.
Where to go next¶
-
Getting started
Install the package and verify that it works on your platform, JIT included.
-
Tutorials
Two worked examples — a finite-horizon ticket selling problem and an infinite-horizon bin packing problem — with complete, runnable code.
-
Language reference
The complete reference for DynaML, the Python subset in which DynaPlex models are written — including all built-in functions.
-
Community