public class TSP extends Problem
Modifier and Type | Field and Description |
---|---|
double[][] |
distanceMatrix_ |
int |
numberOfCities_ |
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, precision_, problemName_, solutionType_, upperLimit_, variableType_
Constructor and Description |
---|
TSP(java.lang.String filename)
Creates a new TSP problem instance.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate(Solution solution)
Evaluates a solution
|
void |
readProblem(java.lang.String fileName) |
evaluateConstraints, getLength, getLowerLimit, getName, getNumberOfBits, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getPrecision, getPrecision, getSolutionType, getUpperLimit, setnumberOfObjectives, setNumberOfVariables, setPrecision, setSolutionType
public int numberOfCities_
public double[][] distanceMatrix_
public TSP(java.lang.String filename) throws java.io.IOException, java.lang.ClassNotFoundException
filename
- The file containing the definition of the problemjava.io.IOException
java.lang.ClassNotFoundException