示例#1
0
  /**
   * Specifies function being optimized.
   *
   * @param function Computes residuals and Jacobian.
   */
  public void setFunction(CoupledJacobian function) {
    internalInitialize(function.getN(), function.getM());
    this.function = function;

    jacobianVals.reshape(M, N);

    B.reshape(N, N);
    Bdiag.reshape(N, 1);
  }
示例#2
0
 @Override
 protected void computeResiduals(double[] output) {
   function.computeFunctions(output);
 }
示例#3
0
 @Override
 protected void setFunctionParameters(double[] param) {
   function.setInput(param);
 }