<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240934</link>
    <title>MATLAB Central Newsreader - Which to use (quadprog or fmincon)?</title>
    <description>Feed for thread: Which to use (quadprog or fmincon)?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 12 Dec 2008 20:15:55 -0500</pubDate>
      <title>Which to use (quadprog or fmincon)?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240934#616704</link>
      <author>Eric J. Holtman</author>
      <description>&lt;br&gt;
OK, here's a re-formulation of a question I asked earlier&lt;br&gt;
today:&lt;br&gt;
&lt;br&gt;
What's the best way to solve this problem:&lt;br&gt;
&lt;br&gt;
Minimize:  c1 x1 + q1*x1*x1 + c2 x2 + q2*x2*x2 . . .&lt;br&gt;
&lt;br&gt;
(I have about 3,000 x variables)&lt;br&gt;
&lt;br&gt;
Subject to:&lt;br&gt;
many constraints like &lt;br&gt;
&lt;br&gt;
x1 &amp;lt;= 40;&lt;br&gt;
x1 + x2 = 7;&lt;br&gt;
&lt;br&gt;
all x &amp;gt;=0;&lt;br&gt;
&lt;br&gt;
Now, I know a few things about this problem:&lt;br&gt;
&lt;br&gt;
1) It's quadratic.&lt;br&gt;
2) The Hessian is sparse, and well structured (only entries&lt;br&gt;
on the diagonal&lt;br&gt;
3) all variables are &amp;gt;= 0.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I'd like to use quadprog, but it seems like that's not&lt;br&gt;
feasible, as if I use the problem as stated, it will use&lt;br&gt;
the medium scale, which uses a dense Hessian, which will&lt;br&gt;
kill performance.&lt;br&gt;
&lt;br&gt;
If I want to use the large-scale, I can re-write my&lt;br&gt;
constraints:&lt;br&gt;
&lt;br&gt;
x1 &amp;lt;= 40;  becomes  x1 + slack1 = 40, etc, etc.  But&lt;br&gt;
the docs for the large scale say that I if I use the&lt;br&gt;
Aeq and beq entries, I can't pass bounds.  So how do&lt;br&gt;
I limit my xs and slacks to be &amp;gt;=0?&lt;br&gt;
&lt;br&gt;
Also, the large-scale docs imply that I cannot have more&lt;br&gt;
constraints than variables, which means that if every&lt;br&gt;
x has an absolute upper bound (i.e. x1 &amp;lt;= 40), that&lt;br&gt;
blows all my rows, and I don't have enough left to do &lt;br&gt;
the linear combinations.&lt;br&gt;
&lt;br&gt;
It seems like I must be mis-understanding something about&lt;br&gt;
quadprog, because it seems like my problem is perfect&lt;br&gt;
for a structured approach (I can compute Hx quickly, etc, &lt;br&gt;
etc).&lt;br&gt;
&lt;br&gt;
If I want to stick with MATLAB (and not NAG, or TOMLAB),&lt;br&gt;
am I reduced to using fmincon, which seems like overkill,&lt;br&gt;
even though it does have the advantage that I can pass&lt;br&gt;
in arbitrary numbers of constraints, and gradients and&lt;br&gt;
such, since I know all that information?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks for any clues,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Eric </description>
    </item>
    <item>
      <pubDate>Fri, 12 Dec 2008 21:10:18 -0500</pubDate>
      <title>Re: Which to use (quadprog or fmincon)?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240934#616707</link>
      <author>Matt </author>
      <description>&quot;Eric J. Holtman&quot; &amp;lt;ejh@ericholtman.com&amp;gt; wrote in message &amp;lt;Xns9B72911B0AAD8ejhericholtmamcom@216.168.3.30&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; OK, here's a re-formulation of a question I asked earlier&lt;br&gt;
