Class FakeDoubleProblem
java.lang.Object
org.uma.jmetal.problem.doubleproblem.impl.AbstractDoubleProblem
org.uma.jmetal.problem.doubleproblem.impl.FakeDoubleProblem
- All Implemented Interfaces:
Serializable,DoubleProblem,Problem<DoubleSolution>
Fake implementation of
DoubleProblem that does nothing. Intended to be used in unit tests.- See Also:
-
Field Summary
Fields inherited from class org.uma.jmetal.problem.doubleproblem.impl.AbstractDoubleProblem
bounds, name, numberOfConstraints, numberOfObjectives -
Constructor Summary
ConstructorsConstructorDescriptionFakeDoubleProblem(int numberOfVariables, int numberOfObjectives, int numberOfConstraints) Constructor with default bounds [0.0, 1.0] for all variablesFakeDoubleProblem(int numberOfVariables, int numberOfObjectives, int numberOfConstraints, double lowerBound, double upperBound) Constructor with custom bounds for all variables -
Method Summary
Modifier and TypeMethodDescriptionevaluate(DoubleSolution solution) This method receives a solution, evaluates it, and returns the evaluated solution.Methods inherited from class org.uma.jmetal.problem.doubleproblem.impl.AbstractDoubleProblem
createSolution, name, name, numberOfConstraints, numberOfConstraints, numberOfObjectives, numberOfObjectives, numberOfVariables, variableBounds, variableBounds
-
Constructor Details
-
FakeDoubleProblem
public FakeDoubleProblem(int numberOfVariables, int numberOfObjectives, int numberOfConstraints) Constructor with default bounds [0.0, 1.0] for all variables- Parameters:
numberOfVariables- Number of variablesnumberOfObjectives- Number of objectivesnumberOfConstraints- Number of constraints
-
FakeDoubleProblem
public FakeDoubleProblem(int numberOfVariables, int numberOfObjectives, int numberOfConstraints, double lowerBound, double upperBound) Constructor with custom bounds for all variables- Parameters:
numberOfVariables- Number of variablesnumberOfObjectives- Number of objectivesnumberOfConstraints- Number of constraintslowerBound- Lower bound for all variablesupperBound- Upper bound for all variables
-
FakeDoubleProblem
public FakeDoubleProblem()
-
-
Method Details
-
evaluate
Description copied from interface:ProblemThis method receives a solution, evaluates it, and returns the evaluated solution.- Parameters:
solution-- Returns:
-