<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">If you use optim you can  set the ind
      retured arg to -1 in the cost function to say that the function
      cannot be evaluated at this point.<br>
      <br>
      Serge<br>
      <br>
      Le 06/10/2016 à 10:51, <a class="moz-txt-link-abbreviated" href="mailto:paul.carrico@free.fr">paul.carrico@free.fr</a> a écrit :<br>
    </div>
    <blockquote
cite="mid:1695201020.364037264.1475743899649.JavaMail.root@zimbra5-e1.priv.proxad.net"
      type="cite">
      <style type="text/css">p { margin: 0; }</style>
      <div style="font-family: times new roman,new york,times,serif;
        font-size: 12pt; color: #000000">
        <p class="MsoNormal">Hi All<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I’m using
            Scilab as the interface between my optimizer and my finite
            element solver(s)
            and sometimes Scilab stops because of unexpected and
            impossible calculus (1/x
            with x = 0 as an example ); obviously Scilab stops (and so
            the optimization).<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"> </span></p>
        <p class="MsoNormal"><span lang="EN-US">I’m
            wondering if it’s possible:<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US">-<span style="font-variant-numeric: normal;
              font-stretch: normal; font-size: 7pt; line-height: normal;
              font-family: "Times New Roman";">         
            </span></span><!--[endif]--><span lang="EN-US">To
            ask back Scilab a message such as “hey I crashed because
            you’re a fool and
            you’ve not anticipated an impossible calculation !!!”<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US">-<span style="font-variant-numeric: normal;
              font-stretch: normal; font-size: 7pt; line-height: normal;
              font-family: "Times New Roman";">         
            </span></span><!--[endif]--><span lang="EN-US">To
            get back Scilab control in order to avoid optimization
            process crash ? I’ve
            been thinking in affecting a cost function value at %inf for
            example (not
            elegant I recognize)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"> </span></p>
        <p class="MsoNormal"><span lang="EN-US">I don’t
            know if I’m understandable enough …<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"> </span></p>
        <p class="MsoNormal"><span lang="EN-US">Paul</span><o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>