44 #ifndef OPTIPACK_UNCONSTRAINED_OPT_MERIT_FUNC_1D_DECL_HPP
45 #define OPTIPACK_UNCONSTRAINED_OPT_MERIT_FUNC_1D_DECL_HPP
51 #include "Thyra_OperatorVectorTypes.hpp"
65 template<
typename Scalar>
84 const int responseIndex
115 const RCP<Thyra::VectorBase<Scalar> > &p,
116 const RCP<Thyra::VectorBase<Scalar> > &g_vec,
117 const RCP<Thyra::VectorBase<Scalar> > &g_grad_vec
154 template<
typename Scalar>
158 const int paramIndex,
159 const int responseIndex
164 meritFunc->setModel(model, paramIndex, responseIndex);
172 #endif // OPTIPACK_UNCONSTRAINED_OPT_MERIT_FUNC_1D_DECL_HPP
Concreate subclass for unconstrained optimization objective function.
RCP< const Thyra::ModelEvaluator< Scalar > > model_
UnconstrainedOptMeritFunc1D()
Construct with default parameters.
RCP< Thyra::VectorBase< Scalar > > g_grad_vec_
void setModel(const RCP< const Thyra::ModelEvaluator< Scalar > > &model, const int paramIndex, const int responseIndex)
Set the model.
RCP< Thyra::VectorBase< Scalar > > p_
virtual void eval(const ScalarMag &alpha, const Ptr< ScalarMag > &phi, const Ptr< ScalarMag > &Dphi) const
void setEvaluationQuantities(const RCP< const LineSearchPointEvaluatorBase< Scalar > > &pointEvaluator, const RCP< Thyra::VectorBase< Scalar > > &p, const RCP< Thyra::VectorBase< Scalar > > &g_vec, const RCP< Thyra::VectorBase< Scalar > > &g_grad_vec)
Set the evaluation qualities.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
ScalarTraits< Scalar >::magnitudeType ScalarMag
RCP< const LineSearchPointEvaluatorBase< Scalar > > pointEvaluator_
virtual bool supportsDerivEvals() const
RCP< Thyra::VectorBase< Scalar > > g_vec_
Base class interface for line search point updates.
const RCP< UnconstrainedOptMeritFunc1D< Scalar > > unconstrainedOptMeritFunc1D(const RCP< const Thyra::ModelEvaluator< Scalar > > &model, const int paramIndex, const int responseIndex)
Nonmember constructor.