Class TsplibTspProblem
java.lang.Object
com.knezevic.edaf.v3.problems.permutation.TsplibTspProblem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintevaluate(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
-
TsplibTspProblem
-
-
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>
-
cityCount
public int cityCount()
-