<!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>
<DIV><SPAN class=042295413-30112010><FONT color=#0000ff size=2
face=Arial>tanks</FONT></SPAN></DIV>
<DIV><SPAN class=042295413-30112010><FONT color=#0000ff size=2
face=Arial>(merci)</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=fr class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De :</B> sebastien salmon
[mailto:bob.hyrsut@wanadoo.fr] <BR><B>Envoyé :</B> mardi 30 novembre 2010
14:52<BR><B>À :</B> users@lists.scilab.org<BR><B>Objet :</B> RE:
[scilab-Users] optimization : general question<BR></FONT><BR></DIV>
<DIV></DIV>Maybe this thesis could help you (in
french)<BR><BR><BR><BR><BR><BR><BR><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ff0000 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px">>
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 content="MSHTML 8.00.6001.18975">
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010>Both Michaël and Sébastien,</SPAN></FONT></P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010></SPAN></FONT> </P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
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></P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010></SPAN></FONT> </P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
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></P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010></SPAN></FONT> </P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010>Cheers</SPAN></FONT></P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010></SPAN></FONT> </P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010>Paul</SPAN></FONT></P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=295120913-30112010></SPAN></FONT> </P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"> </P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
align=left>
<P align=left><FONT size=2
face=Arial>-----------------------------------------------------------------</FONT>
<BR>> <STRONG><FONT face="Arial Narrow">PAUL CARRICO</FONT></STRONG>
<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></FONT></FONT>
<P><FONT color=#ff0000 size=1><FONT color=#ff0000 size=1>> <FONT
color=#000000 size=2><STRONG>Featuring AUXITROL, NORWICH, and WESTON
Products</STRONG></FONT></FONT></FONT></P>
<P><FONT color=#ff0000 size=1><FONT color=#ff0000 size=1>>
</FONT></FONT><FONT size=2
face=Arial>-----------------------------------------------------------------</FONT>
</P>
<P>> <SPAN
style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 13.5pt">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>
<P></P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"> </P><BR>>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"
dir=ltr class=OutlookMessageHeader align=left>
<HR>
<FONT size=2 face=Tahoma><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></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="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"><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">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>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"> </P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"><IMG
border=0 src="cid:042295413@30112010-09FA"></P>
<P
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px"> </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 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><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></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.