&amp;gt; today:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What's the best way to solve this problem:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Minimize:  c1 x1 + q1*x1*x1 + c2 x2 + q2*x2*x2 . . .&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; (I have about 3,000 x variables)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Subject to:&lt;br&gt;
&amp;gt; many constraints like &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x1 &amp;lt;= 40;&lt;br&gt;
&amp;gt; x1 + x2 = 7;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; all x &amp;gt;=0;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now, I know a few things about this problem:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) It's quadratic.&lt;br&gt;
&amp;gt; 2) The Hessian is sparse, and well structured (only entries&lt;br&gt;
&amp;gt; on the diagonal&lt;br&gt;
&amp;gt; 3) all variables are &amp;gt;= 0.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'd like to use quadprog, but it seems like that's not&lt;br&gt;
&amp;gt; feasible, as if I use the problem as stated, it will use&lt;br&gt;
&amp;gt; the medium scale, which uses a dense Hessian, which will&lt;br&gt;
&amp;gt; kill performance.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I want to use the large-scale, I can re-write my&lt;br&gt;
&amp;gt; constraints:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x1 &amp;lt;= 40;  becomes  x1 + slack1 = 40, etc, etc.  But&lt;br&gt;
&amp;gt; the docs for the large scale say that I if I use the&lt;br&gt;
&amp;gt; Aeq and beq entries, I can't pass bounds.  So how do&lt;br&gt;
&amp;gt; I limit my xs and slacks to be &amp;gt;=0?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also, the large-scale docs imply that I cannot have more&lt;br&gt;
&amp;gt; constraints than variables, which means that if every&lt;br&gt;
&amp;gt; x has an absolute upper bound (i.e. x1 &amp;lt;= 40), that&lt;br&gt;
&amp;gt; blows all my rows, and I don't have enough left to do &lt;br&gt;
&amp;gt; the linear combinations.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It seems like I must be mis-understanding something about&lt;br&gt;
&amp;gt; quadprog, because it seems like my problem is perfect&lt;br&gt;
&amp;gt; for a structured approach (I can compute Hx quickly, etc, &lt;br&gt;
&amp;gt; etc).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I want to stick with MATLAB (and not NAG, or TOMLAB),&lt;br&gt;
&amp;gt; am I reduced to using fmincon, which seems like overkill,&lt;br&gt;
&amp;gt; even though it does have the advantage that I can pass&lt;br&gt;
&amp;gt; in arbitrary numbers of constraints, and gradients and&lt;br&gt;
&amp;gt; such, since I know all that information?&lt;br&gt;
&lt;br&gt;
A couple of questions,&lt;br&gt;
&lt;br&gt;
(1) Are all the q_i&amp;gt;0? If so,  you can forget about your Hessian. You can make a change of variables y_i= sqrt(q_i)*x_i and then the problem in the variables y_i has a Hessian which is the identity matrix.&lt;br&gt;
&lt;br&gt;
Effectively, this means the problem reduces to one of finding the minimum Euclidean distance of  a point to a polyhedral set. I think there are a gazillion papers out there on how to do that. &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
(2) How many equality constraints do you have?  If there aren't too many, it looks like the dual quadratic program may be fairly easy to handle.</description>
    </item>
    <item>
      <pubDate>Mon, 15 Dec 2008 07:44:27 -0500</pubDate>
      <title>Re: Which to use (quadprog or fmincon)?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240934#617067</link>
      <author>Torsten Hennig</author>
      <description>&amp;gt; &lt;br&gt;
