Documentation ¶
Index ¶
- Constants
- type BBPSO
- type Data
- type FitnessFunc
- type Particle
- type Problem
- type ProblemBase
- func (p *ProblemBase) GetBestValue() float64
- func (p *ProblemBase) GetBound(d int) (float64, float64)
- func (p *ProblemBase) GetBounds() []Bound
- func (p *ProblemBase) GetDim() int
- func (p *ProblemBase) GetEps() float64
- func (p *ProblemBase) GetFunValue(x *Vector) float64
- func (p *ProblemBase) GetName() string
- func (p *ProblemBase) GetPassValue() float64
- type SPSO
- type Strategy
- type Swarm
Constants ¶
View Source
const G_BAD_VALUE = 1e100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FitnessFunc ¶
type FitnessFunc func(v *Vector) (rt float64)
type Particle ¶
func NewParticle ¶
func (*Particle) MakeBestData ¶
type ProblemBase ¶
type ProblemBase struct {
// contains filtered or unexported fields
}
func NewProblemBase ¶
func NewProblemBase(name string, dim int, best, pass, eps float64, fun FitnessFunc, bounds []Bound) *ProblemBase
func (*ProblemBase) GetBestValue ¶
func (p *ProblemBase) GetBestValue() float64
func (*ProblemBase) GetBounds ¶
func (p *ProblemBase) GetBounds() []Bound
func (*ProblemBase) GetDim ¶
func (p *ProblemBase) GetDim() int
func (*ProblemBase) GetEps ¶
func (p *ProblemBase) GetEps() float64
func (*ProblemBase) GetFunValue ¶
func (p *ProblemBase) GetFunValue(x *Vector) float64
func (*ProblemBase) GetName ¶
func (p *ProblemBase) GetName() string
func (*ProblemBase) GetPassValue ¶
func (p *ProblemBase) GetPassValue() float64
Click to show internal directories.
Click to hide internal directories.