Maybe this thesis could help you (in french)<br /><br /><br /><br /> <br /> <br /> <br /><br /><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">> Message du 30/11/10 14:16<br />> De : "Carrico, Paul" <br />> A : users@lists.scilab.org<br />> Copie à : <br />> Objet : RE: [scilab-Users] optimization : general question<br />> <br />>   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta content="MSHTML 8.00.6001.18975" /> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010">Both Michaël and Sébastien,</span></font></p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010"></span></font> </p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010">First of all thanks for your (interesting) feedback,  I'll have a look on the example (as you've seen I'm a newbie in optimization  item and your advices are precious).</span></font></p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010"></span></font> </p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010">Additional question : </span></font><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010">do you think I should have a  look on another Scilab function afterward ? Can you recommand a good support to  well understand optimization problems ?</span></font></p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010"></span></font> </p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010">Cheers</span></font></p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010"></span></font> </p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010">Paul</span></font></p> <p style="margin:0;padding:0;" dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span class="295120913-30112010"></span></font> </p> <p style="margin:0;padding:0;"> </p> <p style="margin:0;padding:0;" align="left"> <p align="left"><font face="Arial" size="2">-----------------------------------------------------------------</font>  <br />> <strong><font face="Arial Narrow">PAUL CARRICO</font></strong> <br />> <font face="Arial" size="2">Design Engineer / Material expert</font> <br />> <font face="Arial" size="2">Temperature Department</font> </p> <p align="left"><font face="Arial" size="2"><span style="font-family: Arial; color: black; font-size: 10pt; font-weight: bold">Esterline  | Advanced Sensors</span><font color="navy"><span style="color: navy"><font face="Times New Roman" size="3"> </font><br />> </span></font></font><font face="Arial" size="2">5, allée Charles Pathé</font> <br />> <font face="Arial" size="2">18941  BOURGES cedex 9</font> <br />> <font face="Arial" size="2">FRANCE</font> </p> <p>> <u><font face="Arial" size="2">Phone</font></u><font face="Arial" size="2"> : +33 (0)  2 48 66 78 50</font> <br />> <u><font face="Arial" size="2">Fax</font></u> <font face="Arial" size="2">    : +33 (0) 2 48 66 78 55</font> </p> <p>> <font face="Arial" size="2"><a href="http://www.esterline.com/">www.esterline.com</a></font></p><font size="1" color="#ff0000"><font size="1" color="#ff0000"> </font></font><p><font size="1" color="#ff0000"><font size="1" color="#ff0000">> <font size="2" color="#000000"><strong>Featuring AUXITROL, NORWICH, and WESTON  Products</strong></font></font></font></p> <p><font size="1" color="#ff0000"><font size="1" color="#ff0000">> </font></font><font face="Arial" size="2">-----------------------------------------------------------------</font>  </p> <p>> <span style="font-family: Webdings; color: green; font-size: 13.5pt">P</span><font face="Arial" size="2" color="navy"><span style="font-family: Arial; color: navy; font-size: 10pt">  <br />> </span></font><font face="Comic Sans MS" size="2" color="green"><span style="font-family: 'Comic Sans MS'; color: green; font-size: 10pt">Please  consider the environment before printing this e-mail</span></font><font face="Arial" size="2" color="navy"><span style="font-family: Arial; color: navy; font-size: 10pt">  </span></font></p></p> <p style="margin:0;padding:0;"> </p><br />>  <p style="margin:0;padding:0;" dir="ltr" class="OutlookMessageHeader" align="left"> <hr /> <font face="Tahoma" size="2"><strong>De :</strong> Michaël Baudin  [mailto:michael.baudin@scilab.org] <br />> <strong>Envoyé :</strong> mardi 30 novembre  2010 14:00<br />> <strong>À :</strong> users@lists.scilab.org<br />> <strong>Cc :</strong>  Carrico, Paul<br />> <strong>Objet :</strong> Re: [scilab-Users] optimization : general  question<br />> </font><br />> </p> Hi,<br />> <br />> There is no way to apply bounds to the parameters from the  fminsearch function. This is because the algorithm was mainly designed for  unconstrained optimization. Nevertheless, it is possible to apply them with the  lower level component that the fminsearch function uses, the neldermead  component. This is possible by projecting the parameters on the bounds. This  makes the simple degenerate on the bounds and, if not far away from the optimum,  let the simplex converge on the optimum.<br />> <br />> In order to find an example,  please look, in Scilab v5.2.2, in the demonstrations:<br />> <br />> ? > Scilab  Demonstrations > Optimization and simulation > neldermead Box  B<br />> <br />> This example is based on the problem B from the Box' paper. It is a  problem with 2 bounded parameters (see in attachment). <br />> <br />> In Scilab v5.3, I  added some other examples. This includes a simple problem with bounds and   Rosenbrock's post office problem, an optimization with 3 parameters and linear  constraints (see in attachement). The simplest problem is the  following:<br />> <br />>   function [ f , index ] = myquad ( x , index  )<br />>     f = x(1)^2 + x(2)^2<br />>   endfunction<br />>    rand("seed" , 0)<br />>   x0 = [1.2 1.9].';<br />>   nm = nmplot_new  ();<br />>   nm = nmplot_configure(nm,"-numberofvariables",2);<br />>   nm =  nmplot_configure(nm,"-function",myquad);<br />>   nm =  nmplot_configure(nm,"-x0",x0);<br />>   nm =  nmplot_configure(nm,"-method","box");<br />>   nm =  nmplot_configure(nm,"-boundsmin",[1 1]);<br />>   nm =  nmplot_configure(nm,"-boundsmax",[2 2]);<br />>   nm =  nmplot_search(nm);<br />>   xcomp = nmplot_get(nm,"-xopt") // Should be [1  1]<br />>   fcomp = nmplot_get(nm,"-fopt") // Should be 2<br />>   nm =  nmplot_destroy(nm);<br />> <br />> This example is not provided in the help of  neldermead (see bug #7164): I will fix this in the next release.<br />> <br />> Best  regards,<br />> <br />> Michaël<br />> <br />> PS<br />> <a href="http://bugzilla.scilab.org/show_bug.cgi?id=7164">http://bugzilla.scilab.org/show_bug.cgi?id=7164</a><br />> <br />> Le  30/11/2010 11:58, Carrico, Paul a écrit :  <blockquote>   <meta content="MSHTML 8.00.6001.18975" />   <p style="margin:0;padding:0;"><font face="Arial" size="2"><span class="251084310-30112010">   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">Dear all,</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span><font size="3"><font face="Times                    New Roman"></font></font></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">The purpose of this    mail is to benefit from user feedback of Scilab community ... even if my    experience on optimization item is currently rather limited, this study will    significantly increase my own expertise.</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span><font size="3"><font face="Times                    New Roman"></font></font></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">I'm currently working    in linking a FEA code with Scilab to fit parameters from tests (see attached    fig<span class="251084310-30112010"> - in red the steps realized in Scilab    </span>) :</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">- On a single parameter    I used with success the <strong><u><span style="font-family: Arial">fminsearch</span></u></strong> function (based on    the simplex theory),</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">- with 2 parameters,    the calculated ran ... nevertheless the final result is physically non    applicable (need to bracket one of the values for examples)</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span><font size="3"><font face="Times                    New Roman"></font></font></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">Does somebody be    experienced on such item ? what is the best Scilab function ? Some advices in    reading ?</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span><font size="3"><font face="Times                    New Roman"></font></font></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">Thanks in    advance</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span><font size="3"><font face="Times                    New Roman"></font></font></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">Regards</span><span></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span><font size="3"><font face="Times                    New Roman"></font></font></span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt">Paul</span></p>   <p style="margin: 0cm 0cm 0pt" class="MsoNormal"><span style="font-family: Arial; font-size: 10pt"></span> </p></span></font></p>   <p style="margin:0;padding:0;"> </p>   <p style="margin:0;padding:0;"><img src="cid:295120913@30112010-09F3" border="0" /></p>   <p style="margin:0;padding:0;"> </p><pre>--------------------------------------------------------------------------------   Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.  This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.   </pre></blockquote><br />> <br />> <pre class="moz-signature">--  Michaël Baudin Ingénieur de développement <a href="mailto:michael.baudin@scilab.org" class="moz-txt-link-abbreviated">michael.baudin@scilab.org</a> ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94  </pre><pre>--------------------------------------------------------------------------------   Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.  This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.  <br /></pre></blockquote>