diff --git a/JSAT/test/jsat/math/optimization/BFGSTest.java b/JSAT/test/jsat/math/optimization/BFGSTest.java
index <HASH>..<HASH> 100644
--- a/JSAT/test/jsat/math/optimization/BFGSTest.java
+++ b/JSAT/test/jsat/math/optimization/BFGSTest.java
@@ -52,7 +52,7 @@ public class BFGSTest
         Random rand = new Random();
         Vec x0 = new DenseVector(20);
         for(int i = 0; i < x0.length(); i++)
-            x0.set(i, rand.nextDouble());
+            x0.set(i, rand.nextDouble()+0.5);//make sure we get to the right local optima
 
         RosenbrockFunction f = new RosenbrockFunction();
         FunctionVec fp = f.getDerivative();
Make same change as already in LBFGS test so that initial guess should lead us to the global minimum instead of the local one