...
Package neldermead
Overview ▹
Index ▹
type Optimizer ¶
Optimizer represents the parameters to the Nelder-Mead simplex method.
type Optimizer struct {
// Maximum number of iterations.
MaxIterations int
// Reflection coefficient.
Alpha,
Beta,
Gamma float64
}
func New ¶
func New() *Optimizer
New returns a new instance of Optimizer with all values set to the defaults.
func (*Optimizer) Optimize ¶
func (o *Optimizer) Optimize(
objfunc func([]float64) float64,
start []float64,
epsilon,
scale float64,
) (float64, []float64)
Optimize applies the Nelder-Mead simplex method with the Optimizer's settings.
ActiveGo 1.8