&amp;gt; OK, here's a re-formulation of a question I asked&lt;br&gt;
&amp;gt; earlier&lt;br&gt;
&amp;gt; today:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What's the best way to solve this problem:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Minimize:  c1 x1 + q1*x1*x1 + c2 x2 + q2*x2*x2 . . .&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; (I have about 3,000 x variables)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Subject to:&lt;br&gt;
&amp;gt; many constraints like &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x1 &amp;lt;= 40;&lt;br&gt;
&amp;gt; x1 + x2 = 7;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; all x &amp;gt;=0;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now, I know a few things about this problem:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) It's quadratic.&lt;br&gt;
&amp;gt; 2) The Hessian is sparse, and well structured (only&lt;br&gt;
&amp;gt; entries&lt;br&gt;
&amp;gt; on the diagonal&lt;br&gt;
&amp;gt; 3) all variables are &amp;gt;= 0.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'd like to use quadprog, but it seems like that's&lt;br&gt;
&amp;gt; not&lt;br&gt;
&amp;gt; feasible, as if I use the problem as stated, it will&lt;br&gt;
&amp;gt; use&lt;br&gt;
&amp;gt; the medium scale, which uses a dense Hessian, which&lt;br&gt;
&amp;gt; will&lt;br&gt;
&amp;gt; kill performance.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I want to use the large-scale, I can re-write my&lt;br&gt;
&amp;gt; constraints:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x1 &amp;lt;= 40;  becomes  x1 + slack1 = 40, etc, etc.  But&lt;br&gt;
&amp;gt; the docs for the large scale say that I if I use the&lt;br&gt;
&amp;gt; Aeq and beq entries, I can't pass bounds.  So how do&lt;br&gt;
&amp;gt; I limit my xs and slacks to be &amp;gt;=0?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also, the large-scale docs imply that I cannot have&lt;br&gt;
&amp;gt; more&lt;br&gt;
&amp;gt; constraints than variables, which means that if every&lt;br&gt;
&amp;gt; x has an absolute upper bound (i.e. x1 &amp;lt;= 40), that&lt;br&gt;
&amp;gt; blows all my rows, and I don't have enough left to do&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; the linear combinations.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It seems like I must be mis-understanding something&lt;br&gt;
&amp;gt; about&lt;br&gt;
&amp;gt; quadprog, because it seems like my problem is perfect&lt;br&gt;
&amp;gt; for a structured approach (I can compute Hx quickly,&lt;br&gt;
&amp;gt; etc, &lt;br&gt;
&amp;gt; etc).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I want to stick with MATLAB (and not NAG, or&lt;br&gt;
&amp;gt; TOMLAB),&lt;br&gt;
&amp;gt; am I reduced to using fmincon, which seems like&lt;br&gt;
&amp;gt; overkill,&lt;br&gt;
&amp;gt; even though it does have the advantage that I can&lt;br&gt;
&amp;gt; pass&lt;br&gt;
&amp;gt; in arbitrary numbers of constraints, and gradients&lt;br&gt;
&amp;gt; and&lt;br&gt;
&amp;gt; such, since I know all that information?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for any clues,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Eric &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The following link might be interesting for you:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://plato.asu.edu/sub/nlores.html&quot;&gt;http://plato.asu.edu/sub/nlores.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Here a list of codes for the solution of quadratic&lt;br&gt;
programming problems is given.&lt;br&gt;
Especially notice the link to the MATLAB code called MINQ.&lt;br&gt;
&lt;br&gt;
Best wishes&lt;br&gt;
Torsten.</description>
    </item>
    <item>
      <pubDate>Mon, 15 Dec 2008 14:56:02 -0500</pubDate>
      <title>Re: Which to use (quadprog or fmincon)?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240934#617150</link>
      <author>Eric J. Holtman</author>
      <description>Torsten Hennig &amp;lt;Torsten.Hennig@umsicht.fhg.de&amp;gt; wrote in &lt;br&gt;
