44 #ifndef ROL_TYPEB_COLEMANLIALGORITHM_HPP
45 #define ROL_TYPEB_COLEMANLIALGORITHM_HPP
60 template<
typename Real>
63 Ptr<TrustRegionModel_U<Real>>
model_;
106 Ptr<ReducedLinearConstraint<Real>>
rcon_;
107 Ptr<NullSpaceOperator<Real>>
ns_;
121 std::ostream &outStream = std::cout)
override;
123 void writeHeader( std::ostream& os )
const override;
125 void writeName( std::ostream& os )
const override;
127 void writeOutput( std::ostream& os,
const bool write_header =
false )
const override;
134 std::ostream &outStream = std::cout);
145 std::ostream &outStream = std::cout)
const;
154 Real
dtrqsol(
const Real xtx,
const Real ptp,
const Real ptx,
const Real del)
const;
180 const Real tol,
const Real stol,
184 std::ostream &outStream = std::cout)
const;
Provides the interface to evaluate objective functions.
Real eta0_
Step acceptance threshold (default: 0.05)
Provides an interface to run the affine-scaling trust-region algorithm of Coleman and Li...
Ptr< TrustRegionModel_U< Real > > model_
Container for trust-region model.
Real delMax_
Maximum trust-region radius (default: ROL_INF)
Ptr< ReducedLinearConstraint< Real > > rcon_
Equality constraint restricted to current active variables.
Real eta2_
Radius increase threshold (default: 0.9)
Real dtrpcg(Vector< Real > &w, int &iflag, int &iter, const Vector< Real > &g, const Vector< Real > &x, const Vector< Real > &gdual, const Real del, TrustRegionModel_U< Real > &model, BoundConstraint< Real > &bnd, const Real tol, const Real stol, Vector< Real > &p, Vector< Real > &q, Vector< Real > &r, Vector< Real > &t, Vector< Real > &pwa1, Vector< Real > &pwa2, Vector< Real > &dwa, std::ostream &outStream=std::cout) const
void writeHeader(std::ostream &os) const override
Print iterate header.
Real gamma1_
Radius decrease rate (positive rho) (default: 0.25)
Real tol2_
Relative tolerance for truncated CG (default: 1e-2)
Defines the linear algebra or vector space interface.
void writeName(std::ostream &os) const override
Print step name.
bool useSecantHessVec_
Flag to use secant as Hessian (default: false)
ETRFlag
Enumation of flags used by trust-region solvers.
Real tol1_
Absolute tolerance for truncated CG (default: 1e-4)
TRUtils::ETRFlag TRflag_
Trust-region exit flag.
Ptr< NullSpaceOperator< Real > > ns_
Null space projection onto reduced equality constraint Jacobian.
void applyC(Vector< Real > &Cv, const Vector< Real > &v, const Vector< Real > &x, const Vector< Real > &g, BoundConstraint< Real > &bnd, Vector< Real > &pwa) const
Provides the interface to evaluate trust-region model functions.
Provides an interface to run bound constrained optimization algorithms.
Real dgpstep(Vector< Real > &s, const Vector< Real > &w, const Vector< Real > &x, const Real alpha, std::ostream &outStream=std::cout) const
bool hasEcon_
Flag signifies if equality constraints exist.
ESecant
Enumeration of secant update algorithms.
Provides interface for and implements limited-memory secant operators.
Real dtrqsol(const Real xtx, const Real ptp, const Real ptx, const Real del) const
Real gamma0_
Radius decrease rate (negative rho) (default: 0.0625)
bool useSecantPrecond_
Flag to use secant as a preconditioner (default: false)
Real eta1_
Radius decrease threshold (default: 0.05)
ESecant esec_
Secant type (default: Limited-Memory BFGS)
Real gamma2_
Radius increase rate (default: 2.5)
void writeOutput(std::ostream &os, const bool write_header=false) const override
Print iterate status.
Provides the interface to apply upper and lower bound constraints.
int nhess_
Number of Hessian applications.
unsigned verbosity_
Output level (default: 0)
Real alphaMax_
Maximum value of relaxation parameter (default: 0.999)
bool writeHeader_
Flag to write header at every iteration.
void applyHessian(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, const Vector< Real > &g, TrustRegionModel_U< Real > &model, BoundConstraint< Real > &bnd, Real &tol, Vector< Real > &pwa1, Vector< Real > &pwa2) const
int SPflag_
Subproblem solver termination flag.
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 mu0_
Sufficient decrease parameter (default: 1e-2)
ColemanLiAlgorithm(ParameterList &list, const Ptr< Secant< Real >> &secant=nullPtr)
void initialize(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout)
Real spexp_
Relative tolerance exponent for subproblem solve (default: 1, range: [1,2])
bool interpRad_
Interpolate the trust-region radius if ratio is negative (default: false)
int SPiter_
Subproblem solver iteration count.
Real eps_
Safeguard for numerically evaluating ratio.
Real TRsafe_
Safeguard size for numerically evaluating ratio (default: 1e2)
void applyPrecond(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, const Vector< Real > &g, TrustRegionModel_U< Real > &model, BoundConstraint< Real > &bnd, Real &tol, Vector< Real > &dwa, Vector< Real > &pwa) const
int maxit_
Maximum number of CG iterations (default: 20)