Codota Logo
HessianSchurComplement_DSCC.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.ddogleg.optimization.math.HessianSchurComplement_DSCC
constructor

Best Java code snippets using org.ddogleg.optimization.math.HessianSchurComplement_DSCC.<init> (Showing top 10 results out of 315)

  • Common ways to obtain HessianSchurComplement_DSCC
private void myMethod () {
HessianSchurComplement_DSCC h =
  • Codota Iconnew HessianSchurComplement_DSCC()
  • Smart code suggestions by Codota
}
origin: org.ddogleg/ddogleg

/**
 * Creates a sparse Schur Complement trust region optimization using dogleg steps.
 *
 * @see UnconLeastSqTrustRegionSchur_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquaresSchur<DMatrixSparseCSC> doglegSchur( @Nullable ConfigTrustRegion config ) {
  if( config == null )
    config = new ConfigTrustRegion();
  HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
  TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> update = new TrustRegionUpdateDogleg_F64<>();
  UnconLeastSqTrustRegionSchur_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegionSchur_F64<>(update,hessian);
  alg.configure(config);
  return alg;
}
origin: lessthanoptimal/ddogleg

  public static UnconstrainedLeastSquaresSchur<DMatrixSparseCSC> levenbergMarquardtSchur(
      @Nullable ConfigLevenbergMarquardt config  )
  {
    if( config == null )
      config = new ConfigLevenbergMarquardt();

    HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
    UnconLeastSqLevenbergMarquardtSchur_F64<DMatrixSparseCSC> lm =
        new UnconLeastSqLevenbergMarquardtSchur_F64<>(new MatrixMath_DSCC(),hessian);
    lm.configure(config);
    return lm;
  }
}
origin: org.ddogleg/ddogleg

  public static UnconstrainedLeastSquaresSchur<DMatrixSparseCSC> levenbergMarquardtSchur(
      @Nullable ConfigLevenbergMarquardt config  )
  {
    if( config == null )
      config = new ConfigLevenbergMarquardt();

    HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
    UnconLeastSqLevenbergMarquardtSchur_F64<DMatrixSparseCSC> lm =
        new UnconLeastSqLevenbergMarquardtSchur_F64<>(new MatrixMath_DSCC(),hessian);
    lm.configure(config);
    return lm;
  }
}
origin: lessthanoptimal/ddogleg

/**
 * Creates a sparse Schur Complement trust region optimization using dogleg steps.
 *
 * @see UnconLeastSqTrustRegionSchur_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquaresSchur<DMatrixSparseCSC> doglegSchur( @Nullable ConfigTrustRegion config ) {
  if( config == null )
    config = new ConfigTrustRegion();
  HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
  TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> update = new TrustRegionUpdateDogleg_F64<>();
  UnconLeastSqTrustRegionSchur_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegionSchur_F64<>(update,hessian);
  alg.configure(config);
  return alg;
}
origin: lessthanoptimal/ddogleg

public TestHessianSchurComplement_DSCC() {
  super(new HessianSchurComplement_DSCC());
  CommonOps_DSCC.concatColumns(jacLeft,jacRight,J);
  CommonOps_DSCC.multTransA(J,J,H,gw,gx);
}
origin: lessthanoptimal/ddogleg

    @Override
    protected UnconstrainedLeastSquaresSchur<DMatrixSparseCSC> createSearch(double minimumValue) {
      ConfigTrustRegion config = new ConfigTrustRegion();

//            config.regionInitial = 1;
      config.hessianScaling = true;

      TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> dogleg = new TrustRegionUpdateDogleg_F64<>();
      HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
      UnconLeastSqTrustRegionSchur_F64<DMatrixSparseCSC> tr =
          new UnconLeastSqTrustRegionSchur_F64<>(dogleg,hessian);
      tr.configure(config);
//            tr.setVerbose(true);
      return tr;
    }
  }
origin: lessthanoptimal/ddogleg

    @Override
    protected UnconstrainedLeastSquaresSchur<DMatrixSparseCSC> createSearch(double minimumValue) {
      ConfigLevenbergMarquardt config = new ConfigLevenbergMarquardt();

      HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
      UnconLeastSqLevenbergMarquardtSchur_F64<DMatrixSparseCSC> lm =
          new UnconLeastSqLevenbergMarquardtSchur_F64<>(new MatrixMath_DSCC(),hessian);
      lm.configure(config);
//            lm.setVerbose(System.out,0);
      return lm;
    }
  }
origin: lessthanoptimal/ddogleg

    @Override
    protected UnconstrainedLeastSquaresSchur<DMatrixSparseCSC> createSearch(double minimumValue) {
      ConfigLevenbergMarquardt config = new ConfigLevenbergMarquardt();

      config.dampeningInitial = 1e-8;
      config.hessianScaling = true;

      HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
      UnconLeastSqLevenbergMarquardtSchur_F64<DMatrixSparseCSC> lm =
          new UnconLeastSqLevenbergMarquardtSchur_F64<>(new MatrixMath_DSCC(),hessian);
      lm.configure(config);
//            lm.setVerbose(System.out,0);
      return lm;
    }
  }
origin: lessthanoptimal/ddogleg

@Test
public void cost() {
  double expected = 0.5*VectorVectorMult_DDRM.innerProd(residuals,residuals);
  TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> dogleg = new TrustRegionUpdateDogleg_F64<>();
  HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
  UnconLeastSqTrustRegionSchur_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegionSchur_F64<>(dogleg,hessian);
  alg.setFunction(new MockFunction(),new MockJacobian());
  alg.initialize(new double[N],1e-6,1e-8);
  double found = alg.cost(new DMatrixRMaj(N,1));
  assertEquals(expected,found, UtilEjml.TEST_F64);
}
origin: lessthanoptimal/ddogleg

@Test
public void functionGradientHessian() {
  TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> dogleg = new TrustRegionUpdateDogleg_F64<>();
  HessianSchurComplement_DSCC hessian = new HessianSchurComplement_DSCC();
  UnconLeastSqTrustRegionSchur_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegionSchur_F64<>(dogleg,hessian);
  alg.setFunction(new MockFunction(),new MockJacobian());
  alg.initialize(new double[N],1e-6,1e-8);
  DMatrixRMaj x = new DMatrixRMaj(1,1);
  DMatrixRMaj g = new DMatrixRMaj(N,1);
  alg.functionGradientHessian(x,false,g,hessian);
  // Only the gradient is computed and returned. The hessian is saved internally
  DMatrixRMaj exp_g = new DMatrixRMaj(N,1);
  CommonOps_DSCC.multTransA(J,residuals,exp_g);
  assertTrue(MatrixFeatures_DDRM.isIdentical(exp_g,g,UtilEjml.TEST_F64));
}
org.ddogleg.optimization.mathHessianSchurComplement_DSCC<init>

Popular methods of HessianSchurComplement_DSCC

  • computeGradient
    Computes the gradient using Schur complement
  • computeHessian
    Compuets the Hessian in block form
  • extractDiagonals

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Reference (javax.naming)
  • JFileChooser (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now