diff options
Diffstat (limited to 'doc/jcgp/backend/modules/problem')
16 files changed, 121 insertions, 139 deletions
diff --git a/doc/jcgp/backend/modules/problem/BestFitness.html b/doc/jcgp/backend/modules/problem/BestFitness.html index 9578099..1ac19be 100644 --- a/doc/jcgp/backend/modules/problem/BestFitness.html +++ b/doc/jcgp/backend/modules/problem/BestFitness.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>BestFitness</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> @@ -120,6 +120,17 @@ var activeTableTab = "activeTableTab"; <br> <pre>public enum <span class="typeNameLabel">BestFitness</span> extends java.lang.Enum<<a href="../../../../jcgp/backend/modules/problem/BestFitness.html" title="enum in jcgp.backend.modules.problem">BestFitness</a>></pre> +<div class="block">Enum type to allow problems to indicate their fitness + orientation. + <br><br> + <code>BestFitness.HIGH</code> means high fitness values are + better than low. Conversely, <code>BestFitness.LOW</code> + signals that low fitness values indicate better fitness + than high values.</div> +<dl> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd>Eduardo Pedroni</dd> +</dl> </li> </ul> </div> diff --git a/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html b/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html index d9d3011..21bdb2b 100644 --- a/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html +++ b/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>DigitalCircuitProblem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10}; +var methods = {"i0":10,"i1":10,"i2":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -198,9 +198,9 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>int</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/DigitalCircuitProblem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> -<div class="block">Used to assert whether a given population has a chromosome that is an improvement over - the current best chromosome.</div> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/DigitalCircuitProblem.html#hasPerfectSolution-jcgp.backend.population.Population-">hasPerfectSolution</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> +<div class="block">Used to assert whether a given population contains a perfect solution + to the problem.</div> </td> </tr> <tr id="i2" class="altColor"> @@ -212,20 +212,13 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" test cases.</div> </td> </tr> -<tr id="i3" class="rowColor"> -<td class="colFirst"><code>int</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/DigitalCircuitProblem.html#perfectSolutionFound-jcgp.backend.population.Population-">perfectSolutionFound</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> -<div class="block">Used to assert whether a given population contains a perfect solution - to the problem.</div> -</td> -</tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.jcgp.backend.modules.problem.TestCaseProblem"> <!-- --> </a> <h3>Methods inherited from class jcgp.backend.modules.problem.<a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" title="class in jcgp.backend.modules.problem">TestCaseProblem</a></h3> -<code><a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#addTestCase-java.lang.String:A-java.lang.String:A-">addTestCase</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#clearTestCases--">clearTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#getTestCases--">getTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#parseProblemData-java.io.File-jcgp.backend.resources.ModifiableResources-">parseProblemData</a></code></li> +<code><a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#addTestCase-java.lang.String:A-java.lang.String:A-">addTestCase</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#clearTestCases--">clearTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#getTestCases--">getTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#parseProblemData-java.io.File-jcgp.backend.resources.ModifiableResources-">parseProblemData</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.jcgp.backend.modules.problem.Problem"> @@ -338,21 +331,21 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" </dl> </li> </ul> -<a name="perfectSolutionFound-jcgp.backend.population.Population-"> +<a name="hasPerfectSolution-jcgp.backend.population.Population-"> <!-- --> </a> -<ul class="blockList"> +<ul class="blockListLast"> <li class="blockList"> -<h4>perfectSolutionFound</h4> -<pre>public int perfectSolutionFound(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> -<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../jcgp/backend/modules/problem/Problem.html#perfectSolutionFound-jcgp.backend.population.Population-">Problem</a></code></span></div> +<h4>hasPerfectSolution</h4> +<pre>public int hasPerfectSolution(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasPerfectSolution-jcgp.backend.population.Population-">Problem</a></code></span></div> <div class="block">Used to assert whether a given population contains a perfect solution to the problem. It is up to the problem to define what qualifies a perfect solution, as some problems (subject ones such as music and art evolution, for example) might not have perfect solutions at all.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> -<dd><code><a href="../../../../jcgp/backend/modules/problem/Problem.html#perfectSolutionFound-jcgp.backend.population.Population-">perfectSolutionFound</a></code> in class <code><a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></dd> +<dd><code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasPerfectSolution-jcgp.backend.population.Population-">hasPerfectSolution</a></code> in class <code><a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>population</code> - the population to search through for a perfect chromosome.</dd> <dt><span class="returnLabel">Returns:</span></dt> @@ -360,28 +353,6 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" </dl> </li> </ul> -<a name="hasImprovement-jcgp.backend.population.Population-"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>hasImprovement</h4> -<pre>public int hasImprovement(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> -<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasImprovement-jcgp.backend.population.Population-">Problem</a></code></span></div> -<div class="block">Used to assert whether a given population has a chromosome that is an improvement over - the current best chromosome. A typical implementation of this method - will simply compare chromosome fitness values, though the problem type - is free to implement this in any way.</div> -<dl> -<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> -<dd><code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a></code> in class <code><a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></dd> -<dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>population</code> - the population potentially containing a fitter chromosome.</dd> -<dt><span class="returnLabel">Returns:</span></dt> -<dd>the index of the first chromosome in the population that is an improvement, -1 if none is found.</dd> -</dl> -</li> -</ul> </li> </ul> </li> diff --git a/doc/jcgp/backend/modules/problem/Problem.html b/doc/jcgp/backend/modules/problem/Problem.html index 0d08b2a..2e43445 100644 --- a/doc/jcgp/backend/modules/problem/Problem.html +++ b/doc/jcgp/backend/modules/problem/Problem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Problem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> @@ -212,6 +212,13 @@ extends <a href="../../../../jcgp/backend/modules/Module.html" title="class in j </td> </tr> <tr id="i6" class="altColor"> +<td class="colFirst"><code>abstract int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasPerfectSolution-jcgp.backend.population.Population-">hasPerfectSolution</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> +<div class="block">Used to assert whether a given population contains a perfect solution + to the problem.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/Problem.html#parseProblemData-java.io.File-jcgp.backend.resources.ModifiableResources-">parseProblemData</a></span>(java.io.File file, <a href="../../../../jcgp/backend/resources/ModifiableResources.html" title="class in jcgp.backend.resources">ModifiableResources</a> resources)</code> @@ -219,13 +226,6 @@ extends <a href="../../../../jcgp/backend/modules/Module.html" title="class in j set up the problem type instance appropriately.</div> </td> </tr> -<tr id="i7" class="rowColor"> -<td class="colFirst"><code>abstract int</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/Problem.html#perfectSolutionFound-jcgp.backend.population.Population-">perfectSolutionFound</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> -<div class="block">Used to assert whether a given population contains a perfect solution - to the problem.</div> -</td> -</tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/Problem.html#reset--">reset</a></span>()</code> @@ -311,13 +311,13 @@ extends <a href="../../../../jcgp/backend/modules/Module.html" title="class in j </dl> </li> </ul> -<a name="perfectSolutionFound-jcgp.backend.population.Population-"> +<a name="hasPerfectSolution-jcgp.backend.population.Population-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>perfectSolutionFound</h4> -<pre>public abstract int perfectSolutionFound(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> +<h4>hasPerfectSolution</h4> +<pre>public abstract int hasPerfectSolution(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> <div class="block">Used to assert whether a given population contains a perfect solution to the problem. It is up to the problem to define what qualifies a perfect solution, as some problems (subject ones such as music and diff --git a/doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html b/doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html index 1ab3746..5f9fbd7 100644 --- a/doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html +++ b/doc/jcgp/backend/modules/problem/SymbolicRegressionProblem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>SymbolicRegressionProblem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10}; +var methods = {"i0":10,"i1":10,"i2":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -211,9 +211,9 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>int</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/SymbolicRegressionProblem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> -<div class="block">Used to assert whether a given population has a chromosome that is an improvement over - the current best chromosome.</div> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/SymbolicRegressionProblem.html#hasPerfectSolution-jcgp.backend.population.Population-">hasPerfectSolution</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> +<div class="block">Used to assert whether a given population contains a perfect solution + to the problem.</div> </td> </tr> <tr id="i2" class="altColor"> @@ -225,20 +225,13 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" test cases.</div> </td> </tr> -<tr id="i3" class="rowColor"> -<td class="colFirst"><code>int</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/SymbolicRegressionProblem.html#perfectSolutionFound-jcgp.backend.population.Population-">perfectSolutionFound</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> -<div class="block">Used to assert whether a given population contains a perfect solution - to the problem.</div> -</td> -</tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.jcgp.backend.modules.problem.TestCaseProblem"> <!-- --> </a> <h3>Methods inherited from class jcgp.backend.modules.problem.<a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" title="class in jcgp.backend.modules.problem">TestCaseProblem</a></h3> -<code><a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#addTestCase-java.lang.String:A-java.lang.String:A-">addTestCase</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#clearTestCases--">clearTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#getTestCases--">getTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#parseProblemData-java.io.File-jcgp.backend.resources.ModifiableResources-">parseProblemData</a></code></li> +<code><a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#addTestCase-java.lang.String:A-java.lang.String:A-">addTestCase</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#clearTestCases--">clearTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#getTestCases--">getTestCases</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a>, <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#parseProblemData-java.io.File-jcgp.backend.resources.ModifiableResources-">parseProblemData</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.jcgp.backend.modules.problem.Problem"> @@ -351,21 +344,21 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" </dl> </li> </ul> -<a name="perfectSolutionFound-jcgp.backend.population.Population-"> +<a name="hasPerfectSolution-jcgp.backend.population.Population-"> <!-- --> </a> -<ul class="blockList"> +<ul class="blockListLast"> <li class="blockList"> -<h4>perfectSolutionFound</h4> -<pre>public int perfectSolutionFound(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> -<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../jcgp/backend/modules/problem/Problem.html#perfectSolutionFound-jcgp.backend.population.Population-">Problem</a></code></span></div> +<h4>hasPerfectSolution</h4> +<pre>public int hasPerfectSolution(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasPerfectSolution-jcgp.backend.population.Population-">Problem</a></code></span></div> <div class="block">Used to assert whether a given population contains a perfect solution to the problem. It is up to the problem to define what qualifies a perfect solution, as some problems (subject ones such as music and art evolution, for example) might not have perfect solutions at all.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> -<dd><code><a href="../../../../jcgp/backend/modules/problem/Problem.html#perfectSolutionFound-jcgp.backend.population.Population-">perfectSolutionFound</a></code> in class <code><a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></dd> +<dd><code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasPerfectSolution-jcgp.backend.population.Population-">hasPerfectSolution</a></code> in class <code><a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>population</code> - the population to search through for a perfect chromosome.</dd> <dt><span class="returnLabel">Returns:</span></dt> @@ -373,28 +366,6 @@ extends <a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html" </dl> </li> </ul> -<a name="hasImprovement-jcgp.backend.population.Population-"> -<!-- --> -</a> -<ul class="blockListLast"> -<li class="blockList"> -<h4>hasImprovement</h4> -<pre>public int hasImprovement(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> -<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasImprovement-jcgp.backend.population.Population-">Problem</a></code></span></div> -<div class="block">Used to assert whether a given population has a chromosome that is an improvement over - the current best chromosome. A typical implementation of this method - will simply compare chromosome fitness values, though the problem type - is free to implement this in any way.</div> -<dl> -<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> -<dd><code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a></code> in class <code><a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></dd> -<dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>population</code> - the population potentially containing a fitter chromosome.</dd> -<dt><span class="returnLabel">Returns:</span></dt> -<dd>the index of the first chromosome in the population that is an improvement, -1 if none is found.</dd> -</dl> -</li> -</ul> </li> </ul> </li> diff --git a/doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html b/doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html index 5373cf2..0fc7af7 100644 --- a/doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html +++ b/doc/jcgp/backend/modules/problem/TestCaseProblem.TestCase.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>TestCaseProblem.TestCase</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/TestCaseProblem.html b/doc/jcgp/backend/modules/problem/TestCaseProblem.html index 663bc0a..b0abde9 100644 --- a/doc/jcgp/backend/modules/problem/TestCaseProblem.html +++ b/doc/jcgp/backend/modules/problem/TestCaseProblem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>TestCaseProblem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -222,6 +222,13 @@ extends <a href="../../../../jcgp/backend/modules/problem/Problem.html" title="c <td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#getTestCases--">getTestCases</a></span>()</code> </td> </tr> <tr id="i3" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a></span>(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</code> +<div class="block">Used to assert whether a given population has a chromosome that is an improvement over + the current best chromosome.</div> +</td> +</tr> +<tr id="i4" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../jcgp/backend/modules/problem/TestCaseProblem.html#parseProblemData-java.io.File-jcgp.backend.resources.ModifiableResources-">parseProblemData</a></span>(java.io.File file, <a href="../../../../jcgp/backend/resources/ModifiableResources.html" title="class in jcgp.backend.resources">ModifiableResources</a> resources)</code> @@ -235,7 +242,7 @@ extends <a href="../../../../jcgp/backend/modules/problem/Problem.html" title="c <!-- --> </a> <h3>Methods inherited from class jcgp.backend.modules.problem.<a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></h3> -<code><a href="../../../../jcgp/backend/modules/problem/Problem.html#evaluate-jcgp.backend.population.Population-jcgp.backend.resources.Resources-">evaluate</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getBestFitness--">getBestFitness</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getFileExtension--">getFileExtension</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getFitnessOrientation--">getFitnessOrientation</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getFunctionSet--">getFunctionSet</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#perfectSolutionFound-jcgp.backend.population.Population-">perfectSolutionFound</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#reset--">reset</a></code></li> +<code><a href="../../../../jcgp/backend/modules/problem/Problem.html#evaluate-jcgp.backend.population.Population-jcgp.backend.resources.Resources-">evaluate</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getBestFitness--">getBestFitness</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getFileExtension--">getFileExtension</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getFitnessOrientation--">getFitnessOrientation</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#getFunctionSet--">getFunctionSet</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#hasPerfectSolution-jcgp.backend.population.Population-">hasPerfectSolution</a>, <a href="../../../../jcgp/backend/modules/problem/Problem.html#reset--">reset</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.jcgp.backend.modules.Module"> @@ -331,7 +338,7 @@ extends <a href="../../../../jcgp/backend/modules/problem/Problem.html" title="c <a name="parseProblemData-java.io.File-jcgp.backend.resources.ModifiableResources-"> <!-- --> </a> -<ul class="blockListLast"> +<ul class="blockList"> <li class="blockList"> <h4>parseProblemData</h4> <pre>public void parseProblemData(java.io.File file, @@ -354,6 +361,28 @@ extends <a href="../../../../jcgp/backend/modules/problem/Problem.html" title="c </dl> </li> </ul> +<a name="hasImprovement-jcgp.backend.population.Population-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>hasImprovement</h4> +<pre>public int hasImprovement(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a> population)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasImprovement-jcgp.backend.population.Population-">Problem</a></code></span></div> +<div class="block">Used to assert whether a given population has a chromosome that is an improvement over + the current best chromosome. A typical implementation of this method + will simply compare chromosome fitness values, though the problem type + is free to implement this in any way.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../jcgp/backend/modules/problem/Problem.html#hasImprovement-jcgp.backend.population.Population-">hasImprovement</a></code> in class <code><a href="../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>population</code> - the population potentially containing a fitter chromosome.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the index of the first chromosome in the population that is an improvement, -1 if none is found.</dd> +</dl> +</li> +</ul> </li> </ul> </li> diff --git a/doc/jcgp/backend/modules/problem/class-use/BestFitness.html b/doc/jcgp/backend/modules/problem/class-use/BestFitness.html index 3e1aec5..a16f095 100644 --- a/doc/jcgp/backend/modules/problem/class-use/BestFitness.html +++ b/doc/jcgp/backend/modules/problem/class-use/BestFitness.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Uses of Class jcgp.backend.modules.problem.BestFitness</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html b/doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html index 0a41224..6c55d92 100644 --- a/doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html +++ b/doc/jcgp/backend/modules/problem/class-use/DigitalCircuitProblem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Uses of Class jcgp.backend.modules.problem.DigitalCircuitProblem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/class-use/Problem.html b/doc/jcgp/backend/modules/problem/class-use/Problem.html index df1956b..b4e6bb4 100644 --- a/doc/jcgp/backend/modules/problem/class-use/Problem.html +++ b/doc/jcgp/backend/modules/problem/class-use/Problem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Uses of Class jcgp.backend.modules.problem.Problem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> @@ -110,17 +110,8 @@ <td class="colFirst"><code><a href="../../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></code></td> <td class="colLast"><span class="typeNameLabel">JCGP.</span><code><span class="memberNameLink"><a href="../../../../../jcgp/JCGP.html#getProblem--">getProblem</a></span>()</code> </td> </tr> -</tbody> -</table> -<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> -<caption><span>Methods in <a href="../../../../../jcgp/package-summary.html">jcgp</a> that return types with arguments of type <a href="../../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a></span><span class="tabEnd"> </span></caption> -<tr> -<th class="colFirst" scope="col">Modifier and Type</th> -<th class="colLast" scope="col">Method and Description</th> -</tr> -<tbody> -<tr class="altColor"> -<td class="colFirst"><code>java.util.ArrayList<<a href="../../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a>></code></td> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../jcgp/backend/modules/problem/Problem.html" title="class in jcgp.backend.modules.problem">Problem</a>[]</code></td> <td class="colLast"><span class="typeNameLabel">JCGP.</span><code><span class="memberNameLink"><a href="../../../../../jcgp/JCGP.html#getProblems--">getProblems</a></span>()</code> </td> </tr> </tbody> diff --git a/doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html b/doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html index 6347b53..b0d63e1 100644 --- a/doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html +++ b/doc/jcgp/backend/modules/problem/class-use/SymbolicRegressionProblem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Uses of Class jcgp.backend.modules.problem.SymbolicRegressionProblem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html index 51bc5c0..4ce2d5e 100644 --- a/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html +++ b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.TestCase.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Uses of Class jcgp.backend.modules.problem.TestCaseProblem.TestCase</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html index 2924adc..116f348 100644 --- a/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html +++ b/doc/jcgp/backend/modules/problem/class-use/TestCaseProblem.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Uses of Class jcgp.backend.modules.problem.TestCaseProblem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/package-frame.html b/doc/jcgp/backend/modules/problem/package-frame.html index 7089f7c..f495522 100644 --- a/doc/jcgp/backend/modules/problem/package-frame.html +++ b/doc/jcgp/backend/modules/problem/package-frame.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>jcgp.backend.modules.problem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/package-summary.html b/doc/jcgp/backend/modules/problem/package-summary.html index 381db7a..4c80838 100644 --- a/doc/jcgp/backend/modules/problem/package-summary.html +++ b/doc/jcgp/backend/modules/problem/package-summary.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>jcgp.backend.modules.problem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> @@ -130,7 +130,10 @@ <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../jcgp/backend/modules/problem/BestFitness.html" title="enum in jcgp.backend.modules.problem">BestFitness</a></td> -<td class="colLast"> </td> +<td class="colLast"> +<div class="block">Enum type to allow problems to indicate their fitness + orientation.</div> +</td> </tr> </tbody> </table> diff --git a/doc/jcgp/backend/modules/problem/package-tree.html b/doc/jcgp/backend/modules/problem/package-tree.html index 1ff07b5..0ac74b9 100644 --- a/doc/jcgp/backend/modules/problem/package-tree.html +++ b/doc/jcgp/backend/modules/problem/package-tree.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>jcgp.backend.modules.problem Class Hierarchy</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> diff --git a/doc/jcgp/backend/modules/problem/package-use.html b/doc/jcgp/backend/modules/problem/package-use.html index 32be276..dc54c41 100644 --- a/doc/jcgp/backend/modules/problem/package-use.html +++ b/doc/jcgp/backend/modules/problem/package-use.html @@ -2,9 +2,9 @@ <!-- NewPage --> <html lang="en"> <head> -<!-- Generated by javadoc (1.8.0_05) on Tue May 06 14:28:07 BST 2014 --> +<!-- Generated by javadoc (1.8.0_05) on Mon May 12 23:05:45 BST 2014 --> <title>Uses of Package jcgp.backend.modules.problem</title> -<meta name="date" content="2014-05-06"> +<meta name="date" content="2014-05-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> @@ -140,7 +140,10 @@ </tr> <tbody> <tr class="altColor"> -<td class="colOne"><a href="../../../../jcgp/backend/modules/problem/class-use/BestFitness.html#jcgp.backend.modules.problem">BestFitness</a> </td> +<td class="colOne"><a href="../../../../jcgp/backend/modules/problem/class-use/BestFitness.html#jcgp.backend.modules.problem">BestFitness</a> +<div class="block">Enum type to allow problems to indicate their fitness + orientation.</div> +</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../jcgp/backend/modules/problem/class-use/Problem.html#jcgp.backend.modules.problem">Problem</a> @@ -188,7 +191,10 @@ </tr> <tbody> <tr class="altColor"> -<td class="colOne"><a href="../../../../jcgp/backend/modules/problem/class-use/BestFitness.html#jcgp.backend.resources">BestFitness</a> </td> +<td class="colOne"><a href="../../../../jcgp/backend/modules/problem/class-use/BestFitness.html#jcgp.backend.resources">BestFitness</a> +<div class="block">Enum type to allow problems to indicate their fitness + orientation.</div> +</td> </tr> </tbody> </table> |