<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010>Both Michaël and Sébastien,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><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></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010>Additional question : </SPAN></FONT><FONT color=#0000ff 
size=2 face=Arial><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></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010>Cheers</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010>Paul</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=295120913-30112010></SPAN></FONT> </DIV>
<DIV> </DIV>
<DIV align=left>
<P align=left><FONT size=2 
face=Arial>-----------------------------------------------------------------</FONT> 
<BR><B><FONT face="Arial Narrow">PAUL CARRICO</FONT></B> <BR><FONT size=2 
face=Arial>Design Engineer / Material expert</FONT> <BR><FONT size=2 
face=Arial>Temperature Department</FONT> </P>
<P align=left><FONT size=2 face=Arial><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 size=3 
face="Times New Roman"> </FONT><BR></SPAN></FONT></FONT><FONT size=2 
face=Arial>5, allée Charles Pathé</FONT> <BR><FONT size=2 face=Arial>18941 
BOURGES cedex 9</FONT> <BR><FONT size=2 face=Arial>FRANCE</FONT> </P>
<P><U><FONT size=2 face=Arial>Phone</FONT></U><FONT size=2 face=Arial> : +33 (0) 
2 48 66 78 50</FONT> <BR><U><FONT size=2 face=Arial>Fax</FONT></U> <FONT size=2 
face=Arial>    : +33 (0) 2 48 66 78 55</FONT> </P>
<P><FONT size=2 face=Arial><A 
href="http://www.esterline.com/">www.esterline.com</A></FONT></P><FONT 
color=#ff0000 size=1><FONT color=#ff0000 size=1>
<P><FONT color=#000000 size=2><STRONG>Featuring AUXITROL, NORWICH, and WESTON 
Products</STRONG></FONT></P>
<P></FONT></FONT><FONT size=2 
face=Arial>-----------------------------------------------------------------</FONT> 
</P>
<P><SPAN style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 13.5pt" 
lang=EN-US>P</SPAN><FONT color=navy size=2 face=Arial><SPAN 
style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> 
<BR></SPAN></FONT><FONT color=green size=2 face="Comic Sans MS"><SPAN 
style="FONT-FAMILY: 'Comic Sans MS'; COLOR: green; FONT-SIZE: 10pt">Please 
consider the environment before printing this e-mail</SPAN></FONT><FONT 
color=navy size=2 face=Arial><SPAN 
style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> 
</SPAN></FONT></P></DIV>
<DIV> </DIV><BR>
<DIV dir=ltr lang=fr class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De :</B> Michaël Baudin 
[mailto:michael.baudin@scilab.org] <BR><B>Envoyé :</B> mardi 30 novembre 
2010 14:00<BR><B>À :</B> users@lists.scilab.org<BR><B>Cc :</B> 
Carrico, Paul<BR><B>Objet :</B> Re: [scilab-Users] optimization : general 
question<BR></FONT><BR></DIV>
<DIV></DIV>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 cite=mid:55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1 
type="cite">
  <META name=GENERATOR content="MSHTML 8.00.6001.18975">
  <DIV><FONT size=2 face=Arial><SPAN class=251084310-30112010>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>Dear all,</SPAN><SPAN 
  lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN lang=EN-GB><FONT 
  size=3><FONT 
  face="Times                     New Roman"><O:P></O:P></FONT></FONT></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>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 
  lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN lang=EN-GB><FONT 
  size=3><FONT 
  face="Times                     New Roman"><O:P></O:P></FONT></FONT></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>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 lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>- 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 lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>- 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 
  lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN lang=EN-GB><FONT 
  size=3><FONT 
  face="Times                     New Roman"><O:P></O:P></FONT></FONT></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>Does somebody be 
  experienced on such item ? what is the best Scilab function ? Some advices in 
  reading ?</SPAN><SPAN lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN lang=EN-GB><FONT 
  size=3><FONT 
  face="Times                     New Roman"><O:P></O:P></FONT></FONT></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>Thanks in 
  advance</SPAN><SPAN lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN lang=EN-GB><FONT 
  size=3><FONT 
  face="Times                     New Roman"><O:P></O:P></FONT></FONT></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>Regards</SPAN><SPAN 
  lang=EN-GB><O:P></O:P></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN lang=EN-GB><FONT 
  size=3><FONT 
  face="Times                     New Roman"><O:P></O:P></FONT></FONT></SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" lang=EN-GB>Paul</SPAN></P>
  <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN 
  style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" 
  lang=EN-GB></SPAN> </P></SPAN></FONT></DIV>
  <DIV> </DIV>
  <DIV><IMG border=0 hspace=0 alt="" align=baseline 
  src="cid:295120913@30112010-09F3"></DIV>
  <DIV> </DIV><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 cols="72">-- 
Michaël Baudin
Ingénieur de développement
<A class=moz-txt-link-abbreviated href="mailto:michael.baudin@scilab.org">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></BODY></HTML>

<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.