MOOCHO/Thyra Adapter Software
Version of the Day
|
Implement the NLPFirstOrder interface using a Thyra::ModelEvaluator
object.
More...
#include <NLPInterfacePack_NLPDirectThyraModelEvaluator.hpp>
Public Member Functions | |
STANDARD_COMPOSITION_MEMBERS (Thyra::DirectionalFiniteDiffCalculator< value_type >, objDirecFiniteDiffCalculator) | |
Utility object that computes directional finite differences for objective. More... | |
STANDARD_COMPOSITION_MEMBERS (Thyra::DirectionalFiniteDiffCalculator< value_type >, conDirecFiniteDiffCalculator) | |
Utility object that computes directional finite differences for constraints. More... | |
STANDARD_MEMBER_COMPOSITION_MEMBERS (bool, DfDp_is_const) | |
Set if model.DfDp is constant or not. More... | |
NLPDirectThyraModelEvaluator () | |
Initialize to uninitialized. More... | |
NLPDirectThyraModelEvaluator (const Teuchos::RCP< Thyra::ModelEvaluator< value_type > > &model, const int p_idx, const int g_idx, const objDirecFiniteDiffCalculator_ptr_t objDirecFiniteDiffCalculator=Teuchos::null, const conDirecFiniteDiffCalculator_ptr_t conDirecFiniteDiffCalculator=Teuchos::null) | |
Calls initialize() . More... | |
void | initialize (const Teuchos::RCP< Thyra::ModelEvaluator< value_type > > &model, const int p_idx, const int g_idx, const objDirecFiniteDiffCalculator_ptr_t objDirecFiniteDiffCalculator=Teuchos::null, const conDirecFiniteDiffCalculator_ptr_t conDirecFiniteDiffCalculator=Teuchos::null) |
.Initialize given a Thyra::ModelEvaluator and a description of how to interpret it. More... | |
Public Member Functions inherited from NLPInterfacePack::NLPThyraModelEvaluatorBase | |
STANDARD_MEMBER_COMPOSITION_MEMBERS (bool, showModelEvaluatorTrace) | |
Set if a trace of the model evaluations is shown or not. More... | |
void | initialize (bool test_setup) |
bool | is_initialized () const |
vec_space_ptr_t | space_x () const |
vec_space_ptr_t | space_c () const |
size_type | num_bounded_x () const |
void | force_xinit_in_bounds (bool force_xinit_in_bounds) |
bool | force_xinit_in_bounds () const |
const Vector & | xinit () const |
const Vector & | xl () const |
const Vector & | xu () const |
value_type | max_var_bounds_viol () const |
void | set_f (value_type *f) |
void | set_c (VectorMutable *c) |
void | unset_quantities () |
void | scale_f (value_type scale_f) |
value_type | scale_f () const |
void | report_final_solution (const Vector &x, const Vector *lambda, const Vector *nu, bool optimal) |
void | set_Gf (VectorMutable *Gf) |
Overridden public members from NLP | |
void | initialize (bool test_setup) |
void | unset_quantities () |
Overridden public members from NLPObjGrad | |
bool | supports_Gf () const |
bool | supports_Gf_prod () const |
value_type | calc_Gf_prod (const Vector &x, const Vector &d, bool newx) const |
Overridden public members from NLPDirect | |
Range1D | var_dep () const |
Range1D | var_indep () const |
const mat_fcty_ptr_t | factory_D () const |
const mat_sym_nonsing_fcty_ptr_t | factory_S () const |
void | calc_point (const Vector &x, value_type *f, VectorMutable *c, bool recalc_c, VectorMutable *Gf, VectorMutable *py, VectorMutable *rGf, MatrixOp *GcU, MatrixOp *D, MatrixOp *Uz) const |
void | calc_semi_newton_step (const Vector &x, VectorMutable *c, bool recalc_c, VectorMutable *py) const |
Additional Inherited Members | |
Protected Member Functions inherited from NLPInterfacePack::NLPThyraModelEvaluatorBase | |
void | evalModel (const Vector &x, bool newx, const ZeroOrderInfo *zero_order_info, const ObjGradInfo *obj_grad_info) const |
void | imp_calc_f (const Vector &x, bool newx, const ZeroOrderInfo &zero_order_info) const |
void | imp_calc_c (const Vector &x, bool newx, const ZeroOrderInfo &zero_order_info) const |
void | imp_calc_Gf (const Vector &x, bool newx, const ObjGradInfo &obj_grad_info) const |
NLPThyraModelEvaluatorBase () | |
void | initializeBase (const Teuchos::RCP< Thyra::ModelEvaluator< value_type > > &model, const int p_idx, const int g_idx) |
Initialize given a Thyra::ModelEvaluator and a description of how to interpret it. More... | |
void | updateInitialGuessAndBounds () const |
Update the initial guess and bounds . More... | |
void | assert_is_initialized () const |
void | copy_from_model_x (const Thyra::VectorBase< value_type > *model_x, VectorMutable *x_D) const |
void | copy_from_model_p (const Thyra::VectorBase< value_type > *model_p, VectorMutable *x_I) const |
void | set_x (const Vector &x, Thyra::ModelEvaluatorBase::InArgs< value_type > *model_inArgs_inout) const |
void | preprocessBaseInOutArgs (const Vector &x, bool newx, const ZeroOrderInfo *zero_order_info, const ObjGradInfo *obj_grad_info, const NLPFirstOrder::FirstOrderInfo *first_order_info, Thyra::ModelEvaluatorBase::InArgs< value_type > *model_inArgs_inout, Thyra::ModelEvaluatorBase::OutArgs< value_type > *model_outArgs_inout, MatrixOp **Gc_out, VectorMutable **Gf_out, value_type **f_out, VectorMutable **c_out) const |
void | postprocessBaseOutArgs (Thyra::ModelEvaluatorBase::OutArgs< value_type > *model_outArgs_inout, VectorMutable *Gf, value_type *f, VectorMutable *c) const |
Implement the NLPFirstOrder interface using a Thyra::ModelEvaluator
object.
ToDo: Finish documentation!
Definition at line 58 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.hpp.
NLPInterfacePack::NLPDirectThyraModelEvaluator::NLPDirectThyraModelEvaluator | ( | ) |
Initialize to uninitialized.
Definition at line 65 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
NLPInterfacePack::NLPDirectThyraModelEvaluator::NLPDirectThyraModelEvaluator | ( | const Teuchos::RCP< Thyra::ModelEvaluator< value_type > > & | model, |
const int | p_idx, | ||
const int | g_idx, | ||
const objDirecFiniteDiffCalculator_ptr_t | objDirecFiniteDiffCalculator = Teuchos::null , |
||
const conDirecFiniteDiffCalculator_ptr_t | conDirecFiniteDiffCalculator = Teuchos::null |
||
) |
Calls initialize()
.
Definition at line 69 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
NLPInterfacePack::NLPDirectThyraModelEvaluator::STANDARD_COMPOSITION_MEMBERS | ( | Thyra::DirectionalFiniteDiffCalculator< value_type > | , |
objDirecFiniteDiffCalculator | |||
) |
Utility object that computes directional finite differences for objective.
NLPInterfacePack::NLPDirectThyraModelEvaluator::STANDARD_COMPOSITION_MEMBERS | ( | Thyra::DirectionalFiniteDiffCalculator< value_type > | , |
conDirecFiniteDiffCalculator | |||
) |
Utility object that computes directional finite differences for constraints.
NLPInterfacePack::NLPDirectThyraModelEvaluator::STANDARD_MEMBER_COMPOSITION_MEMBERS | ( | bool | , |
DfDp_is_const | |||
) |
Set if model.DfDp is constant or not.
void NLPInterfacePack::NLPDirectThyraModelEvaluator::initialize | ( | const Teuchos::RCP< Thyra::ModelEvaluator< value_type > > & | model, |
const int | p_idx, | ||
const int | g_idx, | ||
const objDirecFiniteDiffCalculator_ptr_t | objDirecFiniteDiffCalculator = Teuchos::null , |
||
const conDirecFiniteDiffCalculator_ptr_t | conDirecFiniteDiffCalculator = Teuchos::null |
||
) |
.Initialize given a Thyra::ModelEvaluator
and a description of how to interpret it.
ToDo: Finish documentation!
Definition at line 84 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 113 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 123 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 130 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 139 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 144 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 165 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 170 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Implements NLPInterfacePack::NLPDirect.
Definition at line 176 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Reimplemented from NLPInterfacePack::NLPDirect.
Definition at line 182 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Implements NLPInterfacePack::NLPDirect.
Definition at line 187 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.
|
virtual |
Implements NLPInterfacePack::NLPDirect.
Definition at line 451 of file NLPInterfacePack_NLPDirectThyraModelEvaluator.cpp.