OptiPack
Version of the Day
|
Concreate subclass for unconstrained optimization objective function. More...
#include <OptiPack_UnconstrainedOptMeritFunc1D_decl.hpp>
Public Types | |
typedef ScalarTraits< Scalar > ::magnitudeType | ScalarMag |
Related Functions | |
(Note that these are not member functions.) | |
template<typename Scalar > | |
const RCP < UnconstrainedOptMeritFunc1D < Scalar > > | unconstrainedOptMeritFunc1D (const RCP< const Thyra::ModelEvaluator< Scalar > > &model, const int paramIndex, const int responseIndex) |
Nonmember constructor. More... | |
Constructor/Initializers/Accessors | |
UnconstrainedOptMeritFunc1D () | |
Construct with default parameters. More... | |
void | setModel (const RCP< const Thyra::ModelEvaluator< Scalar > > &model, const int paramIndex, const int responseIndex) |
Set the model. More... | |
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. More... | |
Overridden from MeritFunc1DBase. | |
virtual bool | supportsDerivEvals () const |
virtual void | eval (const ScalarMag &alpha, const Ptr< ScalarMag > &phi, const Ptr< ScalarMag > &Dphi) const |
Concreate subclass for unconstrained optimization objective function.
This subclass turns a response-only ModelEvaluator for an unconstrained optimization problem g(p)
into a 1D merit function.
ToDo: Finish Documentation!
Definition at line 66 of file OptiPack_UnconstrainedOptMeritFunc1D_decl.hpp.
typedef ScalarTraits<Scalar>::magnitudeType OptiPack::UnconstrainedOptMeritFunc1D< Scalar >::ScalarMag |
Definition at line 72 of file OptiPack_UnconstrainedOptMeritFunc1D_decl.hpp.
OptiPack::UnconstrainedOptMeritFunc1D< Scalar >::UnconstrainedOptMeritFunc1D | ( | ) |
Construct with default parameters.
Definition at line 63 of file OptiPack_UnconstrainedOptMeritFunc1D_def.hpp.
void OptiPack::UnconstrainedOptMeritFunc1D< Scalar >::setModel | ( | const RCP< const Thyra::ModelEvaluator< Scalar > > & | model, |
const int | paramIndex, | ||
const int | responseIndex | ||
) |
Set the model.
Definition at line 70 of file OptiPack_UnconstrainedOptMeritFunc1D_def.hpp.
void OptiPack::UnconstrainedOptMeritFunc1D< Scalar >::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.
pointEvaluator | [persisting non-modified] Evaluates p = p(alpha). |
p | [persisting modified] Point that is updated with every call to eval(...) . |
g_vec | [persisting modified] The 1D vector used to store the objective value computed by model . |
g_grad_vec | [persisting modified] If !is_null(g_grad_vec) , then this will be updated when eval(...) is called. |
baseDeriv | [in] If !is_null(baseDeriv) , then gives the value to be returned in this->baseDeriv() . |
Postconditions:
[!is_null(g_grad_vec)
] this->supportsDerivEvals()==true
[!is_null(baseDeriv)
] this->supportsBaseDeriv()==true
Definition at line 88 of file OptiPack_UnconstrainedOptMeritFunc1D_def.hpp.
|
virtual |
Implements GlobiPack::MeritFunc1DBase< ScalarTraits< Scalar >::magnitudeType >.
Definition at line 112 of file OptiPack_UnconstrainedOptMeritFunc1D_def.hpp.
|
virtual |
Definition at line 119 of file OptiPack_UnconstrainedOptMeritFunc1D_def.hpp.
|
related |
Nonmember constructor.
Definition at line 156 of file OptiPack_UnconstrainedOptMeritFunc1D_decl.hpp.