optimizer

package
v0.0.0-...-e9d6abc Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeOpt

func DeOpt(executor *Executor) ([]float64, float64)

func GaOpt

func GaOpt(executor *Executor) ([]float64, float64)

func GopTuna

func GopTuna(executor *Executor) ([]float64, float64)

func OesOpt

func OesOpt(executor *Executor) ([]float64, float64)

Types

type Executor

type Executor struct {
	Callback func(costs []float64, score float64)
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(
	cc *eval.Config,
	rules []string,
	ctxes []*eval.Ctx) (*Executor, error)

func (*Executor) Exec

func (e *Executor) Exec(costs []float64) (float64, error)

func (*Executor) ExecPanicErr

func (e *Executor) ExecPanicErr(costs []float64) float64

func (*Executor) GetIndexMap

func (e *Executor) GetIndexMap() map[string]int

func (*Executor) GetInitCosts

func (e *Executor) GetInitCosts() []float64

func (*Executor) ToCostsMap

func (e *Executor) ToCostsMap(costs []float64) map[string]float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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