44 #ifndef ROL_BALLINDICATOROBJECTIVE_H
45 #define ROL_BALLINDICATOROBJECTIVE_H
59 template<
typename Real>
71 const Real
zero(0), one(1);
73 Real norm =
pwa_->norm();
74 return (norm <=
rad_) ?
zero : ROL_INF<Real>();
79 Real norm =
pwa_->norm();
BallIndicatorObjective(const Ptr< Vector< Real >> &x, Real rad)
Provides the interface to evaluate objective functions.
void prox(Vector< Real > &Pv, const Vector< Real > &v, Real t, Real &tol)
virtual void axpy(const Real alpha, const Vector &x)
Compute where .
Defines the linear algebra or vector space interface.
Objective_SerialSimOpt(const Ptr< Obj > &obj, const V &ui) z0_ zero()
Provides the interface to evaluate the indicator function of norm constraints.
const Ptr< Vector< Real > > x_
virtual void set(const Vector &x)
Set where .
const Ptr< Vector< Real > > pwa_
Real value(const Vector< Real > &x, Real &tol)
Compute value.