To avoid multiple call to get the best solution of the linear problem, add a method to return a double[].