mirror of
https://github.com/gonum/gonum.git
synced 2025-10-04 23:02:42 +08:00
21 lines
463 B
Go
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,
|
|
},
|
|
}
|
|
}
|