private void invokeLineInitialize(double funcAtStart, double maxStep) { function.setInput(initialStep); double funcAtInit = function.computeFunction(); lineSearch.init(funcAtStart,derivAtZero,funcAtInit,initialStep,0,maxStep); firstStep = true; }
private void invokeLineInitialize(double funcAtStart, double maxStep) { function.setInput(initialStep); double funcAtInit = function.computeFunction(); lineSearch.init(funcAtStart,derivAtZero,funcAtInit,initialStep,0,maxStep); firstStep = true; }
public void initialize(double[] initial) { this.mode = 0; this.hasConverged = false; this.iterations = 0; // set the change in x to be zero s.zero(); // default to an initial inverse Hessian approximation as // the identity matrix. This can be overridden or improved by an heuristic below CommonOps_DDRM.setIdentity(B); // save the initial value of x System.arraycopy(initial, 0, x.data, 0, N); function.setInput(x.data); fx = function.computeFunction(); updated = false; if( verbose != null ) { verbose.println("Steps fx change |step| f-test g-test max-step "); verbose.printf("%-4d %9.3E %10.3E %9.3E %9.3E %9.3E %6.2f\n", iterations, fx, 0.0,0.0,0.0,0.0, 0.0); } }
public void initialize(double[] initial) { this.mode = 0; this.hasConverged = false; this.iterations = 0; // set the change in x to be zero s.zero(); // default to an initial inverse Hessian approximation as // the identity matrix. This can be overridden or improved by an heuristic below CommonOps_DDRM.setIdentity(B); // save the initial value of x System.arraycopy(initial, 0, x.data, 0, N); function.setInput(x.data); fx = function.computeFunction(); updated = false; if( verbose != null ) { verbose.println("Steps fx change |step| f-test g-test max-step "); verbose.printf("%-4d %9.3E %10.3E %9.3E %9.3E %9.3E %6.2f\n", iterations, fx, 0.0,0.0,0.0,0.0, 0.0); } }