Class FakeIntegerPermutationProblem
java.lang.Object
org.uma.jmetal.problem.permutationproblem.impl.AbstractIntegerPermutationProblem
org.uma.jmetal.problem.permutationproblem.impl.FakeIntegerPermutationProblem
- All Implemented Interfaces:
Serializable,PermutationProblem<PermutationSolution<Integer>>,Problem<PermutationSolution<Integer>>
Fake class representing a integer permutation problem. Intended to be used in unit tests.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFakeIntegerPermutationProblem(int permutationLength, int numberOfObjectives) Constructor -
Method Summary
Modifier and TypeMethodDescriptionevaluate(PermutationSolution<Integer> solution) This method receives a solution, evaluates it, and returns the evaluated solution.intlength()name()intintintMethods inherited from class org.uma.jmetal.problem.permutationproblem.impl.AbstractIntegerPermutationProblem
createSolution
-
Constructor Details
-
FakeIntegerPermutationProblem
public FakeIntegerPermutationProblem(int permutationLength, int numberOfObjectives) Constructor
-
-
Method Details
-
numberOfVariables
public int numberOfVariables() -
numberOfObjectives
public int numberOfObjectives() -
numberOfConstraints
public int numberOfConstraints() -
name
-
evaluate
Description copied from interface:ProblemThis method receives a solution, evaluates it, and returns the evaluated solution.- Parameters:
solution-- Returns:
-
length
public int length()- Specified by:
lengthin interfacePermutationProblem<PermutationSolution<Integer>>- Overrides:
lengthin classAbstractIntegerPermutationProblem
-