Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ccssmnn/hego
/ functions
Functions
219 in github.com/ccssmnn/hego
⨍
Functions
219
◇
Types & classes
48
Method
DropPheromone
DropPheromone increases pheromone amount by 0.2 not considering the performance
examples/knapsack/aco/main.go:80
Method
Energy
()
anneal_test.go:11
Method
Energy
Energy is the quality and penalty for this schedules
examples/n-nurses/anneal/main.go:166
Method
Energy
Energy counts the total tour length
examples/salesman/anneal/main.go:48
Method
Energy
Energy returns the current objective from the knapsack problem. Negative, because lower is better
examples/knapsack/anneal/main.go:38
Method
Energy
Energy returns the energy of the current state. Lower is better
examples/rastringin/anneal/main.go:24
Method
Energy
Energy is the total tour length
examples/vehicle-routing/anneal/main.go:90
Method
Equal
(other TabuState)
tabu_search_test.go:11
Method
Equal
(other hego.TabuState)
examples/n-nurses/tabu/main.go:115
Method
Equal
Equal returns true if a tour equals the other one
examples/salesman/tabu/main.go:48
Method
Equal
Equal returns true if two states are equal
examples/knapsack/tabu/main.go:38
Method
Equal
Equal returns true, of two states are almost equal
examples/rastringin/tabu/main.go:24
Method
Equal
Equal returns true if a tour equals the other one
examples/vehicle-routing/tabu/main.go:107
Method
Evaporate
(factor, min float64)
ant_colony_test.go:10
Method
Evaporate
Evaporate increases pheromone amount by 0.2 not considering the performance
examples/n-nurses/aco/main.go:134
Method
Evaporate
(factor, min float64)
examples/salesman/aco/main.go:103
Method
Evaporate
Evaporate applies factor and min to pheromone vector
examples/knapsack/aco/main.go:89
Method
Fitness
()
genetic_test.go:15
Method
Fitness
Fitness is the quality and penalty for this schedules
examples/n-nurses/genetic/main.go:131
Method
Fitness
()
examples/salesman/genetic/main.go:52
Method
Fitness
Fitness returns the negative knapsack score. Lower is better
examples/knapsack/genetic/main.go:49
Method
Fitness
Fitness is called to evaluate the objective function value. Lower is better
examples/rastringin/genetic/main.go:32
Method
Fitness
Fitness is the total tour length
examples/vehicle-routing/genetic/main.go:122
Method
Init
()
ant_colony_test.go:12
Method
Init
Init resets internal state of ant
examples/n-nurses/aco/main.go:107
Method
Init
()
examples/salesman/aco/main.go:49
Method
Init
Init resets weight, value and selection. Is called before an ant is searching for another selection
examples/knapsack/aco/main.go:37
Method
Len
()
genetic.go:148
Method
Less
(i, j int)
genetic.go:152
Method
Mutate
()
genetic_test.go:19
Method
Mutate
Mutate either swaps two assignments or flips one assignment to another nurse
examples/n-nurses/genetic/main.go:108
Method
Mutate
Mutate uses Swap to swap two cities in the tour
examples/salesman/genetic/main.go:44
Method
Mutate
Mutate flips one bit, e.g. makes one selected item unselected or vice versa
examples/knapsack/genetic/main.go:44
Method
Mutate
Mutate adds variation to a genome. In this case we add gaussian noise
examples/rastringin/genetic/main.go:27
Method
Mutate
Mutate changes the assignment of a city or the order of a city in a tour
examples/vehicle-routing/genetic/main.go:86
Method
Neighbor
()
anneal_test.go:15
Method
Neighbor
()
tabu_search_test.go:19
Method
Neighbor
Neighbor calls transfershift or swapshift
examples/n-nurses/anneal/main.go:148
Method
Neighbor
Neighbor calls transfershift or swapshift
examples/n-nurses/tabu/main.go:173
Method
Neighbor
Neighbor produces a similar tour by swapping two cities in a tour
examples/salesman/anneal/main.go:43
Method
Neighbor
Neighbor produces a similar tour by swapping two cities in a tour
examples/salesman/tabu/main.go:43
Method
Neighbor
Neighbor produces a neighbor of the current state by flipping one selection
examples/knapsack/anneal/main.go:33
Method
Neighbor
Neighbor produces a neighbor of the current state by flipping one selection
examples/knapsack/tabu/main.go:33
Method
Neighbor
Neighbor produces another state by adding gaussian noise to the current state
examples/rastringin/anneal/main.go:19
Method
Neighbor
Neighbor produces another state by adding gaussian noise to the current state
examples/rastringin/tabu/main.go:19
Method
Neighbor
Neighbor changes the assignment of a city or the order of a city in a tour
examples/vehicle-routing/anneal/main.go:53
Method
Neighbor
Neighbor changes the assignment of a city or the order of a city in a tour
examples/vehicle-routing/tabu/main.go:53
Method
Objective
()
tabu_search_test.go:15
Method
Objective
Objective is the quality and penalty for this schedules
examples/n-nurses/tabu/main.go:191
Method
Objective
Objective counts the total tour length
examples/salesman/tabu/main.go:59
Method
Objective
Objective returns the current objective from the knapsack problem. Negative, because lower is better
examples/knapsack/tabu/main.go:49
Method
Objective
Objective of the current state. Lower is better
examples/rastringin/tabu/main.go:35
Method
Objective
Objective is the total tour length
examples/vehicle-routing/tabu/main.go:90
Method
PerceivePheromone
()
ant_colony_test.go:9
Method
PerceivePheromone
PerceivePheromone returns pheromone values. For unfeasible selections the pheromone value is set to 0
examples/n-nurses/aco/main.go:120
Method
PerceivePheromone
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
Method
PerceivePheromone
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
Method
Performance
()
ant_colony_test.go:7
Method
Performance
Performance returns negative schedule quality
examples/n-nurses/aco/main.go:152
Method
Performance
()
examples/salesman/aco/main.go:111
Method
Performance
performance returns negative knapsack score
examples/knapsack/aco/main.go:96
Method
Step
(next int)
ant_colony_test.go:11
Method
Step
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
Method
Step
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
Method
Step
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
Method
Swap
(i, j int)
genetic.go:156
Function
TestACO
(t *testing.T)
ant_colony_test.go:27
Function
TestArithmetic
(t *testing.T)
crossover/continuous_test.go:5
Function
TestBinaryWeightedChoice
(t *testing.T)
genetic_test.go:108
Function
TestES
(t *testing.T)
evolution_strategies_test.go:30
Function
TestFlip
(t *testing.T)
mutate/binary_test.go:5
Function
TestFlipn
(t *testing.T)
mutate/binary_test.go:19
Function
TestGA
(t *testing.T)
genetic_test.go:49
Function
TestGauss
(t *testing.T)
mutate/continuous_test.go:5
Function
TestOnePointBool
(t *testing.T)
crossover/binary_test.go:21
Function
TestOnePointInt
(t *testing.T)
crossover/perm_test.go:76
Function
TestOnePointPerm
(t *testing.T)
crossover/perm_test.go:46
Function
TestOnePointPerm2
(t *testing.T)
crossover/perm_test.go:65
Function
TestPSO
(t *testing.T)
particle_swarm_test.go:66
Function
TestSA
TestAnnealBit runs the AnnealBit method and checks for errors
anneal_test.go:46
Function
TestSelections
(t *testing.T)
genetic_test.go:141
Function
TestSwap
(t *testing.T)
mutate/perm_test.go:5
Function
TestSwapClose
(t *testing.T)
mutate/perm_test.go:19
Function
TestTS
TestAnnealBit runs the AnnealBit method and checks for errors
tabu_search_test.go:45
Function
TestTournament
(t *testing.T)
genetic_test.go:133
Function
TestTwoPointBool
(t *testing.T)
crossover/binary_test.go:46
Function
TestTwoPointInt
(t *testing.T)
crossover/perm_test.go:101
Function
TestTwoPointPerm
(t *testing.T)
crossover/perm_test.go:16
Function
TestTwoPointPerm2
(t *testing.T)
crossover/perm_test.go:35
Function
TestUniformBool
only calls methods, since its difficult to test for randomized results
crossover/binary_test.go:8
Function
TestVerify
(t *testing.T)
anneal_test.go:19
Function
TestVerifyACOSettings
(t *testing.T)
ant_colony_test.go:14
Function
TestVerifyESSettings
(t *testing.T)
evolution_strategies_test.go:7
Function
TestVerifyGASettings
(t *testing.T)
genetic_test.go:23
Function
TestVerifyPSOSettings
(t *testing.T)
particle_swarm_test.go:8
Function
TestVerifyTSSettings
(t *testing.T)
tabu_search_test.go:23
Function
TestWeightedChoice
(t *testing.T)
genetic_test.go:83
Function
main
()
examples/n-nurses/anneal/main.go:171
Function
main
()
examples/n-nurses/genetic/main.go:136
Function
main
()
examples/n-nurses/tabu/main.go:196
← previous
next →
101–200 of 219, ranked by callers