Codota Logo
UnconLeastSqTrustRegion_F64.configure
Code IndexAdd Codota to your IDE (free)

How to use
configure
method
in
org.ddogleg.optimization.trustregion.UnconLeastSqTrustRegion_F64

Best Java code snippets using org.ddogleg.optimization.trustregion.UnconLeastSqTrustRegion_F64.configure (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: lessthanoptimal/ddogleg

  @Override
  protected UnconstrainedLeastSquares<DMatrixRMaj> createSearch(double minimumValue) {
    ConfigTrustRegion config = new ConfigTrustRegion();
    config.regionInitial = 100;
    config.hessianScaling = true;
    UnconLeastSqTrustRegion_F64<DMatrixRMaj> tr = createSolver();
    tr.configure(config);
    return tr;
  }
}
origin: lessthanoptimal/ddogleg

  @Override
  protected UnconstrainedLeastSquares<DMatrixRMaj> createSearch(double minimumValue) {
    ConfigTrustRegion config = new ConfigTrustRegion();
    config.regionInitial = -1;
    UnconLeastSqTrustRegion_F64<DMatrixRMaj> tr = createSolver();
    tr.configure(config);
    return tr;
  }
}
origin: org.ddogleg/ddogleg

/**
 * Creates a dense trust region least-squares optimization using cauchy steps.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixRMaj> cauchy( @Nullable ConfigTrustRegion config ) {
  if( config == null )
    config = new ConfigTrustRegion();
  HessianLeastSquares_DDRM hessian = new HessianLeastSquares_DDRM();
  MatrixMath_DDRM math = new MatrixMath_DDRM();
  TrustRegionUpdateCauchy_F64<DMatrixRMaj> update = new TrustRegionUpdateCauchy_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixRMaj> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: org.ddogleg/ddogleg

/**
 * Creates a sparse trust region optimization using cauchy steps.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixSparseCSC> cauchy( @Nullable ConfigTrustRegion config ) {
  if( config == null )
    config = new ConfigTrustRegion();
  HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC();
  MatrixMath_DSCC math = new MatrixMath_DSCC();
  TrustRegionUpdateCauchy_F64<DMatrixSparseCSC> update = new TrustRegionUpdateCauchy_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: lessthanoptimal/ddogleg

/**
 * Creates a sparse trust region optimization using cauchy steps.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixSparseCSC> cauchy( @Nullable ConfigTrustRegion config ) {
  if( config == null )
    config = new ConfigTrustRegion();
  HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC();
  MatrixMath_DSCC math = new MatrixMath_DSCC();
  TrustRegionUpdateCauchy_F64<DMatrixSparseCSC> update = new TrustRegionUpdateCauchy_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: lessthanoptimal/ddogleg

/**
 * Creates a dense trust region least-squares optimization using cauchy steps.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixRMaj> cauchy( @Nullable ConfigTrustRegion config ) {
  if( config == null )
    config = new ConfigTrustRegion();
  HessianLeastSquares_DDRM hessian = new HessianLeastSquares_DDRM();
  MatrixMath_DDRM math = new MatrixMath_DDRM();
  TrustRegionUpdateCauchy_F64<DMatrixRMaj> update = new TrustRegionUpdateCauchy_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixRMaj> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: lessthanoptimal/ddogleg

/**
 * Creates a sparse trust region optimization using dogleg steps.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixSparseCSC> dogleg( @Nullable ConfigTrustRegion config) {
  if( config == null )
    config = new ConfigTrustRegion();
  LinearSolverSparse<DMatrixSparseCSC,DMatrixRMaj> solver = LinearSolverFactory_DSCC.cholesky(FillReducing.NONE);
  HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC(solver);
  MatrixMath_DSCC math = new MatrixMath_DSCC();
  TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> update = new TrustRegionUpdateDogleg_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: org.ddogleg/ddogleg

/**
 * Creates a sparse trust region optimization using dogleg steps.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixSparseCSC> dogleg( @Nullable ConfigTrustRegion config) {
  if( config == null )
    config = new ConfigTrustRegion();
  LinearSolverSparse<DMatrixSparseCSC,DMatrixRMaj> solver = LinearSolverFactory_DSCC.cholesky(FillReducing.NONE);
  HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC(solver);
  MatrixMath_DSCC math = new MatrixMath_DSCC();
  TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> update = new TrustRegionUpdateDogleg_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixSparseCSC> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: org.ddogleg/ddogleg

/**
 * Creates a dense trust region least-squares optimization using dogleg steps. Solver works on the B=J<sup>T</sup>J matrix.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixRMaj> dogleg( @Nullable ConfigTrustRegion config, boolean robust ) {
  if( config == null )
    config = new ConfigTrustRegion();
  LinearSolverDense<DMatrixRMaj> solver;
  if( robust )
    solver = LinearSolverFactory_DDRM.leastSquaresQrPivot(true,false);
  else
    solver = LinearSolverFactory_DDRM.chol(100);
  HessianLeastSquares_DDRM hessian = new HessianLeastSquares_DDRM(solver);
  MatrixMath_DDRM math = new MatrixMath_DDRM();
  TrustRegionUpdateDogleg_F64<DMatrixRMaj> update = new TrustRegionUpdateDogleg_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixRMaj> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: lessthanoptimal/ddogleg

/**
 * Creates a dense trust region least-squares optimization using dogleg steps. Solver works on the B=J<sup>T</sup>J matrix.
 *
 * @see UnconLeastSqTrustRegion_F64
 *
 * @param config Trust region configuration
 * @return The new optimization routine
 */
