src/demo/TSP.java
void record() {
            if (totalNormalizedDistance < minNormalizedDistance) {
                minNormalizedDistance = totalNormalizedDistance;
                minDistance = totalDistance;
                visitedCitiesMin = new ArrayList<>(visitedCities);
            }
            if (totalNormalizedDistance > maxNormalizedDistance) {
                maxNormalizedDistance = totalNormalizedDistance;
                maxDistance = totalDistance;
                visitedCitiesMax = new ArrayList<>(visitedCities);
            }
        }
/**
         * Records complete tour. Updates statistics.
         *
         */
Records complete tour. Updates statistics.
Records complete tour . Updates statistics .
void record() {
            if (totalNormalizedDistance < minNormalizedDistance) {
                minNormalizedDistance = totalNormalizedDistance;
                minDistance = totalDistance;
                visitedCitiesMin = new ArrayList<>(visitedCities);
            }
            if (totalNormalizedDistance > maxNormalizedDistance) {
                maxNormalizedDistance = totalNormalizedDistance;
                maxDistance = totalDistance;
                visitedCitiesMax = new ArrayList<>(visitedCities);
            }
        }
void record ( ) { if ( totalNormalizedDistance < minNormalizedDistance ) { minNormalizedDistance = totalNormalizedDistance ; minDistance = totalDistance ; visitedCitiesMin = new ArrayList < > ( visitedCities ) ; } if ( totalNormalizedDistance > maxNormalizedDistance ) { maxNormalizedDistance = totalNormalizedDistance ; maxDistance = totalDistance ; visitedCitiesMax = new ArrayList < > ( visitedCities ) ; } }
Records complete tour.
Records complete tour .