mirror of
https://github.com/gonum/gonum.git
synced 2025-11-02 03:23:03 +08:00
Change call to Local to call to Global (#553)
This commit is contained in:
@@ -1315,7 +1315,8 @@ func TestNelderMeadOneD(t *testing.T) {
|
|||||||
x := []float64{10}
|
x := []float64{10}
|
||||||
m := &NelderMead{}
|
m := &NelderMead{}
|
||||||
s := DefaultSettings()
|
s := DefaultSettings()
|
||||||
result, err := Local(p, x, s, m)
|
s.InitX = x
|
||||||
|
result, err := Global(p, len(x), s, m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf(err.Error())
|
t.Errorf(err.Error())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user