Skip to content

Commit

Permalink
deploy: 2f9083b
Browse files Browse the repository at this point in the history
  • Loading branch information
SevgiAkten committed Nov 12, 2024
1 parent 08990e0 commit aa49077
Show file tree
Hide file tree
Showing 96 changed files with 892 additions and 224 deletions.
7 changes: 7 additions & 0 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../pycellga.html#optimizer">Optimizer</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.Result"><code class="docutils literal notranslate"><span class="pre">Result</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.Result.__init__"><code class="docutils literal notranslate"><span class="pre">Result.__init__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.Result.chromosome"><code class="docutils literal notranslate"><span class="pre">Result.chromosome</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.Result.fitness_value"><code class="docutils literal notranslate"><span class="pre">Result.fitness_value</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.Result.generation_found"><code class="docutils literal notranslate"><span class="pre">Result.generation_found</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.alpha_cga"><code class="docutils literal notranslate"><span class="pre">alpha_cga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.ccga"><code class="docutils literal notranslate"><span class="pre">ccga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../pycellga.html#pycellga.optimizer.cga"><code class="docutils literal notranslate"><span class="pre">cga()</span></code></a></li>
Expand Down
7 changes: 7 additions & 0 deletions _modules/pycellga/byte_operators.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../pycellga.html#optimizer">Optimizer</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.Result"><code class="docutils literal notranslate"><span class="pre">Result</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.Result.__init__"><code class="docutils literal notranslate"><span class="pre">Result.__init__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.Result.chromosome"><code class="docutils literal notranslate"><span class="pre">Result.chromosome</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.Result.fitness_value"><code class="docutils literal notranslate"><span class="pre">Result.fitness_value</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.Result.generation_found"><code class="docutils literal notranslate"><span class="pre">Result.generation_found</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.alpha_cga"><code class="docutils literal notranslate"><span class="pre">alpha_cga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.ccga"><code class="docutils literal notranslate"><span class="pre">ccga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../pycellga.html#pycellga.optimizer.cga"><code class="docutils literal notranslate"><span class="pre">cga()</span></code></a></li>
Expand Down
17 changes: 14 additions & 3 deletions _modules/pycellga/example/example_alpha_cga.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../pycellga.html#optimizer">Optimizer</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result"><code class="docutils literal notranslate"><span class="pre">Result</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.__init__"><code class="docutils literal notranslate"><span class="pre">Result.__init__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.chromosome"><code class="docutils literal notranslate"><span class="pre">Result.chromosome</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.fitness_value"><code class="docutils literal notranslate"><span class="pre">Result.fitness_value</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.generation_found"><code class="docutils literal notranslate"><span class="pre">Result.generation_found</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.alpha_cga"><code class="docutils literal notranslate"><span class="pre">alpha_cga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.ccga"><code class="docutils literal notranslate"><span class="pre">ccga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.cga"><code class="docutils literal notranslate"><span class="pre">cga()</span></code></a></li>
Expand Down Expand Up @@ -384,12 +391,14 @@ <h1>Source code for pycellga.example.example_alpha_cga</h1><div class="highlight
<span class="sd"> </span>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> tuple</span>
<span class="sd"> A tuple containing the best solution chromosome and its corresponding value.</span>
<span class="sd"> Result</span>
<span class="sd"> A Result instance containing the best solution&#39;s chromosome, its fitness value, </span>
<span class="sd"> and the generation in which it was found.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># Create an instance of the problem</span>
<span class="n">problem_instance</span> <span class="o">=</span> <span class="n">ExampleProblem</span><span class="p">()</span>

<span class="c1"># Run the optimizer and get the result</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">optimizer</span><span class="o">.</span><span class="n">alpha_cga</span><span class="p">(</span>
<span class="n">n_cols</span><span class="o">=</span><span class="mi">5</span><span class="p">,</span>
<span class="n">n_rows</span><span class="o">=</span><span class="mi">5</span><span class="p">,</span>
Expand All @@ -408,7 +417,9 @@ <h1>Source code for pycellga.example.example_alpha_cga</h1><div class="highlight
<span class="p">)</span>

<span class="c1"># Print the results</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best solution:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">Best solution chromosome:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span></div>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best solution chromosome:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">chromosome</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best fitness value:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">fitness_value</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Generation found:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">generation_found</span><span class="p">)</span></div>


