This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch feature__MATH-1563__genetic_algorithm
in repository https://gitbox.apache.org/repos/asf/commons-math.git


The following commit(s) were added to 
refs/heads/feature__MATH-1563__genetic_algorithm by this push:
     new 663caaa  Unused field (example applications).
663caaa is described below

commit 663caaab3681853b7d7bb1ad5d3e46a0e09a6d60
Author: Gilles Sadowski <gillese...@gmail.com>
AuthorDate: Mon Feb 7 00:56:43 2022 +0100

    Unused field (example applications).
---
 .../ga/mathfunctions/adaptive/AdaptiveMathFunctionOptimizer.java     | 4 ----
 .../ga/mathfunctions/legacy/LegacyMathFunctionOptimizer.java         | 4 ----
 .../math4/examples/ga/mathfunctions/MathFunctionOptimizer.java       | 5 -----
 .../commons/math4/examples/ga/tsp/legacy/LegacyTSPOptimizer.java     | 4 ----
 .../java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java  | 4 ----
 5 files changed, 21 deletions(-)

diff --git 
a/commons-math-examples/examples-ga/examples-ga-math-functions-adaptive/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/adaptive/AdaptiveMathFunctionOptimizer.java
 
b/commons-math-examples/examples-ga/examples-ga-math-functions-adaptive/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/adaptive/AdaptiveMathFunctionOptimizer.java
index 54352eb..3f1d71d 100644
--- 
a/commons-math-examples/examples-ga/examples-ga-math-functions-adaptive/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/adaptive/AdaptiveMathFunctionOptimizer.java
+++ 
b/commons-math-examples/examples-ga/examples-ga-math-functions-adaptive/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/adaptive/AdaptiveMathFunctionOptimizer.java
@@ -38,13 +38,9 @@ import org.slf4j.LoggerFactory;
  * genetic algorithm.
  */
 public final class AdaptiveMathFunctionOptimizer {
-
     /** length of chromosome. **/
     private static final int CHROMOSOME_LENGTH_PER_DIMENSION = 12;
 
-    /** encoding for console logger. **/
-    private static final String ENCODING = "UTF-8";
-
     /** instance of logger. **/
     private final Logger logger = 
LoggerFactory.getLogger(AdaptiveMathFunctionOptimizer.class);
 
diff --git 
a/commons-math-examples/examples-ga/examples-ga-math-functions-legacy/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/LegacyMathFunctionOptimizer.java
 
b/commons-math-examples/examples-ga/examples-ga-math-functions-legacy/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/LegacyMathFunctionOptimizer.java
index a58e575..cdc281c 100644
--- 
a/commons-math-examples/examples-ga/examples-ga-math-functions-legacy/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/LegacyMathFunctionOptimizer.java
+++ 
b/commons-math-examples/examples-ga/examples-ga-math-functions-legacy/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/LegacyMathFunctionOptimizer.java
@@ -31,13 +31,9 @@ import org.apache.commons.math3.genetics.TournamentSelection;
  * the legacy genetic algorithm.
  */
 public final class LegacyMathFunctionOptimizer {
-
     /** length of chromosome per dimension. **/
     private static final int CHROMOSOME_LENGTH_PER_DIMENSION = 12;
 
-    /** encoding for console logger. **/
-    private static final String ENCODING = "UTF-8";
-
     /**
      * Optimizes the initial population using legacy genetic algorithm.
      * @param dimension                               dimension of problem 
domain
diff --git 
a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer.java
 
b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer.java
index 1efa728..c39c2aa 100644
--- 
a/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer.java
+++ 
b/commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/MathFunctionOptimizer.java
@@ -36,13 +36,8 @@ import org.slf4j.LoggerFactory;
  */
 
 public final class MathFunctionOptimizer {
-
     /** length of chromosome. **/
     private static final int CHROMOSOME_LENGTH_PER_DIMENSION = 12;
-
-    /** encoding for console logger. **/
-    private static final String ENCODING = "UTF-8";
-
     /** instance of logger. **/
     private final Logger logger = 
LoggerFactory.getLogger(MathFunctionOptimizer.class);
 
diff --git 
a/commons-math-examples/examples-ga/examples-ga-tsp-legacy/src/main/java/org/apache/commons/math4/examples/ga/tsp/legacy/LegacyTSPOptimizer.java
 
b/commons-math-examples/examples-ga/examples-ga-tsp-legacy/src/main/java/org/apache/commons/math4/examples/ga/tsp/legacy/LegacyTSPOptimizer.java
index 9afe928..efe765b 100644
--- 
a/commons-math-examples/examples-ga/examples-ga-tsp-legacy/src/main/java/org/apache/commons/math4/examples/ga/tsp/legacy/LegacyTSPOptimizer.java
+++ 
b/commons-math-examples/examples-ga/examples-ga-tsp-legacy/src/main/java/org/apache/commons/math4/examples/ga/tsp/legacy/LegacyTSPOptimizer.java
@@ -32,10 +32,6 @@ import org.apache.commons.math3.genetics.TournamentSelection;
  * Genetic Algorithm.
  */
 public class LegacyTSPOptimizer {
-
-    /** encoding for console logger. **/
-    public static final String ENCODING = "UTF-8";
-
     /**
      * Optimizes the TSP problem.
      * @param cities                                  list of cities
diff --git 
a/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java
 
b/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java
index 59024d4..745de1b 100644
--- 
a/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java
+++ 
b/commons-math-examples/examples-ga/examples-ga-tsp/src/main/java/org/apache/commons/math4/examples/ga/tsp/TSPOptimizer.java
@@ -36,10 +36,6 @@ import org.slf4j.LoggerFactory;
  * This class represents the optimizer for traveling salesman problem.
  */
 public final class TSPOptimizer {
-
-    /** encoding for console logger. **/
-    public static final String ENCODING = "UTF-8";
-
     /** instance of logger. **/
     private final Logger logger = LoggerFactory.getLogger(TSPOptimizer.class);
 

Reply via email to