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