If you're programming OR challenges in Python, besides using mathematical optimization software (= constraint solvers), which other libraries do you often use? Maybe for mundane tasks such as data parsing, etc. Why? How do they make your life easier?
Asked
Active
Viewed 514 times
1 Answers
6
I can do 90% of my work with the following :
- pandas for data
- networkx for graphs
- pulp for linear programming modeling
- ipyleaflet for interactive maps
- line profiler for code profiling
I use them extensively because they are:
- used by many others
- well documented
- maintained
- user friendly
- free
- open source
- robust
Kuifje
- 13,324
- 1
- 23
- 56
OR-Tools can be considered as more than a solving library, as it has a bit of pulp's capabilities and can be used as interface to many solvers. One of my remarks about its Python API is that performance can be way slower than using a low level language, see for example the discussion here and this gist. Anyways, it's a great open source tool for prototyping models and developing solutions for reasonable scale instances.
– dhasson Jan 06 '21 at 15:27