blob: 16962c3e26511f07daddf4ca60be5055fc72ab60 [file] [log] [blame]
// 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,
},
}
}