optimize: relax gradient tolerance in two tests
MODIFY
optimize/unconstrained_test.go
optimize/unconstrained_test.go
@@ -594,6 +594,7 @@ var quasiNewtonTests = []unconstrainedTest{
Grad: functions.BrownBadlyScaled{}.Grad,
},
x: []float64{1, 1},
+ gradTol: 1e-9,
},
{
name: "BrownBadlyScaled",
@@ -762,6 +763,7 @@ var quasiNewtonTests = []unconstrainedTest{
Grad: functions.PowellBadlyScaled{}.Grad,
},
x: []float64{0, 1},
+ gradTol: 1e-10,
},
{
name: "PowellBadlyScaled",

optimize: relax gradient tolerance in two tests