44#ifndef ROL_TYPEB_TRUSTREGIONSPGALGORITHM_HPP
45#define ROL_TYPEB_TRUSTREGIONSPGALGORITHM_HPP
58template<
typename Real>
61 Ptr<TrustRegionModel_U<Real>>
model_;
136 std::ostream &outStream = std::cout)
override;
138 void writeHeader( std::ostream& os )
const override;
140 void writeName( std::ostream& os )
const override;
142 void writeOutput( std::ostream& os,
bool write_header =
false )
const override;
150 std::ostream &outStream = std::cout);
166 std::ostream &outStream = std::cout)
const;
176 std::ostream &outStream = std::cout)
const;
192 std::ostream &outStream = std::cout);
202 Vector<Real> &dwa, std::ostream &outStream = std::cout);
206 Vector<Real> &pwa, std::ostream &outStream = std::cout)
const;
Provides the interface to apply upper and lower bound constraints.
Provides the interface to evaluate objective functions.
Provides interface for and implements limited-memory secant operators.
Provides the interface to evaluate trust-region model functions.
Provides an interface to run bound constrained optimization algorithms.
Ptr< PolyhedralProjection< Real > > proj_
const Ptr< AlgorithmState< Real > > state_
const Ptr< CombinedStatusTest< Real > > status_
Provides an interface to run the trust-region algorithm.
Real gamma0_
Radius decrease rate (negative rho) (default: 0.0625)
Real computeValue(Real inTol, Real &outTol, Real pRed, Real &fold, int iter, const Vector< Real > &x, const Vector< Real > &xold, Objective< Real > &obj)
void initialize(Vector< Real > &x, const Vector< Real > &g, Real ftol, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout)
int explim_
Maximum number of Cauchy point expansion steps (default: 10)
ESecant esec_
Secant type (default: Limited-Memory BFGS)
int SPflag_
Subproblem solver termination flag.
bool writeHeader_
Flag to write header at every iteration.
bool useSecantHessVec_
Flag to use secant as Hessian (default: false)
unsigned verbosity_
Output level (default: 0)
std::vector< bool > useInexact_
Real tol1_
Absolute tolerance for truncated CG (default: 1e-4)
bool interpRad_
Interpolate the trust-region radius if ratio is negative (default: false)
Real dcauchy(Vector< Real > &s, Real &alpha, Real &q, const Vector< Real > &x, const Vector< Real > &g, const Real del, TrustRegionModel_U< Real > &model, Vector< Real > &dwa, Vector< Real > &dwa1, std::ostream &outStream=std::cout)
void dpsg_simple(Vector< Real > &y, Real &q, Vector< Real > &gmod, const Vector< Real > &x, Real del, TrustRegionModel_U< Real > &model, Vector< Real > &pwa, Vector< Real > &pwa1, Vector< Real > &dwa, std::ostream &outStream=std::cout)
int maxit_
Maximum number of CG iterations (default: 25)
Real eps_
Safeguard for numerically evaluating ratio.
Real eta0_
Step acceptance threshold (default: 0.05)
TRUtils::ETRFlag TRflag_
Trust-region exit flag.
void dpsg(Vector< Real > &y, Real &q, Vector< Real > &gmod, const Vector< Real > &x, Real del, TrustRegionModel_U< Real > &model, Vector< Real > &ymin, Vector< Real > &pwa, Vector< Real > &pwa1, Vector< Real > &pwa2, Vector< Real > &pwa3, Vector< Real > &pwa4, Vector< Real > &pwa5, Vector< Real > &dwa, std::ostream &outStream=std::cout)
Real computeGradient(const Vector< Real > &x, Vector< Real > &g, Vector< Real > &pwa, Real del, Objective< Real > &obj, std::ostream &outStream=std::cout) const
bool useSecantPrecond_
Flag to use secant as a preconditioner (default: false)
Real spexp_
Relative tolerance exponent for subproblem solve (default: 1, range: [1,2])
Real eta2_
Radius increase threshold (default: 0.9)
void run(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout) override
Run algorithm on bound constrained problems (Type-B). This general interface supports the use of dual...
Real gamma2_
Radius increase rate (default: 2.5)
Real extrapf_
Extrapolation rate for Cauchy point computation (default: 1e1)
Real alpha_
Initial Cauchy point step length (default: 1.0)
int redlim_
Maximum number of Cauchy point reduction steps (default: 10)
Real TRsafe_
Safeguard size for numerically evaluating ratio (default: 1e2)
int SPiter_
Subproblem solver iteration count.
Real eta1_
Radius decrease threshold (default: 0.05)
void writeOutput(std::ostream &os, bool write_header=false) const override
Print iterate status.
TrustRegionSPGAlgorithm(ParameterList &list, const Ptr< Secant< Real > > &secant=nullPtr)
void writeName(std::ostream &os) const override
Print step name.
void writeHeader(std::ostream &os) const override
Print iterate header.
bool normAlpha_
Normalize initial Cauchy point step length (default: false)
Real interpf_
Backtracking rate for Cauchy point computation (default: 1e-1)
void dproj(Vector< Real > &x, const Vector< Real > &x0, Real del, Vector< Real > &y0, Vector< Real > &y1, Vector< Real > &yc, Vector< Real > &pwa, std::ostream &outStream=std::cout) const
Real tol2_
Relative tolerance for truncated CG (default: 1e-2)
int nhess_
Number of Hessian applications.
Real delMax_
Maximum trust-region radius (default: ROL_INF)
Real qtol_
Relative tolerance for computed decrease in Cauchy point computation (default: 1-8)
Real gamma1_
Radius decrease rate (positive rho) (default: 0.25)
Ptr< TrustRegionModel_U< Real > > model_
Container for trust-region model.
Real dgpstep(Vector< Real > &s, const Vector< Real > &w, const Vector< Real > &x, const Real alpha, std::ostream &outStream=std::cout) const
Real mu0_
Sufficient decrease parameter (default: 1e-2)
Defines the linear algebra or vector space interface.