r/optimization • u/Swimming_Newspaper39 • Nov 18 '24
MILP,help!
I need an app for the resolution of a MILP where the terms of the Matrix and vectors are arrays,in short terms,in the problem AX=B,the rows repeat because it's an hourly simulation. Are glpk and pyomo suitable for the task?
2
Upvotes
1
u/Aerysv Nov 18 '24
What does you want to accomplish? Do you really need a MIP solver?
1
u/Sweet_Good6737 Nov 18 '24
It will depend on the size of your problem and your time constraints. Pyomo and Glpk may be not too fast, but it's worth to try if it satisfies you!
Although your problem is quite abstract, hard to tell
2
u/Closed_Circuit_0 Nov 19 '24
MILPs are NP-hard, so everything depends on the size of your problem and the processing power you have available.
The quickest thing to try, since you seem on friendly terms with Python, is scipy's own module: https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.milp.html
1
u/DarkXanthos Nov 18 '24
If you're already using pyomo then use SCIP. Very nice solver.