Make write-once private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1078444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3782364dc7
commit
b20cc34b67
|
@ -827,7 +827,7 @@ public class CMAESOptimizer extends
|
||||||
private class FitnessFunction {
|
private class FitnessFunction {
|
||||||
|
|
||||||
/** Optional bounds for the objective variables */
|
/** Optional bounds for the objective variables */
|
||||||
private double[][] boundaries;
|
private final double[][] boundaries;
|
||||||
/** Determines the penalty for boundary violations */
|
/** Determines the penalty for boundary violations */
|
||||||
private double valueRange = 1.0;
|
private double valueRange = 1.0;
|
||||||
/**
|
/**
|
||||||
|
@ -836,7 +836,7 @@ public class CMAESOptimizer extends
|
||||||
*/
|
*/
|
||||||
private boolean isRepairMode = true;
|
private boolean isRepairMode = true;
|
||||||
/** Flag indicating the optimization goal. */
|
/** Flag indicating the optimization goal. */
|
||||||
private boolean isMinimize = true;
|
private final boolean isMinimize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param boundaries
|
* @param boundaries
|
||||||
|
|
Loading…
Reference in New Issue