What is the best python library to solve nonlinear problems? PuLP can solve only linear problems like $\max15000Z_7 + 350D_{73}Z_7 - 15000Z_8 + 350D_{86}Z_8$.
Asked
Active
Viewed 828 times
4
-
1Hi Karim, have you considered Pyomo + IPOPT? There are a few questions about Pyomo and IPOPT, see for instance: NLP solvers in Pyomo other than IPOPT? – Stefano Gualandi Nov 06 '21 at 18:45
-
Hi Stefano, I tried to install pyomo but jupyter always sends this (ModuleNotFoundError: No module named 'pyomo'). I installed it using pip install pyomo – karim elwaly Nov 06 '21 at 19:29
-
1Hi Karim, you can find instructions about using Pyomo+IPOPT on a Google Colab (similar to Jupyter notebook) at this answer: How to install IPOPT on Google Colab for Pyomo – Stefano Gualandi Nov 06 '21 at 20:23
-
2Another way to use Ipopt from Python is cyipopt. – joni Nov 06 '21 at 21:34
-
3Checkout cvxopt, It provides you with a good interface for convex problems. Some examples are available here – mohit-mhjn Nov 07 '21 at 03:31
-
Ok, I will try it again. – karim elwaly Nov 11 '21 at 20:52
1 Answers
4
You can find non-linear solver binaries here. Also for academic purpose you can use SCIP which is very good. For modelling interface, SCIP has own python interface. Or you can use PYOMO for all of them with jupyter notebook. (I think you have installation problem). Or you can use Google OR-TOOLS but I don't know which solvers supported except SCIP.
kur ag
- 815
- 5
- 14