public static UnconstrainedLeastSquares<DMatrixRMaj> dogleg( @Nullable ConfigTrustRegion config, boolean robust ) {
  if( config == null )
    config = new ConfigTrustRegion();
  LinearSolverDense<DMatrixRMaj> solver;
  if( robust )
    solver = LinearSolverFactory_DDRM.leastSquaresQrPivot(true,false);
  else
    solver = LinearSolverFactory_DDRM.chol(100);
  HessianLeastSquares_DDRM hessian = new HessianLeastSquares_DDRM(solver);
  MatrixMath_DDRM math = new MatrixMath_DDRM();
  TrustRegionUpdateDogleg_F64<DMatrixRMaj> update = new TrustRegionUpdateDogleg_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixRMaj> alg = new UnconLeastSqTrustRegion_F64<>(update,hessian,math);
  alg.configure(config);
  return alg;
}
origin: lessthanoptimal/ddogleg

@Override
protected UnconstrainedLeastSquares<DMatrixRMaj> createSearch(double minimumValue) {
  ConfigTrustRegion config = new ConfigTrustRegion();
  config.hessianScaling = true;
  TrustRegionUpdateCauchy_F64<DMatrixRMaj> cauchy = new TrustRegionUpdateCauchy_F64<>();
  UnconLeastSqTrustRegion_F64<DMatrixRMaj> tr = new UnconLeastSqTrustRegion_F64<>(
      cauchy, new HessianLeastSquares_DDRM(),new MatrixMath_DDRM());
  tr.configure(config);
  return tr;
}
origin: lessthanoptimal/ddogleg

  @Override
  protected UnconstrainedLeastSquares<DMatrixRMaj> createSearch(double minimumValue) {
    ConfigTrustRegion config = new ConfigTrustRegion();
    TrustRegionUpdateCauchy_F64<DMatrixRMaj> cauchy = new TrustRegionUpdateCauchy_F64<>();
    UnconLeastSqTrustRegion_F64<DMatrixRMaj> tr = new UnconLeastSqTrustRegion_F64<>(
        cauchy, new HessianLeastSquares_DDRM(),new MatrixMath_DDRM());
    tr.configure(config);
    return tr;
  }
}
origin: lessthanoptimal/ddogleg

  @Override
  protected UnconstrainedLeastSquares<DMatrixSparseCSC> createSearch(double minimumValue) {
    ConfigTrustRegion config = new ConfigTrustRegion();
    TrustRegionUpdateCauchy_F64<DMatrixSparseCSC> cauchy = new TrustRegionUpdateCauchy_F64<>();
    UnconLeastSqTrustRegion_F64<DMatrixSparseCSC> tr = new UnconLeastSqTrustRegion_F64<>(
        cauchy, new HessianLeastSquares_DSCC(),new MatrixMath_DSCC());
    tr.configure(config);
    return tr;
  }
}
origin: lessthanoptimal/ddogleg

    @Override
    protected UnconstrainedLeastSquares<DMatrixSparseCSC> createSearch(double minimumValue) {
      ConfigTrustRegion config = new ConfigTrustRegion();
      config.regionInitial = 1;

      LinearSolverSparse<DMatrixSparseCSC,DMatrixRMaj> solver = LinearSolverFactory_DSCC.cholesky(FillReducing.NONE);
      HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC(solver);
      TrustRegionUpdateDogleg_F64<DMatrixSparseCSC> alg = new TrustRegionUpdateDogleg_F64<>();

      UnconLeastSqTrustRegion_F64<DMatrixSparseCSC> tr = new UnconLeastSqTrustRegion_F64<>(
          alg,hessian, new MatrixMath_DSCC());
      tr.configure(config);
//            tr.setVerbose(true);
      return tr;
    }
  }
org.ddogleg.optimization.trustregionUnconLeastSqTrustRegion_F64configure

Popular methods of UnconLeastSqTrustRegion_F64

  • <init>
  • initialize
  • cost

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JButton (javax.swing)
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