ga

package
v0.0.0-...-df4236e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2015 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Population

type Population struct {
	Solutions []Solution
}

Population is a collection of solutions.

func NewPopulation

func NewPopulation(size, length int) *Population

NewPopulation returns an unevaluated population.

func (*Population) Length

func (pop *Population) Length() int

func (*Population) Size

func (pop *Population) Size() int

func (*Population) String

func (pop *Population) String() string

type Solution

type Solution struct {
	Fitness float64
	Bits    bitset.BitSet
}

Solution is a bitstring solution to a maximization optimization problem.

func (Solution) String

func (s Solution) String() string

Jump to

Keyboard shortcuts

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