Files
gonum/optimize/global.go
Brendan Tracey 44a6721e0d optimize: make function converger an interface (#728)
* optimize: make function converger an interface

Fixes #488.
Updates #677.
2018-12-16 11:37:46 +01:00

21 lines
463 B
Go

// Copyright ©2016 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package optimize
import (
"math"
)
// DefaultSettingsGlobal returns the default settings for a global optimization.
func DefaultSettingsGlobal() *Settings {
return &Settings{
FunctionThreshold: math.Inf(-1),
Converger: &FunctionConverge{
Absolute: 1e-10,
Iterations: 100,
},
}
}