Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LazoVelko/Genetic-Algorithm-for-the-Traveling-Salesman-Problem
/ functions
Functions
149 in github.com/LazoVelko/Genetic-Algorithm-for-the-Traveling-Salesman-Problem
⨍
Functions
149
◇
Types & classes
21
↓ 1 callers
Method
setRandom
(Random random)
GeneticAlgorithms/GeneticAlgorithm.java:123
↓ 1 callers
Method
setScale
Sets the scale for the drawing so that all the cities are drawn inside the window.
Display/WindowTSP.java:70
↓ 1 callers
Method
setScale
Sets the scale of graph so that none of the values are drawn outside of the window. @param yValues the values to plot
Display/WindowGraph.java:76
↓ 1 callers
Method
setScale
(int scale)
Utility/WindowHeatMap.java:28
↓ 1 callers
Method
setWindowProperties
()
Display/WindowTSP.java:53
↓ 1 callers
Method
setWindowProperties
()
Display/WindowGraph.java:105
↓ 1 callers
Method
setWindowProperties
()
Utility/WindowHeatMap.java:59
↓ 1 callers
Method
showGraphInWindow
()
GeneticAlgorithms/GeneticAlgorithm.java:227
↓ 1 callers
Method
showInWindow
()
Utility/HeatMap.java:234
↓ 1 callers
Method
showInputValuesInWindow
(int scale)
Utility/HeatMap.java:249
↓ 1 callers
Method
shuffle
Shuffles the cities in the Chromosome.
GeneticObjects/Chromosome.java:38
↓ 1 callers
Method
swap
Helper method for swapping two Cities in a Chromosome to change the tour. @param array the array of Cities to do the swap in @param i the
GeneticAlgorithms/GeneticAlgorithm.java:403
↓ 1 callers
Method
swap
Helper method for shuffling the cities. Swaps two cities. @param i the index of the first city @param j the index of the second city
GeneticObjects/Chromosome.java:49
↓ 1 callers
Method
uniformOrder
Uses a bit mask to perform a uniform order crossover. @param p1 the first parent Chromosome @param p2 the second parent Chromosome @param r
GeneticAlgorithms/Crossover.java:27
Method
AveragingTool
(GeneticAlgorithm geneticAlgorithm, int numOfTimesToRun)
Utility/AveragingTool.java:19
Method
Chromosome
Construct the Chromosome from an array. The cities are in the same order as they are in the array. No shuffling is done. @param cities the array of
GeneticObjects/Chromosome.java:20
Method
City
Constructs the City. @param name the name of the city @param x the x coordinate @param y the y coordinate
GeneticObjects/City.java:20
Method
Crossover
Class cannot be instantiated, as there would be no point, since all the methods are static.
GeneticAlgorithms/Crossover.java:18
Method
GeneticAlgorithm
Construct the GeneticAlgorithm object with default values.
GeneticAlgorithms/GeneticAlgorithm.java:49
Method
HeatMap
()
Utility/HeatMap.java:23
Method
Mutation
Class cannot be instantiated, as there would be no point, since all the methods are static.
GeneticAlgorithms/Mutation.java:17
Method
Population
Constructs an empty population with a maximum size. @param maxSize the maximum size of the Population
GeneticObjects/Population.java:23
Method
Preset
()
GeneticAlgorithms/Preset.java:12
Method
Selection
Class cannot be instantiated, as there would be no point, since all the methods are static.
GeneticAlgorithms/Selection.java:18
Method
WindowGraph
Construct WindowGraph. @param yValues the values to be plotted @param legend the the identifier of each set of values, example:
Display/WindowGraph.java:50
Method
WindowHeatMap
(HeatMap heatMap)
Utility/WindowHeatMap.java:15
Method
WindowTSP
Construct the WindowTSP and draw the cities to the screen. @param cities the cities to draw to the screen
Display/WindowTSP.java:29
Method
addItemToLegend
(String item)
Utility/AveragingTool.java:72
Method
clear
Removes all the Chromosomes.
GeneticObjects/Population.java:77
Method
compareTo
(Chromosome chromosome)
GeneticObjects/Chromosome.java:59
Method
debug
()
Utility/WindowHeatMap.java:42
Method
display
()
Utility/AveragingTool.java:76
Method
drawRotate
(Graphics2D g2d, double x, double y, int angle, String text)
Display/WindowGraph.java:251
Method
equals
(Object o)
GeneticObjects/City.java:93
Method
getCities
Read the specified data set and return an array of City objects based on the set. @param dataSet the data set to read @return the City obje
IO/Import.java:17
Method
hashCode
()
GeneticObjects/City.java:106
Method
hashCode
()
GeneticObjects/Chromosome.java:64
Method
iterator
()
GeneticObjects/Population.java:165
Method
main
(String[] args)
Main.java:6
Method
main
(String[] args)
GeneticAlgorithms/Crossover.java:284
Method
main
(String[] args)
Utility/HeatMap.java:328
Method
paintComponent
(Graphics graphics)
Display/WindowTSP.java:88
Method
paintComponent
(Graphics graphics)
Display/WindowGraph.java:118
Method
paintComponent
(Graphics graphics)
Utility/WindowHeatMap.java:72
Method
run
()
Utility/AveragingTool.java:26
Method
showInWindow
()
GeneticAlgorithms/GeneticAlgorithm.java:219
Method
toString
()
GeneticObjects/City.java:114
Method
toString
()
GeneticObjects/Chromosome.java:102
Method
toString
()
GeneticObjects/Population.java:175
← previous
101–149 of 149, ranked by callers