swarm

package
v0.0.0-...-77df830 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ans

type Ans struct {
	// contains filtered or unexported fields
}

type Node

type Node struct {
	X float64
	Y float64
}

type Problem

type Problem struct {
	Nodes []Node
}

func RandomProblem

func RandomProblem(nC int) Problem

RandomProblem - retrieve an example problem

func (*Problem) Normalize

func (p *Problem) Normalize()

func (*Problem) Score

func (p *Problem) Score(path []int) float64

type Swarm

type Swarm struct{}

func (*Swarm) Solve

func (s *Swarm) Solve(p Problem) []int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL