Change call to Local to call to Global (#553)

This commit is contained in:
Brendan Tracey
2018-07-18 17:04:18 -06:00
committed by GitHub
parent c06c645ce2
commit 286f685bdb

View File

@@ -1315,7 +1315,8 @@ func TestNelderMeadOneD(t *testing.T) {
x := []float64{10}
m := &NelderMead{}
s := DefaultSettings()
result, err := Local(p, x, s, m)
s.InitX = x
result, err := Global(p, len(x), s, m)
if err != nil {
t.Errorf(err.Error())
}