public void setFunction ( GradientLineFunction function , double funcMinValue ) { this . function = function ; this . funcMinValue = funcMinValue ; lineSearch . setFunction ( function , funcMinValue ) ; N = function . getN ( ) ; B = new DMatrixRMaj ( N , N ) ; searchVector = new DMatrixRMaj ( N , 1 ) ; g = new DMatrixRMaj ( N , 1 ) ; s = new DMatrixRMaj ( N , 1 ) ; y = new DMatrixRMaj ( N , 1 ) ; x = new DMatrixRMaj ( N , 1 ) ; temp0_Nx1 = new DMatrixRMaj ( N , 1 ) ; temp1_Nx1 = new DMatrixRMaj ( N , 1 ) ; }
Specify the function being optimized