<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312</link>
    <title>MATLAB Central Newsreader - nonlinear system of equations</title>
    <description>Feed for thread: nonlinear system of equations</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 08 Mar 2008 15:40:22 -0500</pubDate>
      <title>nonlinear system of equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#419778</link>
      <author>Dmitry Dmitry</author>
      <description>Hello!!!&lt;br&gt;
&lt;br&gt;
My problem is connected with solving the NONLINEAR SYSTEM &lt;br&gt;
OF EQUATIONS in Matlab, which has the following &lt;br&gt;
peculiarities:&lt;br&gt;
&lt;br&gt;
1) The number of equations is very big (&amp;gt;30)&lt;br&gt;
2) The accuracy required is very high&lt;br&gt;
&lt;br&gt;
FSOLVE function doesn't provide the accuracy I need (the &lt;br&gt;
relative error between the known and found solutions is &lt;br&gt;
&amp;gt;10%). &lt;br&gt;
&lt;br&gt;
What methods and functions in Matlab would you recommend? &lt;br&gt;
If necessary, I can download the system of equations.&lt;br&gt;
&lt;br&gt;
Thanks in advance&lt;br&gt;
&lt;br&gt;
Dmitry&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 08 Mar 2008 15:52:31 -0500</pubDate>
      <title>Re: nonlinear system of equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#419780</link>
      <author>tommo97@gmail.com</author>
      <description>On Mar 8, 3:40=A0pm, "Dmitry Dmitry" &amp;lt;klio2...@list.ru&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello!!!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; My problem is connected with solving the NONLINEAR SYSTEM&lt;br&gt;
&amp;gt; OF EQUATIONS in Matlab, which has the following&lt;br&gt;
&amp;gt; peculiarities:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 1) The number of equations is very big (&amp;gt;30)&lt;br&gt;
&amp;gt; 2) The accuracy required is very high&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; FSOLVE function doesn't provide the accuracy I need (the&lt;br&gt;
&amp;gt; relative error between the known and found solutions is&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;10%).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; What methods and functions in Matlab would you recommend?&lt;br&gt;
&amp;gt; If necessary, I can download the system of equations.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks in advance&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Dmitry&lt;br&gt;
&lt;br&gt;
Hi Dmitry,&lt;br&gt;
Is it possible that fsolve is returning a local minima? What happens&lt;br&gt;
if you use something very close to the exact solution as the starting&lt;br&gt;
value?&lt;br&gt;
&lt;br&gt;
Tom&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 08 Mar 2008 19:07:02 -0500</pubDate>
      <title>Re: nonlinear system of equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#419793</link>
      <author>Dmitry Dmitry</author>
      <description>Tom, thanks for your reply!!!&lt;br&gt;
&lt;br&gt;
In fact, I don't know the exact solution, therefore I &lt;br&gt;
pointed ZERO values as the starting ones. In fact, the &lt;br&gt;
solution, as I've written, is very close, but still it &lt;br&gt;
doesn't satisfy the accuracy requirements. Concerning &lt;br&gt;
Jacobian, I tried both: calculating it myself and making &lt;br&gt;
FSOLVE do it. The difference doesn't seem much.&lt;br&gt;
&lt;br&gt;
At the end of iteration process I saw the warning: &lt;br&gt;
&lt;br&gt;
"Optimizer appears to be converging to a minimum that is &lt;br&gt;
not a root:&lt;br&gt;
Sum of squares of the function values is &amp;gt; sqrt&lt;br&gt;
(options.TolFun).&lt;br&gt;
Try again with a new starting point."&lt;br&gt;
&lt;br&gt;
So the optimizer has found a minimum but not a zero, &lt;br&gt;
however the criterion (of FSOLVE function) is satisfied!!!&lt;br&gt;
&lt;br&gt;
How can I guess the starting point? How can I improve &lt;br&gt;
FSOLVE work?&lt;br&gt;
&lt;br&gt;
Thanks in advance,&lt;br&gt;
&lt;br&gt;
Dmitry&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 09 Mar 2008 21:32:03 -0400</pubDate>
      <title>Re: nonlinear system of equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#419893</link>
      <author>carlos lopez</author>
      <description>What about the condition number of the Jacobian?&lt;br&gt;
Regards&lt;br&gt;
Carlos&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 09 Mar 2008 21:41:04 -0400</pubDate>
      <title>Re: nonlinear system of equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#419895</link>
      <author>carlos lopez</author>
      <description>"Dmitry Dmitry" &amp;lt;klio2003@list.ru&amp;gt; wrote in message &lt;br&gt;
