MCPcopy Create free account

hub / github.com/ccssmnn/hego / functions

Functions219 in github.com/ccssmnn/hego

MethodDropPheromone
DropPheromone increases pheromone amount by 0.2 not considering the performance
examples/knapsack/aco/main.go:80
MethodEnergy
()
anneal_test.go:11
MethodEnergy
Energy is the quality and penalty for this schedules
examples/n-nurses/anneal/main.go:166
MethodEnergy
Energy counts the total tour length
examples/salesman/anneal/main.go:48
MethodEnergy
Energy returns the current objective from the knapsack problem. Negative, because lower is better
examples/knapsack/anneal/main.go:38
MethodEnergy
Energy returns the energy of the current state. Lower is better
examples/rastringin/anneal/main.go:24
MethodEnergy
Energy is the total tour length
examples/vehicle-routing/anneal/main.go:90
MethodEqual
(other TabuState)
tabu_search_test.go:11
MethodEqual
(other hego.TabuState)
examples/n-nurses/tabu/main.go:115
MethodEqual
Equal returns true if a tour equals the other one
examples/salesman/tabu/main.go:48
MethodEqual
Equal returns true if two states are equal
examples/knapsack/tabu/main.go:38
MethodEqual
Equal returns true, of two states are almost equal
examples/rastringin/tabu/main.go:24
MethodEqual
Equal returns true if a tour equals the other one
examples/vehicle-routing/tabu/main.go:107
MethodEvaporate
(factor, min float64)
ant_colony_test.go:10
MethodEvaporate
Evaporate increases pheromone amount by 0.2 not considering the performance
examples/n-nurses/aco/main.go:134
MethodEvaporate
(factor, min float64)
examples/salesman/aco/main.go:103
MethodEvaporate
Evaporate applies factor and min to pheromone vector
examples/knapsack/aco/main.go:89
MethodFitness
()
genetic_test.go:15
MethodFitness
Fitness is the quality and penalty for this schedules
examples/n-nurses/genetic/main.go:131
MethodFitness
()
examples/salesman/genetic/main.go:52
MethodFitness
Fitness returns the negative knapsack score. Lower is better
examples/knapsack/genetic/main.go:49
MethodFitness
Fitness is called to evaluate the objective function value. Lower is better
examples/rastringin/genetic/main.go:32
MethodFitness
Fitness is the total tour length
examples/vehicle-routing/genetic/main.go:122
MethodInit
()
ant_colony_test.go:12
MethodInit
Init resets internal state of ant
examples/n-nurses/aco/main.go:107
MethodInit
()
examples/salesman/aco/main.go:49
MethodInit
Init resets weight, value and selection. Is called before an ant is searching for another selection
examples/knapsack/aco/main.go:37
MethodLen
()
genetic.go:148
MethodLess
(i, j int)
genetic.go:152
MethodMutate
()
genetic_test.go:19
MethodMutate
Mutate either swaps two assignments or flips one assignment to another nurse
examples/n-nurses/genetic/main.go:108
MethodMutate
Mutate uses Swap to swap two cities in the tour
examples/salesman/genetic/main.go:44
MethodMutate
Mutate flips one bit, e.g. makes one selected item unselected or vice versa
examples/knapsack/genetic/main.go:44
MethodMutate
Mutate adds variation to a genome. In this case we add gaussian noise
examples/rastringin/genetic/main.go:27
MethodMutate
Mutate changes the assignment of a city or the order of a city in a tour
examples/vehicle-routing/genetic/main.go:86
MethodNeighbor
()
anneal_test.go:15
MethodNeighbor
()
tabu_search_test.go:19
MethodNeighbor
Neighbor calls transfershift or swapshift
examples/n-nurses/anneal/main.go:148
MethodNeighbor
Neighbor calls transfershift or swapshift
examples/n-nurses/tabu/main.go:173
MethodNeighbor
Neighbor produces a similar tour by swapping two cities in a tour
examples/salesman/anneal/main.go:43
MethodNeighbor
Neighbor produces a similar tour by swapping two cities in a tour
examples/salesman/tabu/main.go:43
MethodNeighbor
Neighbor produces a neighbor of the current state by flipping one selection
examples/knapsack/anneal/main.go:33
MethodNeighbor
Neighbor produces a neighbor of the current state by flipping one selection
examples/knapsack/tabu/main.go:33
MethodNeighbor
Neighbor produces another state by adding gaussian noise to the current state
examples/rastringin/anneal/main.go:19
MethodNeighbor
Neighbor produces another state by adding gaussian noise to the current state
examples/rastringin/tabu/main.go:19
MethodNeighbor
Neighbor changes the assignment of a city or the order of a city in a tour
examples/vehicle-routing/anneal/main.go:53
MethodNeighbor
Neighbor changes the assignment of a city or the order of a city in a tour
examples/vehicle-routing/tabu/main.go:53
MethodObjective
()
tabu_search_test.go:15
MethodObjective
Objective is the quality and penalty for this schedules
examples/n-nurses/tabu/main.go:191
MethodObjective
Objective counts the total tour length
examples/salesman/tabu/main.go:59
MethodObjective
Objective returns the current objective from the knapsack problem. Negative, because lower is better
examples/knapsack/tabu/main.go:49
MethodObjective
Objective of the current state. Lower is better
examples/rastringin/tabu/main.go:35
MethodObjective
Objective is the total tour length
examples/vehicle-routing/tabu/main.go:90
MethodPerceivePheromone
()
ant_colony_test.go:9
MethodPerceivePheromone
PerceivePheromone returns pheromone values. For unfeasible selections the pheromone value is set to 0
examples/n-nurses/aco/main.go:120
MethodPerceivePheromone
PerceivePheromone returns values from pheromone matrix for current position and multiplies it by a 1/distance. This makes closer cities more attractiv
examples/salesman/aco/main.go:75
MethodPerceivePheromone
PerceivePheromone returns nonzero values for each unselected item and for any item that would not fit into the bag
examples/knapsack/aco/main.go:61
MethodPerformance
()
ant_colony_test.go:7
MethodPerformance
Performance returns negative schedule quality
examples/n-nurses/aco/main.go:152
MethodPerformance
()
examples/salesman/aco/main.go:111
MethodPerformance
performance returns negative knapsack score
examples/knapsack/aco/main.go:96
MethodStep
(next int)
ant_colony_test.go:11
MethodStep
Step adds `next` nurse to current day and current shift. When shift is full, goes to next shift/day. Returns true, when schedule is finished
examples/n-nurses/aco/main.go:113
MethodStep
Step updates position, appends next stop to tour and returns done when tour length is equal to city count
examples/salesman/aco/main.go:58
MethodStep
Step adds next item to the selection. Here we also compute weight and value. Done is returned, when weight limit will be reached with another selectio
examples/knapsack/aco/main.go:45
MethodSwap
(i, j int)
genetic.go:156
FunctionTestACO
(t *testing.T)
ant_colony_test.go:27
FunctionTestArithmetic
(t *testing.T)
crossover/continuous_test.go:5
FunctionTestBinaryWeightedChoice
(t *testing.T)
genetic_test.go:108
FunctionTestES
(t *testing.T)
evolution_strategies_test.go:30
FunctionTestFlip
(t *testing.T)
mutate/binary_test.go:5
FunctionTestFlipn
(t *testing.T)
mutate/binary_test.go:19
FunctionTestGA
(t *testing.T)
genetic_test.go:49
FunctionTestGauss
(t *testing.T)
mutate/continuous_test.go:5
FunctionTestOnePointBool
(t *testing.T)
crossover/binary_test.go:21
FunctionTestOnePointInt
(t *testing.T)
crossover/perm_test.go:76
FunctionTestOnePointPerm
(t *testing.T)
crossover/perm_test.go:46
FunctionTestOnePointPerm2
(t *testing.T)
crossover/perm_test.go:65
FunctionTestPSO
(t *testing.T)
particle_swarm_test.go:66
FunctionTestSA
TestAnnealBit runs the AnnealBit method and checks for errors
anneal_test.go:46
FunctionTestSelections
(t *testing.T)
genetic_test.go:141
FunctionTestSwap
(t *testing.T)
mutate/perm_test.go:5
FunctionTestSwapClose
(t *testing.T)
mutate/perm_test.go:19
FunctionTestTS
TestAnnealBit runs the AnnealBit method and checks for errors
tabu_search_test.go:45
FunctionTestTournament
(t *testing.T)
genetic_test.go:133
FunctionTestTwoPointBool
(t *testing.T)
crossover/binary_test.go:46
FunctionTestTwoPointInt
(t *testing.T)
crossover/perm_test.go:101
FunctionTestTwoPointPerm
(t *testing.T)
crossover/perm_test.go:16
FunctionTestTwoPointPerm2
(t *testing.T)
crossover/perm_test.go:35
FunctionTestUniformBool
only calls methods, since its difficult to test for randomized results
crossover/binary_test.go:8
FunctionTestVerify
(t *testing.T)
anneal_test.go:19
FunctionTestVerifyACOSettings
(t *testing.T)
ant_colony_test.go:14
FunctionTestVerifyESSettings
(t *testing.T)
evolution_strategies_test.go:7
FunctionTestVerifyGASettings
(t *testing.T)
genetic_test.go:23
FunctionTestVerifyPSOSettings
(t *testing.T)
particle_swarm_test.go:8
FunctionTestVerifyTSSettings
(t *testing.T)
tabu_search_test.go:23
FunctionTestWeightedChoice
(t *testing.T)
genetic_test.go:83
Functionmain
()
examples/n-nurses/anneal/main.go:171
Functionmain
()
examples/n-nurses/genetic/main.go:136
Functionmain
()
examples/n-nurses/tabu/main.go:196
← previousnext →101–200 of 219, ranked by callers