protected boolean wolfeCondition ( DMatrixRMaj s , DMatrixRMaj y , DMatrixRMaj g_k ) { double left = CommonOps_DDRM . dot ( y , s ) ; double g_s = CommonOps_DDRM . dot ( g_k , s ) ; double right = ( c2 - 1 ) * g_s ; if ( left >= right ) { return ( fx - f_prev ) <= c1 * g_s ; } return false ; }
Indicates if there s sufficient decrease and curvature . If the Wolfe condition is meet then the Hessian will be positive definite .