Class FakeBinaryProblem
java.lang.Object
org.uma.jmetal.problem.binaryproblem.impl.AbstractBinaryProblem
org.uma.jmetal.problem.binaryproblem.impl.FakeBinaryProblem
- All Implemented Interfaces:
Serializable,BinaryProblem,Problem<BinarySolution>
Fake implementation of
BinaryProblem that does nothing. Intended to be used in unit tests- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFakeBinaryProblem(Integer numberOfVariables, int numberOfBitsPerVariable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionevaluate(BinarySolution solution) Evaluate() methodname()intintintMethods inherited from class org.uma.jmetal.problem.binaryproblem.impl.AbstractBinaryProblem
totalNumberOfBits
-
Constructor Details
-
FakeBinaryProblem
Constructor
-
-
Method Details
-
numberOfVariables
public int numberOfVariables() -
numberOfObjectives
public int numberOfObjectives() -
numberOfConstraints
public int numberOfConstraints() -
name
-
numberOfBitsPerVariable
-
createSolution
- Specified by:
createSolutionin interfaceProblem<BinarySolution>- Overrides:
createSolutionin classAbstractBinaryProblem
-
evaluate
Evaluate() method- Parameters:
solution-- Returns:
-