45 #ifndef ROL_POLYHEDRALPROJECTIONFACTORY_H
46 #define ROL_POLYHEDRALPROJECTIONFACTORY_H
76 std::string retString;
81 case PPA_NEWTON: retString =
"Semismooth Newton";
break;
84 case PPA_LAST: retString =
"Last Type (Dummy)";
break;
85 default: retString =
"INVALID EPolyProjAlgo";
136 template<
typename Real>
143 ParameterList &list) {
146 case PPA_DAIFLETCHER:
return makePtr<DaiFletcherProjection<Real>>(xprim,xdual,bnd,con,mul,res,list);
break;
147 case PPA_DYKSTRA:
return makePtr<DykstraProjection<Real>>(xprim,xdual,bnd,con,mul,res,list);
break;
148 case PPA_DOUGLASRACHFORD:
return makePtr<DouglasRachfordProjection<Real>>(xprim,xdual,bnd,con,mul,res,list);
break;
149 case PPA_NEWTON:
return makePtr<SemismoothNewtonProjection<Real>>(xprim,xdual,bnd,con,mul,res,list);
break;
150 case PPA_RIDDERS:
return makePtr<RiddersProjection<Real>>(xprim,xdual,bnd,con,mul,res,list);
break;
151 case PPA_BRENTS:
return makePtr<BrentsProjection<Real>>(xprim,xdual,bnd,con,mul,res,list);
break;
152 default:
return nullPtr;
std::string EPolyProjAlgoToString(EPolyProjAlgo alg)
EPolyProjAlgo StringToEPolyProjAlgo(std::string s)
EPolyProjAlgo & operator++(EPolyProjAlgo &type)
Ptr< PolyhedralProjection< Real > > PolyhedralProjectionFactory(const Vector< Real > &xprim, const Vector< Real > &xdual, const Ptr< BoundConstraint< Real >> &bnd, const Ptr< Constraint< Real >> &con, const Vector< Real > &mul, const Vector< Real > &res, ParameterList &list)
std::string removeStringFormat(std::string s)
Defines the linear algebra or vector space interface.
EPolyProjAlgo
Enumeration of polyhedral projecdtion algorithm types.
EPolyProjAlgo & operator--(EPolyProjAlgo &type)
int isValidPolyProjAlgo(EPolyProjAlgo alg)
Verifies validity of a PolyProjAlgo enum.
Provides the interface to apply upper and lower bound constraints.
Defines the general constraint operator interface.