news:9303149.1229327097884.JavaMail.jakarta@nitrogen.mathforum.org:&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The following link might be interesting for you:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://plato.asu.edu/sub/nlores.html&quot;&gt;http://plato.asu.edu/sub/nlores.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here a list of codes for the solution of quadratic&lt;br&gt;
&amp;gt; programming problems is given.&lt;br&gt;
&amp;gt; Especially notice the link to the MATLAB code called MINQ.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Best wishes&lt;br&gt;
&amp;gt; Torsten.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hi Torsten... thanks for the link, I'll be checking it&lt;br&gt;
over carefully to see if I can find something useful.&lt;br&gt;
&lt;br&gt;
MINQ doesn't seem like it will work for me, since it only&lt;br&gt;
allows bounds constraints.  I have inequalities.&lt;br&gt;
&lt;br&gt;
I'm still confused by a minor point (I am not, as should&lt;br&gt;
be obvious by now, a mathmetician by trade).&lt;br&gt;
&lt;br&gt;
How is it even possible to convert inequalities to equalities,&lt;br&gt;
unless you know that all variables are implicitly &amp;gt;= 0?&lt;br&gt;
&lt;br&gt;
It seems to me that the transform of&lt;br&gt;
&lt;br&gt;
x1 + x2 &amp;lt;= 40 to    x1 + x2 + __Slack1 = 40 only works&lt;br&gt;
if you know __Slack1 &amp;gt;= 0.  And that seems to me to mean that&lt;br&gt;
either (a) the solver must implicitly force variables to &amp;gt;=0&lt;br&gt;
or (b) it must allow bounds in addition to equalities.&lt;br&gt;
&lt;br&gt;
So it seems that if I have inequalities, I can never use&lt;br&gt;
the large-scale quadprog, because I can't force them to &lt;br&gt;
equalities, because I can't pass bounds.&lt;br&gt;
&lt;br&gt;
Is this really true, or am I just missing something?</description>
    </item>
    <item>
      <pubDate>Tue, 16 Dec 2008 07:29:00 -0500</pubDate>
      <title>Re: Which to use (quadprog or fmincon)?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240934#617297</link>
      <author>Torsten Hennig</author>
      <description>&amp;gt; Torsten Hennig &amp;lt;Torsten.Hennig@umsicht.fhg.de&amp;gt; wrote&lt;br&gt;
&amp;gt; in &lt;br&gt;
&amp;gt; news:9303149.1229327097884.JavaMail.jakarta@nitrogen.m&lt;br&gt;
&amp;gt; athforum.org:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; The following link might be interesting for you:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;a href=&quot;http://plato.asu.edu/sub/nlores.html&quot;&gt;http://plato.asu.edu/sub/nlores.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Here a list of codes for the solution of quadratic&lt;br&gt;
&amp;gt; &amp;gt; programming problems is given.&lt;br&gt;
&amp;gt; &amp;gt; Especially notice the link to the MATLAB code&lt;br&gt;
&amp;gt; called MINQ.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Best wishes&lt;br&gt;
&amp;gt; &amp;gt; Torsten.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi Torsten... thanks for the link, I'll be checking&lt;br&gt;
&amp;gt; it&lt;br&gt;
&amp;gt; over carefully to see if I can find something useful.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; MINQ doesn't seem like it will work for me, since it&lt;br&gt;
&amp;gt; only&lt;br&gt;
&amp;gt; allows bounds constraints.  I have inequalities.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm still confused by a minor point (I am not, as&lt;br&gt;
&amp;gt; should&lt;br&gt;
&amp;gt; be obvious by now, a mathmetician by trade).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How is it even possible to convert inequalities to&lt;br&gt;
&amp;gt; equalities,&lt;br&gt;
&amp;gt; unless you know that all variables are implicitly &amp;gt;=&lt;br&gt;
&amp;gt; 0?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It seems to me that the transform of&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x1 + x2 &amp;lt;= 40 to    x1 + x2 + __Slack1 = 40 only&lt;br&gt;
&amp;gt; works&lt;br&gt;
&amp;gt; if you know __Slack1 &amp;gt;= 0.  And that seems to me to&lt;br&gt;
&amp;gt; mean that&lt;br&gt;
&amp;gt; either (a) the solver must implicitly force variables&lt;br&gt;
&amp;gt; to &amp;gt;=0&lt;br&gt;
&amp;gt; or (b) it must allow bounds in addition to&lt;br&gt;
&amp;gt; equalities.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; So it seems that if I have inequalities, I can never&lt;br&gt;
&amp;gt; use&lt;br&gt;
&amp;gt; the large-scale quadprog, because I can't force them&lt;br&gt;
&amp;gt; to &lt;br&gt;
&amp;gt; equalities, because I can't pass bounds.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is this really true, or am I just missing something?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
As far as I can tell, you are right.&lt;br&gt;
Maybe the MATLAB program MINQDEF is an option for you&lt;br&gt;
(follow the link to MINQ).&lt;br&gt;
&lt;br&gt;
Best wishes&lt;br&gt;
Torsten.</description>
    </item>
    <item>
      <pubDate>Tue, 16 Dec 2008 16:46:12 -0500</pubDate>
      <title>Re: Which to use (quadprog or fmincon)?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240934#617393</link>
      <author>Alan Weiss</author>
      <description>Eric J. Holtman wrote:&lt;br&gt;
