Hello Paul,<br /><br />I realize such optimization really often (i've created and use the PSO toolbox) .<br />If you need to bracket one value, you can penalize the result with this method :<br /><br />before rewriting you input file, you check if your inputs are physicaly good :<br />if good <br />then run the computation<br />else do not execute the computation and set the function objective function to a really high value (penalization).<br /><br />Hopping this will help you,<br />S.Salmon<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 12:04<br />> De : "Carrico, Paul" <br />> A : users@lists.scilab.org<br />> Copie à : <br />> Objet : [scilab-Users] optimization : general question<br />> <br />>   <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <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;"><font face="Arial" size="2"></font> </p> <p style="margin:0;padding:0;"><img src="cid:251084310@30112010-09EC" border="0" /></p> <p style="margin:0;padding:0;"><font face="Arial" size="2"></font> </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.  <br /></pre></blockquote>