aboutsummaryrefslogtreecommitdiffstats
path: root/doc/jcgp/backend/modules/problem/TestCaseProblem.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/jcgp/backend/modules/problem/TestCaseProblem.html')
-rw-r--r--doc/jcgp/backend/modules/problem/TestCaseProblem.html39
1 files changed, 34 insertions, 5 deletions
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>&nbsp;</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>&nbsp;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&nbsp;file,
<a href="../../../../jcgp/backend/resources/ModifiableResources.html" title="class in jcgp.backend.resources">ModifiableResources</a>&nbsp;resources)</code>
@@ -235,7 +242,7 @@ extends <a href="../../../../jcgp/backend/modules/problem/Problem.html" title="c
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;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&nbsp;void&nbsp;parseProblemData(java.io.File&nbsp;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&nbsp;int&nbsp;hasImprovement(<a href="../../../../jcgp/backend/population/Population.html" title="class in jcgp.backend.population">Population</a>&nbsp;population)</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<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>&nbsp;in class&nbsp;<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>