public TestMatrixMath_DSCC() { super(new MatrixMath_DSCC()); }
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; } }
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; } }
public static UnconstrainedLeastSquares<DMatrixSparseCSC> levenbergMarquardt( @Nullable ConfigLevenbergMarquardt config ) { if( config == null ) config = new ConfigLevenbergMarquardt(); LinearSolverSparse<DMatrixSparseCSC,DMatrixRMaj> solver = LinearSolverFactory_DSCC.cholesky(FillReducing.NONE); HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC(solver); UnconLeastSqLevenbergMarquardt_F64<DMatrixSparseCSC> lm = new UnconLeastSqLevenbergMarquardt_F64<>(new MatrixMath_DSCC(),hessian); lm.configure(config); return lm; }
public static UnconstrainedLeastSquares<DMatrixSparseCSC> levenbergMarquardt( @Nullable ConfigLevenbergMarquardt config ) { if( config == null ) config = new ConfigLevenbergMarquardt(); LinearSolverSparse<DMatrixSparseCSC,DMatrixRMaj> solver = LinearSolverFactory_DSCC.cholesky(FillReducing.NONE); HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC(solver); UnconLeastSqLevenbergMarquardt_F64<DMatrixSparseCSC> lm = new UnconLeastSqLevenbergMarquardt_F64<>(new MatrixMath_DSCC(),hessian); lm.configure(config); return lm; }
/** * 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; }
/** * 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; }
private UnconLeastSqLevenbergMarquardtSchur_F64<DMatrixSparseCSC> declare() { ConfigLevenbergMarquardt config = new ConfigLevenbergMarquardt(); HessianSchurComplement_DSCC hessian = new MockHessian(); UnconLeastSqLevenbergMarquardtSchur_F64<DMatrixSparseCSC> lm = new UnconLeastSqLevenbergMarquardtSchur_F64<>(new MatrixMath_DSCC(), hessian); lm.configure(config); return lm; }
@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; } }
@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; } }
/** * 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; }
/** * 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; }
@Override protected UnconstrainedLeastSquares<DMatrixSparseCSC> createSearch(double minimumValue) { ConfigLevenbergMarquardt config = new ConfigLevenbergMarquardt(); LinearSolverSparse<DMatrixSparseCSC,DMatrixRMaj> solver = LinearSolverFactory_DSCC.cholesky(FillReducing.NONE); HessianLeastSquares_DSCC hessian = new HessianLeastSquares_DSCC(solver); UnconLeastSqLevenbergMarquardt_F64<DMatrixSparseCSC> lm = new UnconLeastSqLevenbergMarquardt_F64<>(new MatrixMath_DSCC(),hessian); lm.configure(config); // lm.setVerbose(true); return lm; } }
@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; } }
@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; } }