neldermead

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: MIT Imports: 1 Imported by: 5

Documentation

Overview

Package neldermead is an implementation of the Nelder-Mead optimization method. Based on work by Michael F. Hutt: http://www.mikehutt.com/neldermead.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Optimizer

type Optimizer struct {
	// Maximum number of iterations.
	MaxIterations int
	// Reflection coefficient.
	Alpha,

	Beta,

	Gamma float64
}

Optimizer represents the parameters to the Nelder-Mead simplex method.

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.

Jump to

Keyboard shortcuts

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