Documentation
¶
Index ¶
- Variables
- func BaseHashString(data []forms.Form, sb strings.Builder) string
- func CostSummer(timeslot, vote string, caps map[string]float64, sumCap float64) (map[string]float64, float64)
- func HashHeuristic(groupName, timeslot, FullHash string) float64
- func MinCostPath(N, K, s, t int, edges []Edge) (float64, [][]int)
- func RoundFloat(val float64, precision uint) float64
- func SolveMin_Cost(args []string) (int, map[int]forms.Form, float64, [][]int, map[int]string, map[string]float64)
- type Edge
Constants ¶
This section is empty.
Variables ¶
View Source
var Sugar = libfuncs.Sugar
Functions ¶
func BaseHashString ¶
Generates a base string for hashing the heuristic Valid hash input strings must be 32 characters or less and only contain alphanumeric characters If the string is not valid then a random string is generated and used
func CostSummer ¶
func HashHeuristic ¶
TODO: Figure out if this is doable with a rolling hash function
func MinCostPath ¶
MinCostPath returns the minimum cost path from the start node to the end node Variable explanation N - number of nodes K - the minimum required flow. Setting this to group count seems to work well s - source node t - sink node edges - slice of edges
func RoundFloat ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.