aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp')
-rw-r--r--src/jcgp/backend/modules/es/MuPlusLambda.java2
-rw-r--r--src/jcgp/backend/resources/ModifiableResources.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/jcgp/backend/modules/es/MuPlusLambda.java b/src/jcgp/backend/modules/es/MuPlusLambda.java
index 6a6870f..c2981cb 100644
--- a/src/jcgp/backend/modules/es/MuPlusLambda.java
+++ b/src/jcgp/backend/modules/es/MuPlusLambda.java
@@ -117,7 +117,7 @@ public class MuPlusLambda extends EvolutionaryStrategy {
private void sort(Population population) {
/* Create an array with the index of each of the current parents.
* This is done to speed up the sort. No deep chromosome copies are
- * made until the algorithm is finished; instead, only indices are copied.
+ * made until the sort is finished; instead, only indices are copied.
*/
int[] parents = new int[mu.get()];
for (int i = 0; i < parents.length; i++) {
diff --git a/src/jcgp/backend/resources/ModifiableResources.java b/src/jcgp/backend/resources/ModifiableResources.java
index 5df26e2..2b0c039 100644
--- a/src/jcgp/backend/resources/ModifiableResources.java
+++ b/src/jcgp/backend/resources/ModifiableResources.java
@@ -126,7 +126,7 @@ public class ModifiableResources extends Resources {
/**
* @param seed the seed to set.
*/
- public void setSeed(int seed) {
+ public void setSeed(long seed) {
this.seed.set(seed);
}