Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
Stokhos::MPInverseModelEvaluator Class Reference

Nonlinear, inverse multi-point ModelEvaluator. More...

#include <Stokhos_MPInverseModelEvaluator.hpp>

Inherits ModelEvaluator.

Public Member Functions

 MPInverseModelEvaluator (const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::Array< int > &mp_p_index_map, const Teuchos::Array< int > &mp_g_index_map, const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &base_g_maps)
 

Protected Attributes

Teuchos::RCP
< EpetraExt::ModelEvaluator > 
me
 Underlying model evaluator. More...
 
Teuchos::Array< intmp_p_index_map
 Mapping between multipoint block parameters and mp parameters. More...
 
Teuchos::Array< intmp_g_index_map
 Mapping between stochastic block responses and sg responses. More...
 
Teuchos::Array< Teuchos::RCP
< const Epetra_Map > > 
base_g_maps
 Base maps of block g vectors. More...
 
int num_p
 Number of parameters. More...
 
int num_g
 Number of responses. More...
 
int num_p_mp
 Number of multi-point parameter vectors. More...
 
int num_g_mp
 Number of multi-point response vectors. More...
 

Overridden from EpetraExt::ModelEvaluator .

Teuchos::RCP< const Epetra_Mapget_x_map () const
 Return solution vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_f_map () const
 Return residual vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_p_map (int l) const
 Return parameter vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_g_map (int l) const
 Return response map. More...
 
Teuchos::RCP< const
Teuchos::Array< std::string > > 
get_p_names (int l) const
 Return array of parameter names. More...
 
Teuchos::RCP< const Epetra_Vectorget_p_init (int l) const
 Return initial parameters. More...
 
InArgs createInArgs () const
 Create InArgs. More...
 
OutArgs createOutArgs () const
 Create OutArgs. More...
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 Evaluate model on InArgs. More...
 

Detailed Description

Nonlinear, inverse multi-point ModelEvaluator.

MPInverseModelEvaluator is an implementation of EpetraExt::ModelEvaluator that does the inverse of MPModelEvalutor, namely it takes MP versions of the p InArgs and g and dg/dp OutArgs, and converts them to block vectors that are passed to the underlying model evaluator. This allows block nonlinear problems to appear as MP problems.

Definition at line 60 of file Stokhos_MPInverseModelEvaluator.hpp.

Constructor & Destructor Documentation

Stokhos::MPInverseModelEvaluator::MPInverseModelEvaluator ( const Teuchos::RCP< EpetraExt::ModelEvaluator > &  me,
const Teuchos::Array< int > &  mp_p_index_map,
const Teuchos::Array< int > &  mp_g_index_map,
const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &  base_g_maps 
)

Definition at line 50 of file Stokhos_MPInverseModelEvaluator.cpp.

Member Function Documentation

Teuchos::RCP< const Epetra_Map > Stokhos::MPInverseModelEvaluator::get_x_map ( ) const

Return solution vector map.

Definition at line 80 of file Stokhos_MPInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::MPInverseModelEvaluator::get_f_map ( ) const

Return residual vector map.

Definition at line 87 of file Stokhos_MPInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::MPInverseModelEvaluator::get_p_map ( int  l) const

Return parameter vector map.

Definition at line 94 of file Stokhos_MPInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::MPInverseModelEvaluator::get_g_map ( int  l) const

Return response map.

Definition at line 105 of file Stokhos_MPInverseModelEvaluator.cpp.

Teuchos::RCP< const Teuchos::Array< std::string > > Stokhos::MPInverseModelEvaluator::get_p_names ( int  l) const

Return array of parameter names.

Definition at line 116 of file Stokhos_MPInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Vector > Stokhos::MPInverseModelEvaluator::get_p_init ( int  l) const

Return initial parameters.

Definition at line 127 of file Stokhos_MPInverseModelEvaluator.cpp.

EpetraExt::ModelEvaluator::InArgs Stokhos::MPInverseModelEvaluator::createInArgs ( ) const

Create InArgs.

Definition at line 137 of file Stokhos_MPInverseModelEvaluator.cpp.

EpetraExt::ModelEvaluator::OutArgs Stokhos::MPInverseModelEvaluator::createOutArgs ( ) const

Create OutArgs.

Definition at line 151 of file Stokhos_MPInverseModelEvaluator.cpp.

void Stokhos::MPInverseModelEvaluator::evalModel ( const InArgs &  inArgs,
const OutArgs &  outArgs 
) const

Evaluate model on InArgs.

Definition at line 170 of file Stokhos_MPInverseModelEvaluator.cpp.

Member Data Documentation

Teuchos::RCP<EpetraExt::ModelEvaluator> Stokhos::MPInverseModelEvaluator::me
protected

Underlying model evaluator.

Definition at line 106 of file Stokhos_MPInverseModelEvaluator.hpp.

Teuchos::Array<int> Stokhos::MPInverseModelEvaluator::mp_p_index_map
protected

Mapping between multipoint block parameters and mp parameters.

Definition at line 109 of file Stokhos_MPInverseModelEvaluator.hpp.

Teuchos::Array<int> Stokhos::MPInverseModelEvaluator::mp_g_index_map
protected

Mapping between stochastic block responses and sg responses.

Definition at line 112 of file Stokhos_MPInverseModelEvaluator.hpp.

Teuchos::Array< Teuchos::RCP<const Epetra_Map> > Stokhos::MPInverseModelEvaluator::base_g_maps
protected

Base maps of block g vectors.

Definition at line 115 of file Stokhos_MPInverseModelEvaluator.hpp.

int Stokhos::MPInverseModelEvaluator::num_p
protected

Number of parameters.

Definition at line 118 of file Stokhos_MPInverseModelEvaluator.hpp.

int Stokhos::MPInverseModelEvaluator::num_g
protected

Number of responses.

Definition at line 121 of file Stokhos_MPInverseModelEvaluator.hpp.

int Stokhos::MPInverseModelEvaluator::num_p_mp
protected

Number of multi-point parameter vectors.

Definition at line 124 of file Stokhos_MPInverseModelEvaluator.hpp.

int Stokhos::MPInverseModelEvaluator::num_g_mp
protected

Number of multi-point response vectors.

Definition at line 127 of file Stokhos_MPInverseModelEvaluator.hpp.


The documentation for this class was generated from the following files: