<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Samuel<br>
      <br>
      Thank you very much for reaching out and providing constructive
      feedback. It is what I need.<br>
      <br>
      Best regards,<br>
      Claus<br>
      <br>
      On 05.08.2018 00:05, Samuel Gougeon wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e566cb80-7d41-8360-9b1c-f6b304365424@free.fr">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Le 04/08/2018 à 21:54, Claus Futtrup
        a écrit :<br>
      </div>
      <blockquote
        cite="mid:8a976ed1-5b45-0cf6-b5d3-bd10883e2c52@gmail.com"
        type="cite">Hi there <br>
        <br>
        Is there anyone who could help me with the CMA-ES optimization
        toolbox for Scilab 6? <br>
        <br>
        I wasn't successful in creating a functioning toolbox for Scilab
        5 in the first place. <br>
      </blockquote>
      <br>
      Yet, you have published some binaries...<br>
      <br>
      What are the problems?<br>
      Since there is no unit test, we could expect that examples work.
      But they don't.<br>
      And they can't. Examples:<br>
      <ul>
        <li>cma_ask, cma_new: the examples include<br>
        </li>
        <ul>
          <li>a call to cma_stop(), but there is no page for it. =>
            Please document it, or remove it from the example..</li>
          <li>some calls to undefined fitfun()...</li>
        </ul>
        <li>cma_optim:</li>
        <ul>
          <li>the first line uses getf(), that was removed from Scilab
            5.3.0 (2010-12-16..) << 5.5<br>
          </li>
          <li>again, fitfun is called without being defined. Now we
            understand its meaning. <br>
          </li>
        </ul>
        <li>cma_tell:<span class="scilabid"></span></li>
        <ul>
          <li><span class="scilabid">y</span><span
              class="scilabopenclose">(</span><span class="scilabid">i</span><span
              class="scilabopenclose">)</span> <span
              class="scilaboperator">=</span> <span class="scilabid">costf</span><span
              class="scilabopenclose">(</span><span class="scilabid">X</span><span
              class="scilabopenclose">(</span><span class="scilabid">i</span><span
              class="scilabopenclose">))</span><span
              class="scilabdefault">;</span> <span
              class="scilabcomment">// <font color="#3366ff">costf
                needs to be defined   ==> ??</font></span></li>
        </ul>
      </ul>
      If there are no unit tests, not a single complete runnable
      example, no code up-to-date with at least Scilab 5.4 (for which
      the first release was published), your question is not just about
      getting help to port the module from Scilab 5.4 to 5.5 and 6.0...<br>
      <br>
      About the macros: some advices to make the code usable on Scilab
      6.0 (and 5):<br>
      Most of functions are defined in a single file: cma.sci. In Scilab
      6, only the first function of the file (or the one having the name
      of the file) is public. Other ones are private, and can be called
      only by the public one.<br>
      So, in pratical, <br>
      <ul>
        <li>split the file cma.sci in as many files .sci as needed.
          internal functions (not documented) that are shared by several
          separate (public or internal) functions must also be defined
          separately.</li>
      </ul>
      <p>Cheers<br>
        Samuel<br>
      </p>
      <p><br>
      </p>
      <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>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>