Class SmallTspProblem
java.lang.Object
com.knezevic.edaf.v3.problems.SmallTspProblem
- All Implemented Interfaces:
Problem<PermutationVector>
Small TSP benchmark with configurable or default city coordinates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(PermutationVector genotype) Evaluates one genotype and returns its fitness.name()Problem identifier used for reporting and persistence.Returns whether this problem is min or max.violations(PermutationVector genotype) Returns validation/constraint violations for diagnostics.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.knezevic.edaf.v3.core.api.Problem
feasible, objectiveCount
-
Constructor Details
-
SmallTspProblem
public SmallTspProblem(double[][] coordinates)
-
-
Method Details
-
name
Description copied from interface:ProblemProblem identifier used for reporting and persistence.- Specified by:
namein interfaceProblem<PermutationVector>
-
objectiveSense
Description copied from interface:ProblemReturns whether this problem is min or max.- Specified by:
objectiveSensein interfaceProblem<PermutationVector>
-
evaluate
Description copied from interface:ProblemEvaluates one genotype and returns its fitness.- Specified by:
evaluatein interfaceProblem<PermutationVector>
-
violations
Description copied from interface:ProblemReturns validation/constraint violations for diagnostics.- Specified by:
violationsin interfaceProblem<PermutationVector>
-