public CustomConjugateGradient(Optimizable.ByGradientValue function, double initialStepSize) {
this.initialStepSize = initialStepSize;
this.optimizable = function;
this.lineMaximizer = new BackTrackLineSearch(function);
BackTrackLineSearch l = (BackTrackLineSearch) this.lineMaximizer;
l.setAbsTolx(eps);
// Alternative:
//this.lineMaximizer = new GradientBracketLineOptimizer (function);
logger.setLevel(Level.OFF);
}