|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cm.osm2po.tsp.TspSolverBase
de.cm.osm2po.tsp.TspDefaultSolver
public class TspDefaultSolver
Default-Implementation eines TspSolver
auf Basis einer einfachen Permutation.
Wichtig:
Aufgrund der Laufzeit (n-1)! wird bei mehr
als 14 Stationen (Start-[Permut-12]-Ziel) abgeriegelt
und stattdessen eine Exception geworfen.
Field Summary |
---|
Fields inherited from class de.cm.osm2po.tsp.TspSolverBase |
---|
log, tspMatrix |
Constructor Summary | |
---|---|
TspDefaultSolver()
|
Method Summary | |
---|---|
boolean |
solveTour(int[] tour,
java.util.Properties params)
Berchnet die optimale Rundreise aus der Matrix. |
Methods inherited from class de.cm.osm2po.tsp.TspSolverBase |
---|
calcNeighborhoodCost, calcTourCost, createInitialTour, init, makePaths, moveStation, solveOptimalTour, swapStations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TspDefaultSolver()
Method Detail |
---|
public boolean solveTour(int[] tour, java.util.Properties params)
TspSolver
tour
- int[] zu modifizierende Tour = Rueckgabe.params
- Properties
|
osm2po-core-4.8.8 (c) 2012 Carsten Moeller - info@osm2po.de | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |