44 #ifndef ROL_TYPEB_TRUSTREGIONSPGALGORITHM_HPP
45 #define ROL_TYPEB_TRUSTREGIONSPGALGORITHM_HPP
58 template<
typename Real>
61 Ptr<TrustRegionModel_U<Real>>
model_;
137 std::ostream &outStream = std::cout)
override;
139 void writeHeader( std::ostream& os )
const override;
141 void writeName( std::ostream& os )
const override;
143 void writeOutput( std::ostream& os,
const bool write_header =
false )
const override;
151 std::ostream &outStream = std::cout);
170 std::ostream &outStream = std::cout)
const;
180 std::ostream &outStream = std::cout)
const;
196 std::ostream &outStream = std::cout);
206 Vector<Real> &dwa, std::ostream &outStream = std::cout);
210 Vector<Real> &pwa, std::ostream &outStream = std::cout)
const;
bool writeHeader_
Flag to write header at every iteration.
int maxit_
Maximum number of CG iterations (default: 25)
Provides the interface to evaluate objective functions.
int SPflag_
Subproblem solver termination flag.
void writeOutput(std::ostream &os, const bool write_header=false) const override
Print iterate status.
Real eta1_
Radius decrease threshold (default: 0.05)
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)
Real qtol_
Relative tolerance for computed decrease in Cauchy point computation (default: 1-8) ...
Real extrapf_
Extrapolation rate for Cauchy point computation (default: 1e1)
TrustRegionSPGAlgorithm(ParameterList &list, const Ptr< Secant< Real >> &secant=nullPtr)
unsigned verbosity_
Output level (default: 0)
Real spexp_
Relative tolerance exponent for subproblem solve (default: 1, range: [1,2])
Real gamma2_
Radius increase rate (default: 2.5)
void computeGradient(const Vector< Real > &x, Vector< Real > &g, Vector< Real > &pwa, Real del, Objective< Real > &obj, bool accept, Real >ol, Real &gnorm, std::ostream &outStream=std::cout) const
int SPiter_
Subproblem solver iteration count.
Real interpf_
Backtracking rate for Cauchy point computation (default: 1e-1)
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)
Defines the linear algebra or vector space interface.
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 eps_
Safeguard for numerically evaluating ratio.
void writeName(std::ostream &os) const override
Print step name.
Real delMax_
Maximum trust-region radius (default: ROL_INF)
Real dgpstep(Vector< Real > &s, const Vector< Real > &w, const Vector< Real > &x, const Real alpha, std::ostream &outStream=std::cout) const
ETRFlag
Enumation of flags used by trust-region solvers.
Real TRsafe_
Safeguard size for numerically evaluating ratio (default: 1e2)
bool interpRad_
Interpolate the trust-region radius if ratio is negative (default: false)
Real gamma1_
Radius decrease rate (positive rho) (default: 0.25)
Real eta0_
Step acceptance threshold (default: 0.05)
Provides the interface to evaluate trust-region model functions.
TRUtils::ETRFlag TRflag_
Trust-region exit flag.
void initialize(Vector< Real > &x, const Vector< Real > &g, Real ftol, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout)
Provides an interface to run bound constrained optimization algorithms.
Real tol2_
Relative tolerance for truncated CG (default: 1e-2)
ESecant
Enumeration of secant update algorithms.
void writeHeader(std::ostream &os) const override
Print iterate header.
Real eta2_
Radius increase threshold (default: 0.9)
int redlim_
Maximum number of Cauchy point reduction steps (default: 10)
Real tol1_
Absolute tolerance for truncated CG (default: 1e-4)
Provides interface for and implements limited-memory secant operators.
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 mu0_
Sufficient decrease parameter (default: 1e-2)
Ptr< TrustRegionModel_U< Real > > model_
Container for trust-region model.
bool normAlpha_
Normalize initial Cauchy point step length (default: false)
Provides the interface to apply upper and lower bound constraints.
bool useSecantHessVec_
Flag to use secant as Hessian (default: false)
bool useSecantPrecond_
Flag to use secant as a preconditioner (default: false)
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...
int explim_
Maximum number of Cauchy point expansion steps (default: 10)
ESecant esec_
Secant type (default: Limited-Memory BFGS)
Real alpha_
Initial Cauchy point step length (default: 1.0)
Provides an interface to run the trust-region algorithm.
std::vector< bool > useInexact_
Real gamma0_
Radius decrease rate (negative rho) (default: 0.0625)
int nhess_
Number of Hessian applications.
Real computeValue(Real inTol, Real &outTol, Real pRed, Real &fold, int iter, const Vector< Real > &x, const Vector< Real > &xold, Objective< Real > &obj)