&amp;gt; OK, here's a re-formulation of a question I asked earlier&lt;br&gt;
&amp;gt; today:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What's the best way to solve this problem:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Minimize:  c1 x1 + q1*x1*x1 + c2 x2 + q2*x2*x2 . . .&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; (I have about 3,000 x variables)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Subject to:&lt;br&gt;
&amp;gt; many constraints like &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x1 &amp;lt;= 40;&lt;br&gt;
&amp;gt; x1 + x2 = 7;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; all x &amp;gt;=0;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now, I know a few things about this problem:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) It's quadratic.&lt;br&gt;
&amp;gt; 2) The Hessian is sparse, and well structured (only entries&lt;br&gt;
&amp;gt; on the diagonal&lt;br&gt;
&amp;gt; 3) all variables are &amp;gt;= 0.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'd like to use quadprog, but it seems like that's not&lt;br&gt;
&amp;gt; feasible, as if I use the problem as stated, it will use&lt;br&gt;
&amp;gt; the medium scale, which uses a dense Hessian, which will&lt;br&gt;
&amp;gt; kill performance.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I want to use the large-scale, I can re-write my&lt;br&gt;
&amp;gt; constraints:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; x1 &amp;lt;= 40;  becomes  x1 + slack1 = 40, etc, etc.  But&lt;br&gt;
&amp;gt; the docs for the large scale say that I if I use the&lt;br&gt;
&amp;gt; Aeq and beq entries, I can't pass bounds.  So how do&lt;br&gt;
&amp;gt; I limit my xs and slacks to be &amp;gt;=0?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also, the large-scale docs imply that I cannot have more&lt;br&gt;
&amp;gt; constraints than variables, which means that if every&lt;br&gt;
&amp;gt; x has an absolute upper bound (i.e. x1 &amp;lt;= 40), that&lt;br&gt;
&amp;gt; blows all my rows, and I don't have enough left to do &lt;br&gt;
&amp;gt; the linear combinations.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It seems like I must be mis-understanding something about&lt;br&gt;
&amp;gt; quadprog, because it seems like my problem is perfect&lt;br&gt;
&amp;gt; for a structured approach (I can compute Hx quickly, etc, &lt;br&gt;
&amp;gt; etc).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I want to stick with MATLAB (and not NAG, or TOMLAB),&lt;br&gt;
&amp;gt; am I reduced to using fmincon, which seems like overkill,&lt;br&gt;
&amp;gt; even though it does have the advantage that I can pass&lt;br&gt;
&amp;gt; in arbitrary numbers of constraints, and gradients and&lt;br&gt;
&amp;gt; such, since I know all that information?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for any clues,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Eric &lt;br&gt;
&lt;br&gt;
I think you'd be well-served by the interior-point algorithm in fmincon. &lt;br&gt;
It handles large, sparse problems quite well. Yes, it's too bad that &lt;br&gt;
quadprog's large-scale algorithm isn't suitable, but I don't see why you &lt;br&gt;
say that fmincon is overkill, it is a well-adapted tool for solving such &lt;br&gt;
problems.&lt;br&gt;
&lt;br&gt;
Alan Weiss&lt;br&gt;
MATLAB mathematical toolbox documentation</description>
    </item>
  </channel>
</rss>

