Thyra::ModelEvaluator object.
More...
#include <NLPInterfacePack_NLPThyraModelEvaluatorBase.hpp>
Inheritance diagram for NLPInterfacePack::NLPThyraModelEvaluatorBase:
Overridden public members from NLP | |
| 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) |
| | |
Overridden public members from NLPObjGrad | |
| void | set_Gf (VectorMutable *Gf) |
| | |
Overridden protected members from NLP | |
| 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 |
| | |
Overridden protected members from NLPObjGrad | |
| void | imp_calc_Gf (const Vector &x, bool newx, const ObjGradInfo &obj_grad_info) const |
| | |
Protected functions to be used by subclasses | |
| NLPThyraModelEvaluatorBase () | |
| void | initializeBase (const Teuchos::RefCountPtr< 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. | |
| void | updateInitialGuessAndBounds () |
| Update the initial guess and bounds . | |
| 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 |
| | |
Protected Member Functions | |
| void | evalModel (const Vector &x, bool newx, const ZeroOrderInfo *zero_order_info, const ObjGradInfo *obj_grad_info) const |
| | |
Thyra::ModelEvaluator object.
The nonlinear program is mapped as follows:
min f(x)
s.t. c(x) = 0
xL <= x <= xu
where:
x = [ model.x ]
[ model.p(p_idx) ]
f(x) = model.g(g_idx)
c(x) = model.f()
where p_idx > 0 and g_idx > 0 are some indexes that specificy the indepenent variables and the objective function.
In addition, the client can also override the bounds on model.x and model.p(p_idx) defined in the object model.
The current implementation of this class does not allow the use of any of the auxiliary functions model.g() as undecomposed equality constraints or extra general inequality constraints. This type of functionality can be added when it is needed (just ask for it).
ToDo: Finish documentation!
Definition at line 78 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.hpp.
|
|
Initialize to uninitialized Definition at line 215 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Reimplemented from NLPInterfacePack::NLPObjGrad. Reimplemented in NLPInterfacePack::NLPDirectThyraModelEvaluator, and NLPInterfacePack::NLPFirstOrderThyraModelEvaluator. Definition at line 54 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 67 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 73 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 79 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 84 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 89 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 94 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 99 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 104 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 109 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 114 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Reimplemented from NLPInterfacePack::NLP. Definition at line 119 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Reimplemented from NLPInterfacePack::NLP. Definition at line 125 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Reimplemented from NLPInterfacePack::NLPObjGrad. Reimplemented in NLPInterfacePack::NLPDirectThyraModelEvaluator, and NLPInterfacePack::NLPFirstOrderThyraModelEvaluator. Definition at line 131 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 136 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Implements NLPInterfacePack::NLP. Definition at line 141 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||||||
|
Reimplemented from NLPInterfacePack::NLP. Definition at line 146 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Reimplemented from NLPInterfacePack::NLPObjGrad. Definition at line 179 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||
|
Implements NLPInterfacePack::NLP. Definition at line 187 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||
|
Implements NLPInterfacePack::NLP. Definition at line 195 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||
|
Implements NLPInterfacePack::NLPObjGrad. Definition at line 205 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||
|
Initialize given a
Todo: Add arguments for auxiliary inequalites and equalities Definition at line 220 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Update the initial guess and bounds .
Definition at line 337 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
|
Definition at line 382 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||
|
Definition at line 391 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||
|
Definition at line 397 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||
|
Definition at line 403 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 434 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||||||
|
Definition at line 536 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
|
||||||||||||||||||||
|
Definition at line 580 of file NLPInterfacePack_NLPThyraModelEvaluatorBase.cpp. |
1.3.9.1