macop.utils.progress.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>macop.utils.progress &mdash; macop v1.0.5 documentation</title>
  8. <script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
  9. <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
  10. <script type="text/javascript" src="../_static/jquery.js"></script>
  11. <script type="text/javascript" src="../_static/underscore.js"></script>
  12. <script type="text/javascript" src="../_static/doctools.js"></script>
  13. <script type="text/javascript" src="../_static/language_data.js"></script>
  14. <script type="text/javascript" src="../_static/js/theme.js"></script>
  15. <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  16. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  17. <link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />
  18. <link rel="index" title="Index" href="../genindex.html" />
  19. <link rel="search" title="Search" href="../search.html" />
  20. <link rel="next" title="Documentation" href="../documentations/index.html" />
  21. <link rel="prev" title="macop.solutions.continuous" href="macop.solutions.continuous.html" />
  22. </head>
  23. <body class="wy-body-for-nav">
  24. <div class="wy-grid-for-nav">
  25. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  26. <div class="wy-side-scroll">
  27. <div class="wy-side-nav-search" >
  28. <a href="../index.html" class="icon icon-home"> macop
  29. </a>
  30. <div class="version">
  31. 1.0.5
  32. </div>
  33. <div role="search">
  34. <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
  35. <input type="text" name="q" placeholder="Search docs" />
  36. <input type="hidden" name="check_keywords" value="yes" />
  37. <input type="hidden" name="area" value="default" />
  38. </form>
  39. </div>
  40. </div>
  41. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  42. <p class="caption"><span class="caption-text">Contents:</span></p>
  43. <ul class="current">
  44. <li class="toctree-l1"><a class="reference internal" href="../description.html">Description</a></li>
  45. <li class="toctree-l1 current"><a class="reference internal" href="../api.html">API</a><ul class="current">
  46. <li class="toctree-l2"><a class="reference internal" href="../api.html#macop">macop</a></li>
  47. <li class="toctree-l2"><a class="reference internal" href="../api.html#macop-algorithms">macop.algorithms</a></li>
  48. <li class="toctree-l2"><a class="reference internal" href="../api.html#macop-callbacks">macop.callbacks</a></li>
  49. <li class="toctree-l2"><a class="reference internal" href="../api.html#macop-evaluators">macop.evaluators</a></li>
  50. <li class="toctree-l2"><a class="reference internal" href="../api.html#macop-operators">macop.operators</a></li>
  51. <li class="toctree-l2"><a class="reference internal" href="../api.html#macop-policies">macop.policies</a></li>
  52. <li class="toctree-l2"><a class="reference internal" href="../api.html#macop-solution">macop.solution</a></li>
  53. <li class="toctree-l2 current"><a class="reference internal" href="../api.html#macop-utils">macop.utils</a><ul class="current">
  54. <li class="toctree-l3 current"><a class="current reference internal" href="#">macop.utils.progress</a></li>
  55. </ul>
  56. </li>
  57. </ul>
  58. </li>
  59. <li class="toctree-l1"><a class="reference internal" href="../documentations/index.html">Documentation</a></li>
  60. <li class="toctree-l1"><a class="reference internal" href="../examples.html">Some examples</a></li>
  61. <li class="toctree-l1"><a class="reference internal" href="../contributing.html">Contributing</a></li>
  62. </ul>
  63. </div>
  64. </div>
  65. </nav>
  66. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  67. <nav class="wy-nav-top" aria-label="top navigation">
  68. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  69. <a href="../index.html">macop</a>
  70. </nav>
  71. <div class="wy-nav-content">
  72. <div class="rst-content">
  73. <div role="navigation" aria-label="breadcrumbs navigation">
  74. <ul class="wy-breadcrumbs">
  75. <li><a href="../index.html">Docs</a> &raquo;</li>
  76. <li><a href="../api.html">API</a> &raquo;</li>
  77. <li>macop.utils.progress</li>
  78. <li class="wy-breadcrumbs-aside">
  79. <a href="https://github.com/prise-3d/macop/blob/master/docs/source/macop/macop.utils.progress.rst" class="fa fa-github"> Edit on GitHub</a>
  80. </li>
  81. </ul>
  82. <hr/>
  83. </div>
  84. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  85. <div itemprop="articleBody">
  86. <div class="section" id="module-macop.utils.progress">
  87. <span id="macop-utils-progress"></span><h1>macop.utils.progress<a class="headerlink" href="#module-macop.utils.progress" title="Permalink to this headline">¶</a></h1>
  88. <p>Utils progress <cite>macop</cite> module when verbose enable</p>
  89. <p class="rubric">Functions</p>
  90. <table class="longtable docutils align-default">
  91. <colgroup>
  92. <col style="width: 10%" />
  93. <col style="width: 90%" />
  94. </colgroup>
  95. <tbody>
  96. <tr class="row-odd"><td><p><a class="reference internal" href="#macop.utils.progress.macop_line" title="macop.utils.progress.macop_line"><code class="xref py py-obj docutils literal notranslate"><span class="pre">macop_line</span></code></a>(algo)</p></td>
  97. <td><p>Macop split line</p></td>
  98. </tr>
  99. <tr class="row-even"><td><p><a class="reference internal" href="#macop.utils.progress.macop_progress" title="macop.utils.progress.macop_progress"><code class="xref py py-obj docutils literal notranslate"><span class="pre">macop_progress</span></code></a>(algo, evaluations, max)</p></td>
  100. <td><p>Progress line of macop</p></td>
  101. </tr>
  102. <tr class="row-odd"><td><p><a class="reference internal" href="#macop.utils.progress.macop_text" title="macop.utils.progress.macop_text"><code class="xref py py-obj docutils literal notranslate"><span class="pre">macop_text</span></code></a>(algo, msg)</p></td>
  103. <td><p>Display Macop message to user interface</p></td>
  104. </tr>
  105. </tbody>
  106. </table>
  107. <p class="rubric">Classes</p>
  108. <table class="longtable docutils align-default">
  109. <colgroup>
  110. <col style="width: 10%" />
  111. <col style="width: 90%" />
  112. </colgroup>
  113. <tbody>
  114. <tr class="row-odd"><td><p><a class="reference internal" href="#macop.utils.progress.Colors" title="macop.utils.progress.Colors"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Colors</span></code></a></p></td>
  115. <td><p>Macop color representation</p></td>
  116. </tr>
  117. </tbody>
  118. </table>
  119. <dl class="class">
  120. <dt id="macop.utils.progress.Colors">
  121. <em class="property">class </em><code class="sig-prename descclassname">macop.utils.progress.</code><code class="sig-name descname">Colors</code><a class="reference internal" href="../_modules/macop/utils/progress.html#Colors"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#macop.utils.progress.Colors" title="Permalink to this definition">¶</a></dt>
  122. <dd><p>Macop color representation</p>
  123. </dd></dl>
  124. <dl class="function">
  125. <dt id="macop.utils.progress.macop_line">
  126. <code class="sig-prename descclassname">macop.utils.progress.</code><code class="sig-name descname">macop_line</code><span class="sig-paren">(</span><em class="sig-param">algo</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/macop/utils/progress.html#macop_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#macop.utils.progress.macop_line" title="Permalink to this definition">¶</a></dt>
  127. <dd><p>Macop split line</p>
  128. <dl class="field-list simple">
  129. <dt class="field-odd">Parameters</dt>
  130. <dd class="field-odd"><p><strong>algo</strong> – {Algorithm} – current algorithm instance</p>
  131. </dd>
  132. </dl>
  133. </dd></dl>
  134. <dl class="function">
  135. <dt id="macop.utils.progress.macop_progress">
  136. <code class="sig-prename descclassname">macop.utils.progress.</code><code class="sig-name descname">macop_progress</code><span class="sig-paren">(</span><em class="sig-param">algo</em>, <em class="sig-param">evaluations</em>, <em class="sig-param">max</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/macop/utils/progress.html#macop_progress"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#macop.utils.progress.macop_progress" title="Permalink to this definition">¶</a></dt>
  137. <dd><p>Progress line of macop</p>
  138. <dl class="field-list simple">
  139. <dt class="field-odd">Parameters</dt>
  140. <dd class="field-odd"><ul class="simple">
  141. <li><p><strong>algo</strong> – {Algorithm} – current algorithm instance</p></li>
  142. <li><p><strong>evaluations</strong> – {int} – current number of evaluations</p></li>
  143. <li><p><strong>max</strong> – {int} – max number of expected evaluations</p></li>
  144. </ul>
  145. </dd>
  146. </dl>
  147. </dd></dl>
  148. <dl class="function">
  149. <dt id="macop.utils.progress.macop_text">
  150. <code class="sig-prename descclassname">macop.utils.progress.</code><code class="sig-name descname">macop_text</code><span class="sig-paren">(</span><em class="sig-param">algo</em>, <em class="sig-param">msg</em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/macop/utils/progress.html#macop_text"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#macop.utils.progress.macop_text" title="Permalink to this definition">¶</a></dt>
  151. <dd><p>Display Macop message to user interface</p>
  152. <dl class="field-list simple">
  153. <dt class="field-odd">Parameters</dt>
  154. <dd class="field-odd"><ul class="simple">
  155. <li><p><strong>algo</strong> – {Algorithm} – current algorithm instance</p></li>
  156. <li><p><strong>msg</strong> – {str} – message to display</p></li>
  157. </ul>
  158. </dd>
  159. </dl>
  160. </dd></dl>
  161. </div>
  162. </div>
  163. </div>
  164. <footer>
  165. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  166. <a href="../documentations/index.html" class="btn btn-neutral float-right" title="Documentation" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
  167. <a href="macop.solutions.continuous.html" class="btn btn-neutral float-left" title="macop.solutions.continuous" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
  168. </div>
  169. <hr/>
  170. <div role="contentinfo">
  171. <p>
  172. &copy; Copyright 2020, Jérôme BUISINE
  173. </p>
  174. </div>
  175. Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  176. </footer>
  177. </div>
  178. </div>
  179. </section>
  180. </div>
  181. <script type="text/javascript">
  182. jQuery(function () {
  183. SphinxRtdTheme.Navigation.enable(true);
  184. });
  185. </script>
  186. </body>
  187. </html>