<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
Thank you for providing a feedback on this function. Moreover, as it
seems to be working well, this is an even more good feeling.<br>
<br>
I am not sure that I understand well enough your message about the
"index" variable. I guess that you want the objective function to
receive the iteration number as an input argument. In the page :<br>
<br>
help optimset<br>
<br>
you will find the "Output and plot functions" section, which
describes the optimValues input argument of the output function. The
optimValues.iteration should correspond to your need.<br>
<br>
In order to use an output function, see the example in the help of
fminsearch - "Example with a customized output function":<br>
<br>
function y = banana (x)<br>
y = 100*(x(2)-x(1)^2)^2 + (1-x(1))^2;<br>
endfunction<br>
function outfun ( x , optimValues , state )<br>
plot( x(1),x(2),'.');<br>
endfunction<br>
opt = optimset ( "OutputFcn" , outfun);<br>
[x fval] = fminsearch ( banana , [-1.2 1] , opt );<br>
<br>
Best regards,<br>
<br>
Michaël Baudin<br>
<br>
Le 30/11/2010 10:29, Carrico, Paul a écrit :
<blockquote
cite="mid:55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDC@exchsrv.AUXITROL1"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18975">
<div><font face="Arial" size="2"><span class="231520409-30112010">Dear
All</span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010"></span></font> </div>
<div><font face="Arial" size="2"><span class="231520409-30112010">In
my first attempt to optimize parameters by linking Scilab to
a FEA code (this is a basic test with in a first step one
parameter), I use fminsearch function: it <strong><u>works
rather well until now !!!!</u></strong></span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010"></span></font> </div>
<div><font face="Arial" size="2"><span class="231520409-30112010">In
addition, it may be interesting to plot the curve test vs
fea at each iteration ...</span></font><font face="Arial"
size="2"><span class="231520409-30112010">it has been done in
a sub-function but only the final figure remains since the
previous ones are overwrited </span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010"></span></font> </div>
<div><font face="Arial" size="2"><span class="231520409-30112010">My
question is : </span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010">-
from my understanding an "index" variable" corresponding to
the iteration number can not be introduced in the fminsearch
function (</span></font><font face="Arial" size="2"><span
class="231520409-30112010">C10_optimized =
fminsearch(optimization,C10) </span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010">-
is ther a trick on index the curves based on the ieteration
(internal) value ?</span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010"></span></font> </div>
<div><font face="Arial" size="2"><span class="231520409-30112010">Thanks
in advance</span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010"></span></font> </div>
<div><font face="Arial" size="2"><span class="231520409-30112010">Regards</span></font></div>
<div><font face="Arial" size="2"><span class="231520409-30112010"></span></font> </div>
<div><font face="Arial" size="2"><span class="231520409-30112010">Paul</span></font></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>