public class RepairDoubleSolutionAtRandom extends Object implements RepairDoubleSolution
| Constructor and Description |
|---|
RepairDoubleSolutionAtRandom()
Constructor
|
RepairDoubleSolutionAtRandom(BoundedRandomGenerator<Double> randomGenerator)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
repairSolutionVariableValue(double value,
double lowerBound,
double upperBound)
Checks if the value is between its bounds; if not, a random value between the limits is returned
|
public RepairDoubleSolutionAtRandom()
public RepairDoubleSolutionAtRandom(BoundedRandomGenerator<Double> randomGenerator)
public double repairSolutionVariableValue(double value,
double lowerBound,
double upperBound)
repairSolutionVariableValue in interface RepairDoubleSolutionvalue - The value to be checkedlowerBound - upperBound - Copyright © 2018. All rights reserved.