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) -
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) -
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:
-