<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243027</link>
    <title>MATLAB Central Newsreader - Solve non linear constraint optimization</title>
    <description>Feed for thread: Solve non linear constraint optimization</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>Sat, 24 Jan 2009 01:58:02 -0500</pubDate>
      <title>Solve non linear constraint optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243027#623632</link>
      <author>fas</author>
      <description>I want to minimize this constraint least square to find a and b. Had&lt;br&gt;
it be a linear system it would be probably easy to solve this&lt;br&gt;
constraint problem.  But I have this function of non linear equations&lt;br&gt;
to solve.&lt;br&gt;
f=sum[x*x']*[a,b,b^2/(4*a)]' - sum[y*x] +lambda*[-b^2/(4*a^2), (1/2)*&lt;br&gt;
(b/a),-1]'=0&lt;br&gt;
Here x,y are vectors in R3  and sum is over i to n;&lt;br&gt;
Can anyone help me solve this optimization.</description>
    </item>
    <item>
      <pubDate>Sat, 24 Jan 2009 14:49:02 -0500</pubDate>
      <title>Re: Solve non linear constraint optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243027#623688</link>
      <author>Matt </author>
      <description>fas &amp;lt;faisalmufti@gmail.com&amp;gt; wrote in message &amp;lt;9dc7b2b2-6103-47dc-a474-c7fda15518c8@t26g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; I want to minimize this constraint least square to find a and b. Had&lt;br&gt;
&amp;gt; it be a linear system it would be probably easy to solve this&lt;br&gt;
&amp;gt; constraint problem.  But I have this function of non linear equations&lt;br&gt;
&amp;gt; to solve.&lt;br&gt;
&amp;gt; f=sum[x*x']*[a,b,b^2/(4*a)]' - sum[y*x] +lambda*[-b^2/(4*a^2), (1/2)*&lt;br&gt;
&amp;gt; (b/a),-1]'=0&lt;br&gt;
&amp;gt; Here x,y are vectors in R3  and sum is over i to n;&lt;br&gt;
&amp;gt; Can anyone help me solve this optimization.&lt;br&gt;
&lt;br&gt;
Probably not, since you've told us neither what the objective function is, nor the constraint.&lt;br&gt;
&lt;br&gt;
It looks like you've given us Euler's equation above, but it will not be enough. We will need at minimum to know the constraint equation as well.</description>
    </item>
    <item>
      <pubDate>Sat, 24 Jan 2009 22:50:21 -0500</pubDate>
      <title>Re: Solve non linear constraint optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243027#623751</link>
      <author>fas</author>
      <description>On Jan 25, 1:49=A0am, &quot;Matt &quot; &amp;lt;mjacobson.removet...@xorantech.com&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; fas &amp;lt;faisalmu...@gmail.com&amp;gt; wrote in message &amp;lt;9dc7b2b2-6103-47dc-a474-c7f=&lt;br&gt;
da1551...@t26g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I want to minimize this constraint least square to find a and b. Had&lt;br&gt;
&amp;gt; &amp;gt; it be a linear system it would be probably easy to solve this&lt;br&gt;
&amp;gt; &amp;gt; constraint problem. =A0But I have this function of non linear equations&lt;br&gt;
&amp;gt; &amp;gt; to solve.&lt;br&gt;
&amp;gt; &amp;gt; f=3Dsum[x*x']*[a,b,b^2/(4*a)]' - sum[y*x] +lambda*[-b^2/(4*a^2), (1/2)*&lt;br&gt;
&amp;gt; &amp;gt; (b/a),-1]'=3D0&lt;br&gt;
&amp;gt; &amp;gt; Here x,y are vectors in R3 =A0and sum is over i to n;&lt;br&gt;
&amp;gt; &amp;gt; Can anyone help me solve this optimization.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Probably not, since you've told us neither what the objective function is=&lt;br&gt;
, nor the constraint.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It looks like you've given us Euler's equation above, but it will not be =&lt;br&gt;
enough. We will need at minimum to know the&lt;br&gt;
&lt;br&gt;
The constraint in this case is b^2/(4*a)=3Dconstant.&lt;br&gt;
It is some what similar to the case of first example of Lagranage&lt;br&gt;
multipliers at&lt;br&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Lagrange_multipliers&quot;&gt;http://en.wikipedia.org/wiki/Lagrange_multipliers&lt;/a&gt;&lt;br&gt;
where the third equation is non linear.</description>
    </item>
    <item>
      <pubDate>Sat, 24 Jan 2009 23:32:01 -0500</pubDate>
      <title>Re: Solve non linear constraint optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243027#623762</link>
      <author>Matt </author>
      <description>fas &amp;lt;faisalmufti@gmail.com&amp;gt; wrote in message &amp;lt;6d9101fd-1d79-4642-85a0-4a12ba228829@v18g2000pro.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jan 25, 1:49=A0am, &quot;Matt &quot; &amp;lt;mjacobson.removet...@xorantech.com&amp;gt;&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; fas &amp;lt;faisalmu...@gmail.com&amp;gt; wrote in message &amp;lt;9dc7b2b2-6103-47dc-a474-c7f=&lt;br&gt;
&amp;gt; da1551...@t26g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I want to minimize this constraint least square to find a and b. Had&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; it be a linear system it would be probably easy to solve this&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; constraint problem. =A0But I have this function of non linear equations&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; to solve.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; f=3Dsum[x*x']*[a,b,b^2/(4*a)]' - sum[y*x] +lambda*[-b^2/(4*a^2), (1/2)*&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; (b/a),-1]'=3D0&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Here x,y are vectors in R3 =A0and sum is over i to n;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Can anyone help me solve this optimization.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Probably not, since you've told us neither what the objective function is=&lt;br&gt;
&amp;gt; , nor the constraint.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; It looks like you've given us Euler's equation above, but it will not be =&lt;br&gt;
&amp;gt; enough. We will need at minimum to know the&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The constraint in this case is b^2/(4*a)=3Dconstant.&lt;br&gt;
&amp;gt; It is some what similar to the case of first example of Lagranage&lt;br&gt;
&amp;gt; multipliers at&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Lagrange_multipliers&quot;&gt;http://en.wikipedia.org/wiki/Lagrange_multipliers&lt;/a&gt;&lt;br&gt;
&amp;gt; where the third equation is non linear.&lt;br&gt;
&lt;br&gt;
I don't think we're going to be able to help you without the original problem spelled out in full.</description>
    </item>
    <item>
      <pubDate>Sun, 25 Jan 2009 21:33:03 -0500</pubDate>
      <title>Re: Solve non linear constraint optimization</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243027#623881</link>
      <author>Miroslav Balda</author>
      <description>fas &amp;lt;faisalmufti@gmail.com&amp;gt; wrote in message &amp;lt;6d9101fd-1d79-4642-85a0-4a12ba228829@v18g2000pro.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jan 25, 1:49=A0am, &quot;Matt &quot; &amp;lt;mjacobson.removet...@xorantech.com&amp;gt;&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; fas &amp;lt;faisalmu...@gmail.com&amp;gt; wrote in message &amp;lt;9dc7b2b2-6103-47dc-a474-c7f=&lt;br&gt;
&amp;gt; da1551...@t26g2000prh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I want to minimize this constraint least square to find a and b. Had&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; it be a linear system it would be probably easy to solve this&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; constraint problem. =A0But I have this function of non linear equations&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; to solve.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; f=3Dsum[x*x']*[a,b,b^2/(4*a)]' - sum[y*x] +lambda*[-b^2/(4*a^2), (1/2)*&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; (b/a),-1]'=3D0&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Here x,y are vectors in R3 =A0and sum is over i to n;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Can anyone help me solve this optimization.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Probably not, since you've told us neither what the objective function is=&lt;br&gt;
&amp;gt; , nor the constraint.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; It looks like you've given us Euler's equation above, but it will not be =&lt;br&gt;
&amp;gt; enough. We will need at minimum to know the&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The constraint in this case is b^2/(4*a)=3Dconstant.&lt;br&gt;
&amp;gt; It is some what similar to the case of first example of Lagranage&lt;br&gt;
&amp;gt; multipliers at&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Lagrange_multipliers&quot;&gt;http://en.wikipedia.org/wiki/Lagrange_multipliers&lt;/a&gt;&lt;br&gt;
&amp;gt; where the third equation is non linear.&lt;br&gt;
&lt;br&gt;
Hello,&lt;br&gt;
I think that the solution can be found by the least squares problem solution defined as a system of 4 equations for row vectors x and y&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xx = x*x';&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;yx = y*x'; % I think that transposition by x has been vergotten&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;res = @(z) [xx*[z(1); z(2); z(2)^2/(4*z(1))] - yx + ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lambda*[-z(2)^2/(4*z(1)^2); (1/2)*(z(2)/z(1));-1]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;z(2)^2 - (4*z(1))*constant];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[z, ssq, cnt] = LMFnlsq(res,z0); %   see FEX Id 17534&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;a = z(1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;b = z(2);&lt;br&gt;
Hope it helps.&lt;br&gt;
Best regards&lt;br&gt;
Mira</description>
    </item>
  </channel>
</rss>