<span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">&quot;__main__&quot;</span><span class="p">:</span>
Expand Down
17 changes: 14 additions & 3 deletions _modules/pycellga/example/example_ccga.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../pycellga.html#optimizer">Optimizer</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result"><code class="docutils literal notranslate"><span class="pre">Result</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.__init__"><code class="docutils literal notranslate"><span class="pre">Result.__init__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.chromosome"><code class="docutils literal notranslate"><span class="pre">Result.chromosome</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.fitness_value"><code class="docutils literal notranslate"><span class="pre">Result.fitness_value</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.generation_found"><code class="docutils literal notranslate"><span class="pre">Result.generation_found</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.alpha_cga"><code class="docutils literal notranslate"><span class="pre">alpha_cga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.ccga"><code class="docutils literal notranslate"><span class="pre">ccga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.cga"><code class="docutils literal notranslate"><span class="pre">cga()</span></code></a></li>
Expand Down Expand Up @@ -382,12 +389,14 @@ <h1>Source code for pycellga.example.example_ccga</h1><div class="highlight"><pr
<span class="sd"> </span>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> tuple</span>
<span class="sd"> A tuple containing the best solution chromosome and its corresponding value.</span>
<span class="sd"> Result</span>
<span class="sd"> A Result instance containing the best solution&#39;s chromosome, its fitness value, </span>
<span class="sd"> and the generation in which it was found.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># Create an instance of the problem</span>
<span class="n">problem_instance</span> <span class="o">=</span> <span class="n">ExampleProblem</span><span class="p">()</span>

<span class="c1"># Run the optimizer and get the result</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">optimizer</span><span class="o">.</span><span class="n">ccga</span><span class="p">(</span>
<span class="n">n_cols</span><span class="o">=</span><span class="mi">5</span><span class="p">,</span>
<span class="n">n_rows</span><span class="o">=</span><span class="mi">5</span><span class="p">,</span>
Expand All @@ -401,7 +410,9 @@ <h1>Source code for pycellga.example.example_ccga</h1><div class="highlight"><pr
<span class="p">)</span>

<span class="c1"># Print the results</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best solution:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">Best solution chromosome:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span></div>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best solution chromosome:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">chromosome</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best fitness value:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">fitness_value</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Generation found:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">generation_found</span><span class="p">)</span></div>


<span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">&quot;__main__&quot;</span><span class="p">:</span>
Expand Down
16 changes: 13 additions & 3 deletions _modules/pycellga/example/example_cga.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../../pycellga.html#optimizer">Optimizer</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result"><code class="docutils literal notranslate"><span class="pre">Result</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.__init__"><code class="docutils literal notranslate"><span class="pre">Result.__init__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.chromosome"><code class="docutils literal notranslate"><span class="pre">Result.chromosome</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.fitness_value"><code class="docutils literal notranslate"><span class="pre">Result.fitness_value</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.Result.generation_found"><code class="docutils literal notranslate"><span class="pre">Result.generation_found</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.alpha_cga"><code class="docutils literal notranslate"><span class="pre">alpha_cga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.ccga"><code class="docutils literal notranslate"><span class="pre">ccga()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="../../../pycellga.html#pycellga.optimizer.cga"><code class="docutils literal notranslate"><span class="pre">cga()</span></code></a></li>
Expand Down Expand Up @@ -383,8 +390,9 @@ <h1>Source code for pycellga.example.example_cga</h1><div class="highlight"><pre
<span class="sd"> </span>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> tuple</span>
<span class="sd"> A tuple containing the best solution chromosome and its corresponding value.</span>
<span class="sd"> Result</span>
<span class="sd"> A Result instance containing the best solution&#39;s chromosome, its fitness value, </span>
<span class="sd"> and the generation in which it was found.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># Create an instance of the problem</span>
<span class="n">problem_instance</span> <span class="o">=</span> <span class="n">ExampleProblem</span><span class="p">()</span>
Expand All @@ -407,7 +415,9 @@ <h1>Source code for pycellga.example.example_cga</h1><div class="highlight"><pre
<span class="p">)</span>

<span class="c1"># Print the results</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best solution:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">Best solution chromosome:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span></div>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best solution chromosome:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">chromosome</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Best fitness value:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">fitness_value</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Generation found:&quot;</span><span class="p">,</span> <span class="n">result</span><span class="o">.</span><span class="n">generation_found</span><span class="p">)</span></div>


<span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">&quot;__main__&quot;</span><span class="p">:</span>
Expand Down
Loading

0 comments on commit aa49077

Please sign in to comment.