Initial commit of functions from github.com/btracey/optimize

Fixed.
On Oct 12, 2014, at 8:14 AM, Vladimír Chalupecký <notifications@github.com> wrote:

> In interfaces.go:
> 
> > +package opt
> > +
> > +// Function evaluates the objective function at the given location. F
> > +// must not modify x.
> > +type Function interface {
> > +	F(x []float64) (obj float64)
> > +}
> > +
> > +// Gradient evaluates the gradient at x and stores the result in place. Df
> > +// must not modify x.
> > +type Gradient interface {
> > +	Df(x []float64, grad []float64)
> > +}
> > +
> > +// FunctionGradient evaluates both the derivative and the function at x, storing
> > +// the gradient in place. FDf not modify x.
> FDf must not modify x.
> 
> —
> Reply to this email directly or view it on GitHub.
>