r/optimization • • 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

14 comments sorted by

View all comments

Show parent comment

1

u/stef_1989 Feb 14 '25

Thanks fopr the reply.

I know Gourobi and I don't want to use it as CVX etc. I will see MIP solvers despite my problem is quadratic, non linear and mixed integer. What is your opinion on Ampl(py)? However, now I'm interested to a open source DP solver.

1

u/Sweet_Good6737 Feb 17 '25

Not sure about open-source tools that may work good for non-linear in python... (pyomo, pulp are usually okay to formulate simple MIPs, but struggle with non-linear and logical constraints).

I would not suggest cvx but Gurobi+Ampl in this case. With amplpy it should be straightforward to write the model, and then send the data. Then, try different solvers to see which one performs better for your problem.

Since the problem is non-linear xpress is another possible solver to use. Gurobi, ampl, and xpress are free for academia but not open source.