...&lt;br&gt;
&amp;gt; 2) The accuracy required is very high&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; FSOLVE function doesn't provide the accuracy I need (the &lt;br&gt;
&amp;gt; relative error between the known and found solutions is &lt;br&gt;
&amp;gt; &amp;gt;10%). &lt;br&gt;
&lt;br&gt;
Hello Dmitry:&lt;br&gt;
There are two standard metrics for measuring "suitability"&lt;br&gt;
for an approximate solution:&lt;br&gt;
a) check how close to zero is the current solution&lt;br&gt;
b) check how close to the exact one is the current solution&lt;br&gt;
&lt;br&gt;
In order to have an estimate for b) you need to expand the&lt;br&gt;
nonlinear vector function and truncate. Thus, you will need&lt;br&gt;
the Jacobian, and indirectly its condition number will play&lt;br&gt;
a role.&lt;br&gt;
&lt;br&gt;
The other option does not provide any cue about how close&lt;br&gt;
are you to the exact solution. In some cases (I have&lt;br&gt;
suffered from that) requiring the "relative change" to be&lt;br&gt;
below a prescribed, low level, is not a wise idea. &lt;br&gt;
The reason arises when (at least in my case) there exist&lt;br&gt;
severe cancellation and shift out, thus precluding to&lt;br&gt;
improve the results using double precision. To make things&lt;br&gt;
worse, such pathology IS NOT related with the condition&lt;br&gt;
number of anything, but with the deep limitations of the&lt;br&gt;
number system.&lt;br&gt;
In my case (which might serve for others) I managed to&lt;br&gt;
recalculate the residual (i.e. option a)) using&lt;br&gt;
higher-than-double precision. Despite tiny, the changes&lt;br&gt;
close to the solution were significant enough to make again&lt;br&gt;
valid all the math behind the algorithms.&lt;br&gt;
Hope this helps&lt;br&gt;
Regards&lt;br&gt;
Carlos&lt;br&gt;
PD: as a higher-than-double precision I can mention the&lt;br&gt;
Multiple Precision Toolbox by Ben barrowes, available on the FEX&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 09 Mar 2008 22:10:19 -0400</pubDate>
      <title>Re: nonlinear system of equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#419897</link>
      <author>Yi Cao</author>
      <description>"Dmitry Dmitry" &amp;lt;klio2003@list.ru&amp;gt; wrote in message &amp;lt;fquc16&lt;br&gt;
$r4u$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What methods and functions in Matlab would you recommend? &lt;br&gt;
&amp;gt; If necessary, I can download the system of equations.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
You may wish to try lsqnonlin. Normally, the Levenberg-&lt;br&gt;
Marquardt approach provides better convergence.&lt;br&gt;
&lt;br&gt;
Good luck&lt;br&gt;
Yi&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 10 Mar 2008 21:36:01 -0400</pubDate>
      <title>Re: nonlinear system of equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#420095</link>
      <author>Ralph Schleicher</author>
      <description>"Dmitry Dmitry" &amp;lt;klio2003@list.ru&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; My problem is connected with solving the NONLINEAR SYSTEM &lt;br&gt;
&amp;gt; OF EQUATIONS in Matlab, which has the following &lt;br&gt;
&amp;gt; peculiarities:&lt;br&gt;
&lt;br&gt;
From my experience with Matlab I have to say "forget it".  Neither&lt;br&gt;
'fsolve' nor 'lsqnonlin' can solve any serious problem.&lt;br&gt;
&lt;br&gt;
Last year I attended a student whose task was to check out the&lt;br&gt;
capabilities of 'fsolve' and 'lsqnonlin'.  The problem statement was&lt;br&gt;
to find the steady-state solution for a mixing process of compressible&lt;br&gt;
gases.  Although the initial value was equal to the exact solution in&lt;br&gt;
5 digits after the decimal point and the Jacobi matrix was provided&lt;br&gt;
analytically, neither of the two commands could find a solution.  After&lt;br&gt;
weeks of fiddling with options and tolerances we forwarded the problem&lt;br&gt;
to The Mathworks.  The response was disillusioning -- in summary "no&lt;br&gt;
chance" to solve it in any reasonable computing time.  Our target was&lt;br&gt;
less than 2 minutes, The Mathworks support estimated that it may be&lt;br&gt;
possible to solve it over night with the help of a global optimizer.&lt;br&gt;
&lt;br&gt;
Nota bene: The exact solution was calculated with Dymola/Modelica in&lt;br&gt;
less than a second with initial values set to zero!  The current&lt;br&gt;
Modelica model has approx. 300 linear equations and approx. 100&lt;br&gt;
non-linear equations.  I don't even think about feeding that into&lt;br&gt;
Matlab.&lt;br&gt;
&lt;br&gt;
&amp;lt;flame&amp;gt;The Mathworks definitely should invest more money in algorithms&lt;br&gt;
than in GUI gimmicks.&amp;lt;/flame&amp;gt;&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Ralph Schleicher, Freelance Engineer    &lt;a href="http://ralph-schleicher.de"&gt;http://ralph-schleicher.de&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Development * Consulting * Training&lt;br&gt;
Mathematical Modeling and Simulation&lt;br&gt;
Software Tools&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 18 Mar 2008 11:09:06 -0400</pubDate>
      <title>PID CONTROLLER IN MATLAB (7.0) :Please help me out</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165312#421457</link>
      <author>shree</author>
      <description>Respected Sir,&lt;br&gt;
I am student of Master in .Eng. (Process Intrumentation&amp;Control)&lt;br&gt;
Currently working on Design of PID controler for Two in put two out&lt;br&gt;
put system.&lt;br&gt;
I have concentrated my work on your research paper .In present paper&lt;br&gt;
PID controller response final plot is there I am not able to&lt;br&gt;
reproduce it  thorugh matlab programming.&lt;br&gt;
&amp;nbsp;I  will send you my  research paper   and my .m file. please  tell me&lt;br&gt;
any changes  to be made.&lt;br&gt;
my  e mail  id is  shri.shripad@gmail.com&lt;br&gt;
Thanking you in Advance&lt;br&gt;
Eagerly waiting for your reply&lt;br&gt;
Regards&lt;br&gt;
Shripad&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
