<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi,<br>
      <br>
      Here is the related bug report:
      <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=11203">http://bugzilla.scilab.org/show_bug.cgi?id=11203</a><br>
      <br>
      Regards.</tt><br>
    <br>
    Le 29/05/12 15:44, Michael BAUDIN a écrit :
    <blockquote
cite="mid:OF3B77B967.C0795CD0-ONC1257A0D.004A5675-C1257A0D.004B879B@notes.edfgdf.fr"
      type="cite"><font size="2" face="sans-serif">Hi,</font>
      <br>
      <br>
      <font size="2" face="sans-serif">In the source code, we find the
        following
        comments :</font>
      <br>
      <br>
      <font size="2" face="sans-serif">info = 2  relative error between
        two consecutive iterates is at most xtol.</font>
      <br>
      <font size="2" face="sans-serif">info = 5  number of calls to fcn
        with iflag = 1 has reached maxfev.</font>
      <br>
      <br>
      <font size="2" face="sans-serif">Notice that this is different
        from the
        content of the help page (by the way, this is a bug which should
        be reported).
        So I guess that the info=2 either means that the solution is
        found, or
        that the algorithm stagnates. Did you check the value of the
        gradient and
        the eigenvalues of the Hessian matrix ? You can do this with the
        "derivative"
        function and the "order" option.</font>
      <br>
      <br>
      <font size="2" face="sans-serif">One thing that we may try in this
        situation
        is to compute the derivatives by different ways, with the goal
        of measuring
        the sensitivity of the solution to the accuracy of the gradient.
        Did you
        try to compute the gradient with "derivative" and various
        formula
        orders ? You can do this with the fjac argument of lsqrsolve.</font>
      <br>
      <br>
      <font size="2" face="sans-serif">Best regards,</font>
      <br>
      <br>
      <font size="2" face="sans-serif">Michael</font>
      <br>
      <br>
      <font size="2" face="sans-serif">PS</font>
      <br>
      <a moz-do-not-send="true"
href="http://gitweb.scilab.org/?p=scilab.git;a=blob_plain;f=scilab/modules/optimization/src/fortran/minpack/lmder.f;hb=HEAD"><font
          size="2" face="sans-serif">http://gitweb.scilab.org/?p=scilab.git;a=blob_plain;f=scilab/modules/optimization/src/fortran/minpack/lmder.f;hb=HEAD</font></a>
      <br>
      <a moz-do-not-send="true"
href="http://gitweb.scilab.org/?p=scilab.git;a=blob_plain;f=scilab/modules/optimization/src/fortran/minpack/lmdif.f;hb=HEAD"><font
          size="2" face="sans-serif">http://gitweb.scilab.org/?p=scilab.git;a=blob_plain;f=scilab/modules/optimization/src/fortran/minpack/lmdif.f;hb=HEAD</font></a>
      <br>
      <br>
      <br>
      <br>
      <br>
      <table width="100%">
        <tbody>
          <tr valign="top">
            <td width="40%"><font size="1" face="sans-serif"><b><a class="moz-txt-link-abbreviated" href="mailto:ezequielsoule@gmail.com">ezequielsoule@gmail.com</a></b>
              </font>
              <p><font size="1" face="sans-serif">28/05/2012 19:13</font>
                <table border="">
                  <tbody>
                    <tr valign="top">
                      <td bgcolor="white">
                        <div align="center"><font size="1"
                            face="sans-serif">Veuillez répondre à<br>
                            <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a></font></div>
                      </td>
                    </tr>
                  </tbody>
                </table>
                <br>
              </p>
            </td>
            <td width="59%">
              <table width="100%">
                <tbody>
                  <tr valign="top">
                    <td>
                      <div align="right"><font size="1"
                          face="sans-serif">A</font></div>
                    </td>
                    <td><font size="1" face="sans-serif"><a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a></font>
                    </td>
                  </tr>
                  <tr valign="top">
                    <td>
                      <div align="right"><font size="1"
                          face="sans-serif">cc</font></div>
                    </td>
                    <td>
                      <br>
                    </td>
                  </tr>
                  <tr valign="top">
                    <td>
                      <div align="right"><font size="1"
                          face="sans-serif">Objet</font></div>
                    </td>
                    <td><font size="1" face="sans-serif">[scilab-Users]
                        termination indicator
                        in lsqrsolve</font></td>
                  </tr>
                </tbody>
              </table>
              <br>
              <table>
                <tbody>
                  <tr valign="top">
                    <td>
                      <br>
                    </td>
                    <td><br>
                    </td>
                  </tr>
                </tbody>
              </table>
              <br>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <br>
      <tt><font size="2">hello, I´m using the function lsqrsolve and I
          wonder
          what is the difference<br>
          between the termination indicator 2 and 5, and what can I do
          if I get the<br>
          "2".<br>
          <br>
          2: number of calls to fcn reached<br>
          5: number of calls to fcn reached or exceeded maxfev<br>
          <br>
          I´m getting the termination indicator 2, and there is no way
          to avoid it.
          I<br>
          increased maxev but nothing happens, so I can´t get a good
          solution.<br>
          <br>
          Thank you,<br>
          <br>
          <br>
          --<br>
          View this message in context: </font></tt><a
        moz-do-not-send="true"
