discrete.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  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.solutions.discrete &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. </head>
  21. <body class="wy-body-for-nav">
  22. <div class="wy-grid-for-nav">
  23. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  24. <div class="wy-side-scroll">
  25. <div class="wy-side-nav-search" >
  26. <a href="../../../index.html" class="icon icon-home"> macop
  27. </a>
  28. <div class="version">
  29. 1.0.5
  30. </div>
  31. <div role="search">
  32. <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
  33. <input type="text" name="q" placeholder="Search docs" />
  34. <input type="hidden" name="check_keywords" value="yes" />
  35. <input type="hidden" name="area" value="default" />
  36. </form>
  37. </div>
  38. </div>
  39. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  40. <p class="caption"><span class="caption-text">Contents:</span></p>
  41. <ul>
  42. <li class="toctree-l1"><a class="reference internal" href="../../../description.html">Description</a></li>
  43. <li class="toctree-l1"><a class="reference internal" href="../../../api.html">API</a></li>
  44. <li class="toctree-l1"><a class="reference internal" href="../../../documentations/index.html">Documentation</a></li>
  45. <li class="toctree-l1"><a class="reference internal" href="../../../examples.html">Some examples</a></li>
  46. <li class="toctree-l1"><a class="reference internal" href="../../../contributing.html">Contributing</a></li>
  47. </ul>
  48. </div>
  49. </div>
  50. </nav>
  51. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  52. <nav class="wy-nav-top" aria-label="top navigation">
  53. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  54. <a href="../../../index.html">macop</a>
  55. </nav>
  56. <div class="wy-nav-content">
  57. <div class="rst-content">
  58. <div role="navigation" aria-label="breadcrumbs navigation">
  59. <ul class="wy-breadcrumbs">
  60. <li><a href="../../../index.html">Docs</a> &raquo;</li>
  61. <li><a href="../../index.html">Module code</a> &raquo;</li>
  62. <li>macop.solutions.discrete</li>
  63. <li class="wy-breadcrumbs-aside">
  64. </li>
  65. </ul>
  66. <hr/>
  67. </div>
  68. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  69. <div itemprop="articleBody">
  70. <h1>Source code for macop.solutions.discrete</h1><div class="highlight"><pre>
  71. <span></span><span class="sd">&quot;&quot;&quot;Discrete solution classes implementations</span>
  72. <span class="sd">&quot;&quot;&quot;</span>
  73. <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
  74. <span class="c1"># modules imports</span>
  75. <span class="kn">from</span> <span class="nn">.base</span> <span class="kn">import</span> <span class="n">Solution</span>
  76. <div class="viewcode-block" id="BinarySolution"><a class="viewcode-back" href="../../../macop/macop.solutions.discrete.html#macop.solutions.discrete.BinarySolution">[docs]</a><span class="k">class</span> <span class="nc">BinarySolution</span><span class="p">(</span><span class="n">Solution</span><span class="p">):</span>
  77. <span class="sd">&quot;&quot;&quot;</span>
  78. <span class="sd"> Binary integer solution class</span>
  79. <span class="sd"> - store solution as a binary array (example: [0, 1, 0, 1, 1])</span>
  80. <span class="sd"> - associated size is the size of the array</span>
  81. <span class="sd"> - mainly use for selecting or not an element in a list of valuable objects</span>
  82. <span class="sd"> Attributes:</span>
  83. <span class="sd"> data: {ndarray} -- array of binary values</span>
  84. <span class="sd"> size: {int} -- size of binary array values</span>
  85. <span class="sd"> score: {float} -- fitness score value</span>
  86. <span class="sd"> &quot;&quot;&quot;</span>
  87. <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">):</span>
  88. <span class="sd">&quot;&quot;&quot;</span>
  89. <span class="sd"> Initialize binary solution using specific data</span>
  90. <span class="sd"> Args:</span>
  91. <span class="sd"> data: {ndarray} -- array of binary values</span>
  92. <span class="sd"> size: {int} -- size of binary array values</span>
  93. <span class="sd"> Example:</span>
  94. <span class="sd"> &gt;&gt;&gt; from macop.solutions.discrete import BinarySolution</span>
  95. <span class="sd"> &gt;&gt;&gt; # build of a solution using specific data and size</span>
  96. <span class="sd"> &gt;&gt;&gt; data = [0, 1, 0, 1, 1]</span>
  97. <span class="sd"> &gt;&gt;&gt; solution = BinarySolution(data, len(data))</span>
  98. <span class="sd"> &gt;&gt;&gt; # check data content</span>
  99. <span class="sd"> &gt;&gt;&gt; sum(solution._data) == 3</span>
  100. <span class="sd"> True</span>
  101. <span class="sd"> &gt;&gt;&gt; # clone solution</span>
  102. <span class="sd"> &gt;&gt;&gt; solution_copy = solution.clone()</span>
  103. <span class="sd"> &gt;&gt;&gt; all(solution_copy._data == solution._data)</span>
  104. <span class="sd"> True</span>
  105. <span class="sd"> &quot;&quot;&quot;</span>
  106. <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">data</span><span class="p">),</span> <span class="n">size</span><span class="p">)</span>
  107. <div class="viewcode-block" id="BinarySolution.random"><a class="viewcode-back" href="../../../macop/macop.solutions.discrete.html#macop.solutions.discrete.BinarySolution.random">[docs]</a> <span class="nd">@staticmethod</span>
  108. <span class="k">def</span> <span class="nf">random</span><span class="p">(</span><span class="n">size</span><span class="p">,</span> <span class="n">validator</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
  109. <span class="sd">&quot;&quot;&quot;</span>
  110. <span class="sd"> Intialize binary array with use of validator to generate valid random solution</span>
  111. <span class="sd"> Args:</span>
  112. <span class="sd"> size: {int} -- expected solution size to generate</span>
  113. <span class="sd"> validator: {function} -- specific function which validates or not a solution (if None, not validation is applied)</span>
  114. <span class="sd"> Returns:</span>
  115. <span class="sd"> {BinarySolution} -- new generated binary solution</span>
  116. <span class="sd"> Example:</span>
  117. <span class="sd"> &gt;&gt;&gt; from macop.solutions.discrete import BinarySolution</span>
  118. <span class="sd"> &gt;&gt;&gt; validator = lambda solution: True if sum(solution._data) &gt; 5 else False</span>
  119. <span class="sd"> &gt;&gt;&gt; solution = BinarySolution.random(10, validator)</span>
  120. <span class="sd"> &gt;&gt;&gt; sum(solution._data) &gt; 5</span>
  121. <span class="sd"> True</span>
  122. <span class="sd"> &quot;&quot;&quot;</span>
  123. <span class="n">data</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">randint</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="n">size</span><span class="o">=</span><span class="n">size</span><span class="p">)</span>
  124. <span class="n">solution</span> <span class="o">=</span> <span class="n">BinarySolution</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  125. <span class="k">if</span> <span class="ow">not</span> <span class="n">validator</span><span class="p">:</span>
  126. <span class="k">return</span> <span class="n">solution</span>
  127. <span class="k">while</span> <span class="ow">not</span> <span class="n">validator</span><span class="p">(</span><span class="n">solution</span><span class="p">):</span>
  128. <span class="n">data</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">randint</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span> <span class="n">size</span><span class="o">=</span><span class="n">size</span><span class="p">)</span>
  129. <span class="n">solution</span> <span class="o">=</span> <span class="n">BinarySolution</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  130. <span class="k">return</span> <span class="n">solution</span></div>
  131. <span class="k">def</span> <span class="fm">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
  132. <span class="k">return</span> <span class="sa">f</span><span class="s2">&quot;Binary solution </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_data</span><span class="si">}</span><span class="s2">&quot;</span></div>
  133. <div class="viewcode-block" id="CombinatoryIntegerSolution"><a class="viewcode-back" href="../../../macop/macop.solutions.discrete.html#macop.solutions.discrete.CombinatoryIntegerSolution">[docs]</a><span class="k">class</span> <span class="nc">CombinatoryIntegerSolution</span><span class="p">(</span><span class="n">Solution</span><span class="p">):</span>
  134. <span class="sd">&quot;&quot;&quot;</span>
  135. <span class="sd"> Combinatory integer solution class</span>
  136. <span class="sd"> - store solution as a binary array (example: [0, 1, 0, 1, 1])</span>
  137. <span class="sd"> - associated size is the size of the array</span>
  138. <span class="sd"> - mainly use for selecting or not an element in a list of valuable objects</span>
  139. <span class="sd"> Attributes:</span>
  140. <span class="sd"> data: {ndarray} -- array of integer values</span>
  141. <span class="sd"> size: {int} -- size of integer array values</span>
  142. <span class="sd"> score: {float} -- fitness score value</span>
  143. <span class="sd"> &quot;&quot;&quot;</span>
  144. <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">):</span>
  145. <span class="sd">&quot;&quot;&quot;</span>
  146. <span class="sd"> Initialize integer solution using specific data</span>
  147. <span class="sd"> Args:</span>
  148. <span class="sd"> data: {ndarray} -- array of integer values</span>
  149. <span class="sd"> size: {int} -- size of integer array values</span>
  150. <span class="sd"> &gt;&gt;&gt; from macop.solutions.discrete import CombinatoryIntegerSolution</span>
  151. <span class="sd"> &gt;&gt;&gt; import numpy as np</span>
  152. <span class="sd"> &gt;&gt;&gt; data = np.arange(5)</span>
  153. <span class="sd"> &gt;&gt;&gt; solution = CombinatoryIntegerSolution(data, 5)</span>
  154. <span class="sd"> &gt;&gt;&gt; sum(solution._data) == 10</span>
  155. <span class="sd"> True</span>
  156. <span class="sd"> &gt;&gt;&gt; solution_copy = solution.clone()</span>
  157. <span class="sd"> &gt;&gt;&gt; all(solution_copy._data == solution._data)</span>
  158. <span class="sd"> True</span>
  159. <span class="sd"> &quot;&quot;&quot;</span>
  160. <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  161. <div class="viewcode-block" id="CombinatoryIntegerSolution.random"><a class="viewcode-back" href="../../../macop/macop.solutions.discrete.html#macop.solutions.discrete.CombinatoryIntegerSolution.random">[docs]</a> <span class="nd">@staticmethod</span>
  162. <span class="k">def</span> <span class="nf">random</span><span class="p">(</span><span class="n">size</span><span class="p">,</span> <span class="n">validator</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
  163. <span class="sd">&quot;&quot;&quot;</span>
  164. <span class="sd"> Intialize combinatory integer array with use of validator to generate valid random solution</span>
  165. <span class="sd"> Args:</span>
  166. <span class="sd"> size: {int} -- expected solution size to generate</span>
  167. <span class="sd"> validator: {function} -- specific function which validates or not a solution (if None, not validation is applied)</span>
  168. <span class="sd"> Returns:</span>
  169. <span class="sd"> {CombinatoryIntegerSolution} -- new generated combinatory integer solution</span>
  170. <span class="sd"> Example:</span>
  171. <span class="sd"> &gt;&gt;&gt; from macop.solutions.discrete import CombinatoryIntegerSolution</span>
  172. <span class="sd"> &gt;&gt;&gt; validator = lambda solution: True if sum(solution._data) &gt; 5 else False</span>
  173. <span class="sd"> &gt;&gt;&gt; solution = CombinatoryIntegerSolution.random(5, validator)</span>
  174. <span class="sd"> &gt;&gt;&gt; sum(solution._data) &gt; 5</span>
  175. <span class="sd"> True</span>
  176. <span class="sd"> &quot;&quot;&quot;</span>
  177. <span class="n">data</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="n">size</span><span class="p">)</span>
  178. <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">shuffle</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
  179. <span class="n">solution</span> <span class="o">=</span> <span class="n">CombinatoryIntegerSolution</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  180. <span class="k">if</span> <span class="ow">not</span> <span class="n">validator</span><span class="p">:</span>
  181. <span class="k">return</span> <span class="n">solution</span>
  182. <span class="k">while</span> <span class="ow">not</span> <span class="n">validator</span><span class="p">(</span><span class="n">solution</span><span class="p">):</span>
  183. <span class="n">data</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="n">size</span><span class="p">)</span>
  184. <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">shuffle</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
  185. <span class="n">solution</span> <span class="o">=</span> <span class="n">CombinatoryIntegerSolution</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  186. <span class="k">return</span> <span class="n">solution</span></div>
  187. <span class="k">def</span> <span class="fm">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
  188. <span class="k">return</span> <span class="sa">f</span><span class="s2">&quot;Combinatory integer solution </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_data</span><span class="si">}</span><span class="s2">&quot;</span></div>
  189. <div class="viewcode-block" id="IntegerSolution"><a class="viewcode-back" href="../../../macop/macop.solutions.discrete.html#macop.solutions.discrete.IntegerSolution">[docs]</a><span class="k">class</span> <span class="nc">IntegerSolution</span><span class="p">(</span><span class="n">Solution</span><span class="p">):</span>
  190. <span class="sd">&quot;&quot;&quot;</span>
  191. <span class="sd"> Integer solution class</span>
  192. <span class="sd"> Attributes:</span>
  193. <span class="sd"> data: {ndarray} -- array of binary values</span>
  194. <span class="sd"> size: {int} -- size of binary array values</span>
  195. <span class="sd"> score: {float} -- fitness score value</span>
  196. <span class="sd"> &quot;&quot;&quot;</span>
  197. <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">):</span>
  198. <span class="sd">&quot;&quot;&quot;</span>
  199. <span class="sd"> Initialize integer solution using specific data</span>
  200. <span class="sd"> Args:</span>
  201. <span class="sd"> data: {ndarray} -- array of binary values</span>
  202. <span class="sd"> size: {int} -- size of binary array values</span>
  203. <span class="sd"> Example:</span>
  204. <span class="sd"> &gt;&gt;&gt; from macop.solutions.discrete import IntegerSolution</span>
  205. <span class="sd"> &gt;&gt;&gt; import numpy as np</span>
  206. <span class="sd"> &gt;&gt;&gt; np.random.seed(42)</span>
  207. <span class="sd"> &gt;&gt;&gt; data = np.random.randint(5, size=10)</span>
  208. <span class="sd"> &gt;&gt;&gt; solution = IntegerSolution(data, 10)</span>
  209. <span class="sd"> &gt;&gt;&gt; sum(solution._data)</span>
  210. <span class="sd"> 28</span>
  211. <span class="sd"> &gt;&gt;&gt; solution_copy = solution.clone()</span>
  212. <span class="sd"> &gt;&gt;&gt; all(solution_copy._data == solution._data)</span>
  213. <span class="sd"> True</span>
  214. <span class="sd"> &quot;&quot;&quot;</span>
  215. <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  216. <div class="viewcode-block" id="IntegerSolution.random"><a class="viewcode-back" href="../../../macop/macop.solutions.discrete.html#macop.solutions.discrete.IntegerSolution.random">[docs]</a> <span class="nd">@staticmethod</span>
  217. <span class="k">def</span> <span class="nf">random</span><span class="p">(</span><span class="n">size</span><span class="p">,</span> <span class="n">validator</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
  218. <span class="sd">&quot;&quot;&quot;</span>
  219. <span class="sd"> Intialize integer array with use of validator to generate valid random solution</span>
  220. <span class="sd"> Args:</span>
  221. <span class="sd"> size: {int} -- expected solution size to generate</span>
  222. <span class="sd"> validator: {function} -- specific function which validates or not a solution (if None, not validation is applied)</span>
  223. <span class="sd"> Returns:</span>
  224. <span class="sd"> {IntegerSolution} -- new generated integer solution</span>
  225. <span class="sd"> Example:</span>
  226. <span class="sd"> &gt;&gt;&gt; from macop.solutions.discrete import IntegerSolution</span>
  227. <span class="sd"> &gt;&gt;&gt; import numpy as np</span>
  228. <span class="sd"> &gt;&gt;&gt; np.random.seed(42)</span>
  229. <span class="sd"> &gt;&gt;&gt; validator = lambda solution: True if sum(solution._data) &gt; 5 else False</span>
  230. <span class="sd"> &gt;&gt;&gt; solution = IntegerSolution.random(5, validator)</span>
  231. <span class="sd"> &gt;&gt;&gt; sum(solution._data) &gt; 10</span>
  232. <span class="sd"> True</span>
  233. <span class="sd"> &quot;&quot;&quot;</span>
  234. <span class="n">data</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">randint</span><span class="p">(</span><span class="n">size</span><span class="p">,</span> <span class="n">size</span><span class="o">=</span><span class="n">size</span><span class="p">)</span>
  235. <span class="n">solution</span> <span class="o">=</span> <span class="n">IntegerSolution</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  236. <span class="k">if</span> <span class="ow">not</span> <span class="n">validator</span><span class="p">:</span>
  237. <span class="k">return</span> <span class="n">solution</span>
  238. <span class="k">while</span> <span class="ow">not</span> <span class="n">validator</span><span class="p">(</span><span class="n">solution</span><span class="p">):</span>
  239. <span class="n">data</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">randint</span><span class="p">(</span><span class="n">size</span><span class="p">,</span> <span class="n">size</span><span class="o">=</span><span class="n">size</span><span class="p">)</span>
  240. <span class="n">solution</span> <span class="o">=</span> <span class="n">IntegerSolution</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">size</span><span class="p">)</span>
  241. <span class="k">return</span> <span class="n">solution</span></div>
  242. <span class="k">def</span> <span class="fm">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
  243. <span class="k">return</span> <span class="sa">f</span><span class="s2">&quot;Integer solution </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_data</span><span class="si">}</span><span class="s2">&quot;</span></div>
  244. </pre></div>
  245. </div>
  246. </div>
  247. <footer>
  248. <hr/>
  249. <div role="contentinfo">
  250. <p>
  251. &copy; Copyright 2020, Jérôme BUISINE
  252. </p>
  253. </div>
  254. 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>.
  255. </footer>
  256. </div>
  257. </div>
  258. </section>
  259. </div>
  260. <script type="text/javascript">
  261. jQuery(function () {
  262. SphinxRtdTheme.Navigation.enable(true);
  263. });
  264. </script>
  265. </body>
  266. </html>