Is there an open-source alternative to MATLAB's fmincon function for constrained linear optimization? I'm rewriting a MATLAB program to use Python / NumPy / SciPy and this is the only function I haven't found an equivalent to. A NumPy-based solution would be ideal, but any language will do.

Have you tried Jmodelica? It is an open source implementation of Modelica Language besides OpenModelica. I think Modelica has Python wrappers too. The Jmodelica package comes with an optimization tool called Optimica if I'm not mistaken.

**2019年05月24日08分14秒**

Two other people added links that weren't sure whether or not their suggestions would have what the original poster wanted.Why the down votes.A comment would be nice here.

**2019年05月24日08分14秒**

- constrained nonlinear optimization in Microsoft Solver foundation vs Matlab fmincon
- Speedy alternatives to fmincon for log-Likelihood
- How to return multiple values from a function?
- Using global variables in a function
- How to make a chain of function decorators?
- Does Django scale?
- binary linear programming solver in Python
- Implementation of Matlab's fmincon function in C++
- R equivalent of MATLAB's fmincon for constrained optimization?
- Alternative optimization Tool to fmincon
- numpy/scipy equivalent of MATLAB's sparse function
- Python equivalent of MATLAB's lsqr() with first argument a function

ADS