Documentation ¶
Index ¶
- Constants
- func GetNthParamsInt(param string, n int) (int, bool)
- func GetNthParamsString(param string, n int) (string, bool)
- func Init()
- func SpaceSimulate(s vSpace)
- type Context
- type DumpConfig
- type EvolutionParameters
- type Fitness
- type Me3li
- type Me3liDump
- type Me3liStringImport
- type MelConfig
- type OptimizerInfo
- type OptimizerValues
- type Plan
- type PlanBasic
- type PlanDynamicEvolving
- type PlanSimple
- type Population
- type RunInfo
- type RunInfoValues
Constants ¶
View Source
const ( MEL_COM_NEXT_EVENT = iota // Go and to your things whateven they are MEL_COM_EXECUTE_OPERATOR // Execute e genetic operator MEL_COM_COMPUTE_FITNESS // Compute e fitness )
Commands
View Source
const ( MEL_RESP_EXECUTE_OPERATOR_DONE = iota // Execution of a genetic operator done MEL_RESP_COMPUTE_FITNESS_DONE // Compute of a fitness function done MEL_RESP_EVEN_NEW // Trigger a new individual creation )
Responses
View Source
const ( LEFT = iota RIGHT )
View Source
const ( STATISTICS_NULL = iota STATISTICS_MAX )
Variables ¶
This section is empty.
Functions ¶
func SpaceSimulate ¶
func SpaceSimulate(s vSpace)
Types ¶
type DumpConfig ¶
type EvolutionParameters ¶
func (*EvolutionParameters) GetInt ¶
func (ep *EvolutionParameters) GetInt(param string) (int, bool)
func (*EvolutionParameters) GetMatchingList ¶
func (ep *EvolutionParameters) GetMatchingList(match string) (map[string]string, bool)
type Me3li ¶
type Me3li interface { MelInit(*MelConfig, *EvolutionParameters) MelCopy() Me3li }
The main interface, it states: It is a mel object
type Me3liDump ¶
type Me3liDump interface {
MelDump(*DumpConfig)
}
type Me3liStringImport ¶
type OptimizerInfo ¶
type OptimizerInfo map[string]OptimizerValues
Info on each generation
func (*OptimizerInfo) InsertOptimizerInfo ¶
func (ri *OptimizerInfo) InsertOptimizerInfo(key string, value float32)
type OptimizerValues ¶
type OptimizerValues []float32
type Plan ¶
type Plan struct { Populations []Population Fitnesses []Fitness ExitAt int }
type PlanBasic ¶
type PlanBasic struct { Plan GenerationNumber int PopulationSize int DeathsRate float32 UnaryRate float32 BinaryRate float32 *RunInfo }
func (*PlanBasic) Execute ¶
func (plan *PlanBasic) Execute(ep *EvolutionParameters)
Execute the simple evolution plan
type PlanDynamicEvolving ¶
type PlanDynamicEvolving struct {
Plan
}
func (*PlanDynamicEvolving) Execute ¶
func (plan *PlanDynamicEvolving) Execute(ep *EvolutionParameters)
Use Dynamic Evolving populations
type PlanSimple ¶
type PlanSimple struct { Plan GenerationNumber int PopulationSize int DeathsRate float32 UnaryRate float32 BinaryRate float32 }
func (*PlanSimple) Execute ¶
func (plan *PlanSimple) Execute(ep *EvolutionParameters)
Execute the simple evolution plan
type Population ¶
type RunInfo ¶
type RunInfo map[string]RunInfoValues
Info on each generation
func (*RunInfo) InsertRunInfo ¶
type RunInfoValues ¶
type RunInfoValues []float32
Click to show internal directories.
Click to hide internal directories.