MCPcopy Create free account

hub / github.com/LazoVelko/Genetic-Algorithm-for-the-Traveling-Salesman-Problem / functions

Functions149 in github.com/LazoVelko/Genetic-Algorithm-for-the-Traveling-Salesman-Problem

↓ 61 callersMethodadd
Adds a Chromosome to the Population. @param chromosome the chromosome to add
GeneticObjects/Population.java:32
↓ 40 callersMethodsize
Get the size of the Population. @return the number of all the Chromosomes.
GeneticObjects/Population.java:108
↓ 15 callersMethodgetDistance
()
GeneticObjects/Chromosome.java:73
↓ 14 callersMethodgetArray
()
GeneticObjects/Chromosome.java:55
↓ 11 callersMethodgetMostFit
Get the Chromosome that has the path with the least distance. @return the most fit Chromosome
GeneticObjects/Population.java:161
↓ 10 callersMethodgetX
()
GeneticObjects/City.java:30
↓ 10 callersMethodgetY
()
GeneticObjects/City.java:34
↓ 7 callersMethodgetAverageDistance
Gets the average distance of all the chromosomes. @return the mean distance travelled
GeneticObjects/Population.java:116
↓ 6 callersMethodgetCities
Get an array of all the Cities. @return the array of Cities
GeneticObjects/Population.java:85
↓ 4 callersMethodprint
(int[][] array)
Utility/HeatMap.java:295
↓ 3 callersMethoddeepCopy
()
GeneticObjects/Population.java:169
↓ 3 callersMethoddraw
Draw a path through the city. @param chromosome the Chromosome containing the path
Display/WindowTSP.java:40
↓ 3 callersMethodgetName
()
GeneticObjects/City.java:26
↓ 3 callersMethodperformLocalSearch
(Chromosome chromosome)
GeneticAlgorithms/GeneticAlgorithm.java:367
↓ 3 callersMethodreset
()
GeneticAlgorithms/GeneticAlgorithm.java:464
↓ 3 callersMethodrun
()
Utility/HeatMap.java:90
↓ 3 callersMethodsetCrossoverRate
(double crossoverRate)
GeneticAlgorithms/GeneticAlgorithm.java:102
↓ 3 callersMethodsetMutationRate
(double mutationRate)
GeneticAlgorithms/GeneticAlgorithm.java:109
↓ 3 callersMethodtournamentSelection
Picks k Chromosomes at at random and then return the best one. There is a small chance that the best one will not be selected. @param population th
GeneticAlgorithms/Selection.java:31
↓ 2 callersMethodcheckRangeValues
(double start, double finish, double increment)
Utility/HeatMap.java:77
↓ 2 callersMethodcreateNextGeneration
The meat of the entire class. Generates the next generation from the current population. Brings together all the other classes in the package; Selecti
GeneticAlgorithms/GeneticAlgorithm.java:285
↓ 2 callersMethoddistance
Finds the Euclidean distance between two cities. @param city1 the first city @param city2 the second city @return the distance
GeneticObjects/City.java:79
↓ 2 callersMethodgetAreaUnderBestDistances
()
GeneticAlgorithms/GeneticAlgorithm.java:212
↓ 2 callersMethodgetDefaultGA
()
GeneticAlgorithms/Preset.java:14
↓ 2 callersMethodgetHue
(int indexOfHue, int totalUniqueHues)
Display/WindowGraph.java:243
↓ 2 callersMethodgetRandomPopulation
Generate a Population of randomly generate Chromosomes. @param numOfCities the number of cities @param sizeOfPop the size of the population @par
GeneticObjects/Population.java:141
↓ 2 callersMethodinsertion
Selects a city and inserts it into a random place. @param chromosome The Chromosome who's cities will be swapped. @param random The Random o
GeneticAlgorithms/Mutation.java:25
↓ 2 callersMethodmutate
Mutate the Chromosome based on what type is selected. @param chromosome the Chromosome to mutate @return the mutated Chromosome
GeneticAlgorithms/GeneticAlgorithm.java:414
↓ 2 callersMethodorderCrossover
Performs a crossover on all the cities between two points. @param p1 the first parent chromosome @param p2 the second parent chromosome @param r
GeneticAlgorithms/Crossover.java:201
↓ 2 callersMethodprintProperties
()
GeneticAlgorithms/GeneticAlgorithm.java:473
↓ 2 callersMethodsetScale
(int scale)
Utility/HeatMap.java:70
↓ 2 callersMethodswap
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/Mutation.java:92
↓ 1 callersMethodcreatePanel
()
Display/WindowTSP.java:45
↓ 1 callersMethodcreatePanel
()
Display/WindowGraph.java:96
↓ 1 callersMethodcreatePanel
()
Utility/WindowHeatMap.java:50
↓ 1 callersMethodcrossover
Perform the selected type of crossover. @param p1 the first parent @param p2 the second parent @return the children
GeneticAlgorithms/GeneticAlgorithm.java:432
↓ 1 callersMethoddelay
(int ms)
GeneticAlgorithms/GeneticAlgorithm.java:444
↓ 1 callersMethoddoLoadGeneticAlgorithmResults
()
Utility/HeatMap.java:162
↓ 1 callersMethodequals
(Object o)
GeneticObjects/Chromosome.java:91
↓ 1 callersMethodestimateTime
()
Utility/HeatMap.java:111
↓ 1 callersMethodforceUniqueness
(boolean forceUniqueness)
GeneticAlgorithms/GeneticAlgorithm.java:130
↓ 1 callersMethodfromDataSet
(int popSize, DataSet dataSet, Random r)
GeneticObjects/Population.java:127
↓ 1 callersMethodgenerateBitMask
Generate an array of a specified sizes with randomly placed ones and zeroes. @param size the size of the array @param random the Random object
GeneticAlgorithms/Crossover.java:100
↓ 1 callersMethodgenerateHeatMap
(GeneticAlgorithm geneticAlgorithm)
Utility/HeatMap.java:313
↓ 1 callersMethodgetAreaUnderAverageDistances
()
GeneticAlgorithms/GeneticAlgorithm.java:205
↓ 1 callersMethodgetAverageDistanceOfEachGeneration
()
GeneticAlgorithms/GeneticAlgorithm.java:191
↓ 1 callersMethodgetAverageDistanceOfFirstGeneration
()
GeneticAlgorithms/GeneticAlgorithm.java:163
↓ 1 callersMethodgetAverageDistanceOfLastGeneration
()
GeneticAlgorithms/GeneticAlgorithm.java:170
↓ 1 callersMethodgetBest
()
Utility/HeatMap.java:192
↓ 1 callersMethodgetBestChromosome
Get the best Chromosome in a list of Chromosomes. @param arrayList the list to search @return the best chromosome
GeneticAlgorithms/Selection.java:85
↓ 1 callersMethodgetBestDistanceOfEachGeneration
()
GeneticAlgorithms/GeneticAlgorithm.java:198
↓ 1 callersMethodgetBestDistanceOfFirstGeneration
()
GeneticAlgorithms/GeneticAlgorithm.java:177
↓ 1 callersMethodgetBestDistanceOfLastGeneration
()
GeneticAlgorithms/GeneticAlgorithm.java:184
↓ 1 callersMethodgetChromosome
Get the best Chromosome in a list of Chromosomes. There is a small chance that a randomly selected Chromosome is picked instead of the best one. @para
GeneticAlgorithms/Selection.java:67
↓ 1 callersMethodgetChromosomes
Get an array of all the Chromosomes. @return the array of the Chromosomes
GeneticObjects/Population.java:93
↓ 1 callersMethodgetKChromosomes
Returns k randomly selected Chromosomes. @param pop an array of Chromosomes (a population) @param k the number of Chromosomes to randoml
GeneticAlgorithms/Selection.java:48
↓ 1 callersMethodgetMaxValue
()
Utility/HeatMap.java:230
↓ 1 callersMethodgetMinValue
()
Utility/HeatMap.java:226
↓ 1 callersMethodgetRandomCity
Create a City with a random name and random location. @param random the Random object to be used for the generation @return a Randomly gen
GeneticObjects/City.java:43
↓ 1 callersMethodgetRandomName
Helper method to generate a random name for the random City generator. @param random the Random object to be used for the generation @return
GeneticObjects/City.java:55
↓ 1 callersMethodgetResults
()
Utility/HeatMap.java:222
↓ 1 callersMethodgetWorst
()
Utility/HeatMap.java:207
↓ 1 callersMethodloadGeneticAlgorithmResults
()
Utility/HeatMap.java:145
↓ 1 callersMethodonePointCrossover
Performs a crossover on all the cities after a particular point. @param p1 the first parent chromosome @param p2 the second parent chromosome @p
GeneticAlgorithms/Crossover.java:118
↓ 1 callersMethodoutputHeatMap
()
Utility/HeatMap.java:304
↓ 1 callersMethodpaintAxisLines
(Graphics graphics)
Display/WindowGraph.java:137
↓ 1 callersMethodpaintChromosome
(Graphics2D graphics)
Display/WindowTSP.java:103
↓ 1 callersMethodpaintCities
(Graphics2D graphics)
Display/WindowTSP.java:124
↓ 1 callersMethodpaintCityNames
(Graphics2D graphics)
Display/WindowTSP.java:133
↓ 1 callersMethodpaintGraph
(Graphics2D graphics2D)
Display/WindowGraph.java:128
↓ 1 callersMethodpaintHorizontalLabels
(Graphics2D graphics)
Display/WindowGraph.java:171
↓ 1 callersMethodpaintLegend
(Graphics2D graphics)
Display/WindowGraph.java:229
↓ 1 callersMethodpaintPlot
(Graphics2D graphics, ArrayList<Integer> yValues)
Display/WindowGraph.java:205
↓ 1 callersMethodpaintPlots
(Graphics2D graphics2D)
Display/WindowGraph.java:198
↓ 1 callersMethodpaintResults
(Graphics graphics)
Utility/WindowHeatMap.java:78
↓ 1 callersMethodpaintTitle
(Graphics2D graphics)
Display/WindowGraph.java:143
↓ 1 callersMethodpaintTravelingSalesman
(Graphics2D graphics)
Display/WindowTSP.java:94
↓ 1 callersMethodpaintVerticalLabels
(Graphics2D graphics)
Display/WindowGraph.java:150
↓ 1 callersMethodperformElitism
(Population nextGen)
GeneticAlgorithms/GeneticAlgorithm.java:345
↓ 1 callersMethodpopulate
(City[] cities, Random random)
GeneticObjects/Population.java:39
↓ 1 callersMethodprintResults
()
GeneticAlgorithms/GeneticAlgorithm.java:488
↓ 1 callersMethodprintResults
()
Utility/HeatMap.java:240
↓ 1 callersMethodread
Read from a file and load it to a String. @param fileName the name of the file to read (within the same root as this class) @return a String
IO/Import.java:74
↓ 1 callersMethodreciprocalExchange
Swaps two randomly selected cities. @param chromosome The Chromosome who's cities will be swapped. @param random The Random object used for
GeneticAlgorithms/Mutation.java:52
↓ 1 callersMethodremoveWhiteSpace
Removes duplicate what spaces in a String. Example: " 2 3 3,2 " becomes " 2 3 3,2 " @param s the String to parse @return the String min
IO/Import.java:54
↓ 1 callersMethodrun
()
GeneticAlgorithms/GeneticAlgorithm.java:237
↓ 1 callersMethodrun
()
Utility/WindowHeatMap.java:20
↓ 1 callersMethodrunWithDebugMode
Displays the fittest Chromosome of each Population to the screen. Also displays a graph that contains the average distance per population.
GeneticAlgorithms/GeneticAlgorithm.java:254
↓ 1 callersMethodscrambleMutation
Pick a subset of Cities and randomly re-arrange them. @param chromosome The Chromosome who's cities will be swapped. @param random The Rando
GeneticAlgorithms/Mutation.java:65
↓ 1 callersMethodsetCrossoverRange
(double start, double finish, double increment)
Utility/HeatMap.java:36
↓ 1 callersMethodsetCrossoverType
(CrossoverType crossoverType)
GeneticAlgorithms/GeneticAlgorithm.java:155
↓ 1 callersMethodsetElitismValue
(int elitismValue)
GeneticAlgorithms/GeneticAlgorithm.java:94
↓ 1 callersMethodsetK
(int k)
GeneticAlgorithms/GeneticAlgorithm.java:87
↓ 1 callersMethodsetLocalSearchRate
(double localSearchRate)
GeneticAlgorithms/GeneticAlgorithm.java:116
↓ 1 callersMethodsetMaxGen
(int maxGen)
GeneticAlgorithms/GeneticAlgorithm.java:80
↓ 1 callersMethodsetMutationRange
(double start, double finish, double increment)
Utility/HeatMap.java:51
↓ 1 callersMethodsetMutationType
(MutationType mutationType)
GeneticAlgorithms/GeneticAlgorithm.java:159
↓ 1 callersMethodsetNumberOfRuns
(int numberOfRuns)
Utility/HeatMap.java:66
↓ 1 callersMethodsetPopulation
(Population population)
GeneticAlgorithms/GeneticAlgorithm.java:70
↓ 1 callersMethodsetProperties
()
Utility/WindowHeatMap.java:35
next →1–100 of 149, ranked by callers