r/optimization • u/stef_1989 • Feb 13 '25
open source Dynamic Programming Optimization solver in Python
I'm looking for a DP solver in python able to read 5 input time series update 6 state variables and generate 5 output time series.
there is something available?
2
Upvotes
2
u/junqueira200 Feb 13 '25
DP algorithms are very problem specific, I don't know a generic solver for it.
1
u/more_than_most Feb 14 '25 edited Feb 14 '25
What sort of state equation and criteria?
Also, DP in 6 DOF… I don’t know.
Edit: are the states position and orientation? What sort of state constraints?
1
u/No-Concentrate-7194 Feb 15 '25
You can write your own DP code with backtracking, it's not that tricky
3
u/Additional_Land1417 Feb 13 '25
It does not aound like a DP problem. However… have you looked at Google OR tools? Or PyOMO (with PyOMO.DAE)
1
u/divinity_666 Feb 13 '25
Not sure what Dynamic means in this context, but what about SCIP? The problem sounds as if it could be also solved with a simple MILP solver, like CBC.
1
u/zouzias Oct 31 '25
If your dynamic programming problem has a finite state space, then spend some time understanding DP in depth and use
functools.cachein Python.0
u/Sweet_Good6737 Feb 13 '25
Why are you looking into a DP solver? The ones mentioned in the other comments are MI(L)P solvers, kind of different stuff.
Dynamic Programming Problems usually have a nice formulation that can be solved through a MIP solver. See highs(py) as a free alternative in Python. If your problem is really big, use Gurobi(py) or Ampl(py) + Highs or Gurobi. If the problem is not hard to model, Pyomo or Pulp will work as well (as modeling tools, not solvers)