href="http://mailinglists.scilab.org/termination-indicator-in-lsqrsolve-tp4019532.html"><tt><font
            size="2">http://mailinglists.scilab.org/termination-indicator-in-lsqrsolve-tp4019532.html</font></tt></a><tt><font
          size="2"><br>
          Sent from the Scilab users - Mailing Lists Archives mailing
          list archive
          at Nabble.com.<br>
          <br>
          --<br>
          To unsubscribe from this mailing-list, please send an empty
          mail to<br>
          <a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@lists.scilab.org">users-unsubscribe@lists.scilab.org</a><br>
          To check the archives of this mailing list, see<br>
        </font></tt><a moz-do-not-send="true"
        href="http://mailinglists.scilab.org/"><tt><font size="2">http://mailinglists.scilab.org/</font></tt></a><tt><font
          size="2"><br>
          <br>
        </font></tt>
      <br>
      <p><br>
        Ce message et toutes les pièces jointes (ci-après le 'Message')
        sont établis à l'intention exclusive des destinataires et les
        informations qui y figurent sont strictement confidentielles.
        Toute utilisation de ce Message non conforme à sa destination,
        toute diffusion ou toute publication totale ou partielle, est
        interdite sauf autorisation expresse.</p>
      <p>Si vous n'êtes pas le destinataire de ce Message, il vous est
        interdit de le copier, de le faire suivre, de le divulguer ou
        d'en utiliser tout ou partie. Si vous avez reçu ce Message par
        erreur, merci de le supprimer de votre système, ainsi que toutes
        ses copies, et de n'en garder aucune trace sur quelque support
        que ce soit. Nous vous remercions également d'en avertir
        immédiatement l'expéditeur par retour du message.</p>
      <p>Il est impossible de garantir que les communications par
        messagerie électronique arrivent en temps utile, sont sécurisées
        ou dénuées de toute erreur ou virus.<br>
        ____________________________________________________</p>
      <p>This message and any attachments (the 'Message') are intended
        solely for the addressees. The information contained in this
        Message is confidential. Any use of information contained in
        this Message not in accord with its purpose, any dissemination
        or disclosure, either whole or partial, is prohibited except
        formal approval.</p>
      <p>If you are not the addressee, you may not copy, forward,
        disclose or use any part of it. If you have received this
        message in error, please delete it and all copies from your
        system and notify the sender immediately by return message.</p>
      <p>E-mail communication cannot be guaranteed to be timely secure,
        error or virus-free.</p>
    </blockquote>
    <br>
  </body>
</html>