Skip to content

Commit

Permalink
deploy: ab871da
Browse files Browse the repository at this point in the history
  • Loading branch information
SevgiAkten committed Aug 14, 2024
1 parent 0de267b commit f95462f
Show file tree
Hide file tree
Showing 196 changed files with 9,605 additions and 9,498 deletions.
282 changes: 141 additions & 141 deletions _modules/index.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>src.byte_operators &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<title>pycellga.byte_operators &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />

Expand Down Expand Up @@ -61,7 +61,7 @@
<ul class="wy-breadcrumbs">
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../index.html">Module code</a></li>
<li class="breadcrumb-item active">src.byte_operators</li>
<li class="breadcrumb-item active">pycellga.byte_operators</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand All @@ -70,11 +70,11 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for src.byte_operators</h1><div class="highlight"><pre>
<h1>Source code for pycellga.byte_operators</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">ctypes</span>

<div class="viewcode-block" id="float_to_bits">
<a class="viewcode-back" href="../../src.html#src.byte_operators.float_to_bits">[docs]</a>
<a class="viewcode-back" href="../../pycellga.html#pycellga.byte_operators.float_to_bits">[docs]</a>
<span class="k">def</span> <span class="nf">float_to_bits</span><span class="p">(</span><span class="n">float_number</span><span class="p">:</span> <span class="nb">float</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">[</span><span class="nb">int</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Convert a float to its bit representation.</span>
Expand All @@ -96,7 +96,7 @@ <h1>Source code for src.byte_operators</h1><div class="highlight"><pre>


<div class="viewcode-block" id="bits_to_float">
<a class="viewcode-back" href="../../src.html#src.byte_operators.bits_to_float">[docs]</a>
<a class="viewcode-back" href="../../pycellga.html#pycellga.byte_operators.bits_to_float">[docs]</a>
<span class="k">def</span> <span class="nf">bits_to_float</span><span class="p">(</span><span class="n">bit_list</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">int</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="nb">float</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Convert a bit representation to its float value.</span>
Expand All @@ -120,7 +120,7 @@ <h1>Source code for src.byte_operators</h1><div class="highlight"><pre>


<div class="viewcode-block" id="floats_to_bits">
<a class="viewcode-back" href="../../src.html#src.byte_operators.floats_to_bits">[docs]</a>
<a class="viewcode-back" href="../../pycellga.html#pycellga.byte_operators.floats_to_bits">[docs]</a>
<span class="k">def</span> <span class="nf">floats_to_bits</span><span class="p">(</span><span class="n">float_list</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">float</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">[</span><span class="nb">int</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Convert a list of floats to their combined bit representation.</span>
Expand All @@ -144,7 +144,7 @@ <h1>Source code for src.byte_operators</h1><div class="highlight"><pre>


<div class="viewcode-block" id="bits_to_floats">
<a class="viewcode-back" href="../../src.html#src.byte_operators.bits_to_floats">[docs]</a>
<a class="viewcode-back" href="../../pycellga.html#pycellga.byte_operators.bits_to_floats">[docs]</a>
<span class="k">def</span> <span class="nf">bits_to_floats</span><span class="p">(</span><span class="n">bit_list</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">int</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">[</span><span class="nb">float</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Convert a combined bit representation back to a list of floats.</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>src.example.example_alpha_cga &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<title>pycellga.example.example_alpha_cga &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />

Expand Down Expand Up @@ -61,7 +61,7 @@
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">src.example.example_alpha_cga</li>
<li class="breadcrumb-item active">pycellga.example.example_alpha_cga</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand All @@ -70,7 +70,7 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for src.example.example_alpha_cga</h1><div class="highlight"><pre>
<h1>Source code for pycellga.example.example_alpha_cga</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="vm">__file__</span><span class="p">),</span> <span class="s1">&#39;..&#39;</span><span class="p">)))</span>
Expand All @@ -80,7 +80,7 @@ <h1>Source code for src.example.example_alpha_cga</h1><div class="highlight"><pr
<span class="kn">from</span> <span class="nn">numpy</span> <span class="kn">import</span> <span class="n">power</span> <span class="k">as</span> <span class="n">pw</span>

<div class="viewcode-block" id="ExampleProblem">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_alpha_cga.ExampleProblem">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_alpha_cga.ExampleProblem">[docs]</a>
<span class="k">class</span> <span class="nc">ExampleProblem</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Example problem class to be minimized.</span>
Expand All @@ -90,13 +90,13 @@ <h1>Source code for src.example.example_alpha_cga</h1><div class="highlight"><pr
<span class="sd"> &quot;&quot;&quot;</span>

<div class="viewcode-block" id="ExampleProblem.__init__">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_alpha_cga.ExampleProblem.__init__">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_alpha_cga.ExampleProblem.__init__">[docs]</a>
<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="k">pass</span></div>


<div class="viewcode-block" id="ExampleProblem.f">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_alpha_cga.ExampleProblem.f">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_alpha_cga.ExampleProblem.f">[docs]</a>
<span class="k">def</span> <span class="nf">f</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Compute the objective function value.</span>
Expand All @@ -118,7 +118,7 @@ <h1>Source code for src.example.example_alpha_cga</h1><div class="highlight"><pr


<div class="viewcode-block" id="run_alpha_cga_example">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_alpha_cga.run_alpha_cga_example">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_alpha_cga.run_alpha_cga_example">[docs]</a>
<span class="k">def</span> <span class="nf">run_alpha_cga_example</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Run the Alpha Cellular Genetic Algorithm (alpha_cga) using the optimizer module.</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>src.example.example_ccga &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<title>pycellga.example.example_ccga &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />

Expand Down Expand Up @@ -61,7 +61,7 @@
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">src.example.example_ccga</li>
<li class="breadcrumb-item active">pycellga.example.example_ccga</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand All @@ -70,7 +70,7 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for src.example.example_ccga</h1><div class="highlight"><pre>
<h1>Source code for pycellga.example.example_ccga</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="vm">__file__</span><span class="p">),</span> <span class="s1">&#39;..&#39;</span><span class="p">)))</span>
Expand All @@ -79,7 +79,7 @@ <h1>Source code for src.example.example_ccga</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">individual</span> <span class="kn">import</span> <span class="n">GeneType</span>

<div class="viewcode-block" id="ExampleProblem">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_ccga.ExampleProblem">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_ccga.ExampleProblem">[docs]</a>
<span class="k">class</span> <span class="nc">ExampleProblem</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Example problem class to be minimized.</span>
Expand All @@ -88,13 +88,13 @@ <h1>Source code for src.example.example_ccga</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<div class="viewcode-block" id="ExampleProblem.__init__">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_ccga.ExampleProblem.__init__">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_ccga.ExampleProblem.__init__">[docs]</a>
<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="k">pass</span></div>


<div class="viewcode-block" id="ExampleProblem.f">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_ccga.ExampleProblem.f">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_ccga.ExampleProblem.f">[docs]</a>
<span class="k">def</span> <span class="nf">f</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Compute the objective function value.</span>
Expand All @@ -116,7 +116,7 @@ <h1>Source code for src.example.example_ccga</h1><div class="highlight"><pre>


<div class="viewcode-block" id="run_ccga_example">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_ccga.run_ccga_example">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_ccga.run_ccga_example">[docs]</a>
<span class="k">def</span> <span class="nf">run_ccga_example</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Run the Compact Cellular Genetic Algorithm (ccga) using the optimizer module.</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>src.example.example_cga &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<title>pycellga.example.example_cga &mdash; PYCELLGA Documentation 1.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />

Expand Down Expand Up @@ -61,7 +61,7 @@
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">src.example.example_cga</li>
<li class="breadcrumb-item active">pycellga.example.example_cga</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand All @@ -70,7 +70,7 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for src.example.example_cga</h1><div class="highlight"><pre>
<h1>Source code for pycellga.example.example_cga</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">abspath</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">dirname</span><span class="p">(</span><span class="vm">__file__</span><span class="p">),</span> <span class="s1">&#39;..&#39;</span><span class="p">)))</span>
Expand All @@ -79,7 +79,7 @@ <h1>Source code for src.example.example_cga</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">numpy</span> <span class="kn">import</span> <span class="n">power</span> <span class="k">as</span> <span class="n">pw</span>

<div class="viewcode-block" id="ExampleProblem">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_cga.ExampleProblem">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_cga.ExampleProblem">[docs]</a>
<span class="k">class</span> <span class="nc">ExampleProblem</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Example problem class to be minimized.</span>
Expand All @@ -89,13 +89,13 @@ <h1>Source code for src.example.example_cga</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<div class="viewcode-block" id="ExampleProblem.__init__">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_cga.ExampleProblem.__init__">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_cga.ExampleProblem.__init__">[docs]</a>
<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="k">pass</span></div>


<div class="viewcode-block" id="ExampleProblem.f">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_cga.ExampleProblem.f">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_cga.ExampleProblem.f">[docs]</a>
<span class="k">def</span> <span class="nf">f</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Compute the objective function value.</span>
Expand All @@ -117,7 +117,7 @@ <h1>Source code for src.example.example_cga</h1><div class="highlight"><pre>


<div class="viewcode-block" id="run_cga_example">
<a class="viewcode-back" href="../../../src.example.html#src.example.example_cga.run_cga_example">[docs]</a>
<a class="viewcode-back" href="../../../pycellga.example.html#pycellga.example.example_cga.run_cga_example">[docs]</a>
<span class="k">def</span> <span class="nf">run_cga_example</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Run the Cellular Genetic Algorithm (cga) using the optimizer module.</span>
Expand Down
Loading

0 comments on commit f95462f

Please sign in to comment.