10 #ifndef ROL_BALLINDICATOROBJECTIVE_H
11 #define ROL_BALLINDICATOROBJECTIVE_H
25 template<
typename Real>
37 const Real
zero(0), one(1);
39 Real norm =
pwa_->norm();
40 return (norm <=
rad_) ?
zero : ROL_INF<Real>();
45 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.