44 #ifndef OPTIPACK_UNCONSTRAINED_OPT_MERIT_FUNC_1D_DECL_HPP
45 #define OPTIPACK_UNCONSTRAINED_OPT_MERIT_FUNC_1D_DECL_HPP
48 #include "OptiPack_Types.hpp"
49 #include "GlobiPack_MeritFunc1DBase.hpp"
50 #include "OptiPack_LineSearchPointEvaluatorBase.hpp"
51 #include "Thyra_OperatorVectorTypes.hpp"
65 template<
typename Scalar>
84 const int responseIndex
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.
UnconstrainedOptMeritFunc1D()
Construct with default parameters.
void setModel(const RCP< const Thyra::ModelEvaluator< Scalar > > &model, const int paramIndex, const int responseIndex)
Set the model.
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
virtual bool supportsDerivEvals() const
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.