ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 15 Nov 2013 11:40:45 +0100Optimization toolboxes under SAGEhttps://ask.sagemath.org/question/10737/optimization-toolboxes-under-sage/Can we use SAGE to solve some optimization problems? Can we import optimization toolboxes such as YALMIP, MPT, CVX, TOMLAB in SAGE?
----------
Thanks in advance!Fri, 15 Nov 2013 07:36:23 +0100https://ask.sagemath.org/question/10737/optimization-toolboxes-under-sage/Answer by tmonteil for <p>Can we use SAGE to solve some optimization problems? Can we import optimization toolboxes such as YALMIP, MPT, CVX, TOMLAB in SAGE?</p>
<hr/>
<p>Thanks in advance!</p>
https://ask.sagemath.org/question/10737/optimization-toolboxes-under-sage/?answer=15700#post-id-15700The optimization toolboxes you speak about depend on matlab. If you has matlab installed on your machine, you can interact with it as [explained here](http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/matlab.html).
That said,
* Sage offers [mixed integer linear programming](http://www.sagemath.org/doc/reference/numerical/sage/numerical/mip.html), see also [this tutorial](http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html). The default backend is glpk which is quite slow, but you can easily install faster backends.
* Sage offers some convex optimization since it contains [CVXOPT](http://www.sagemath.org/doc/numerical_sage/cvxopt.html)
* Sage contains scipy which has an [optimization module](http://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html).
Fri, 15 Nov 2013 10:10:27 +0100https://ask.sagemath.org/question/10737/optimization-toolboxes-under-sage/?answer=15700#post-id-15700Comment by gundamlh for <p>The optimization toolboxes you speak about depend on matlab. If you has matlab installed on your machine, you can interact with it as <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/matlab.html">explained here</a>.</p>
<p>That said, </p>
<ul>
<li><p>Sage offers <a href="http://www.sagemath.org/doc/reference/numerical/sage/numerical/mip.html">mixed integer linear programming</a>, see also <a href="http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html">this tutorial</a>. The default backend is glpk which is quite slow, but you can easily install faster backends.</p></li>
<li><p>Sage offers some convex optimization since it contains <a href="http://www.sagemath.org/doc/numerical_sage/cvxopt.html">CVXOPT</a></p></li>
<li><p>Sage contains scipy which has an <a href="http://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html">optimization module</a>.</p></li>
</ul>
https://ask.sagemath.org/question/10737/optimization-toolboxes-under-sage/?comment=16698#post-id-16698IPOPT has a python-connector (http://code.google.com/p/pyipopt/people/list) , perhaps we can import it? It is powerful and open-source.Fri, 15 Nov 2013 11:40:45 +0100https://ask.sagemath.org/question/10737/optimization-toolboxes-under-sage/?comment=16698#post-id-16698