EpetraMultiPointModelEval4DOpt Class Reference

A simple serial example model which includes a parameter subvector and a response function that can be used to define an optimization problem. More...

#include <EpetraMultiPointModelEval4DOpt.hpp>

Inheritance diagram for EpetraMultiPointModelEval4DOpt:

Inheritance graph
[legend]
List of all members.

Overridden from EpetraExt::ModelEvaluator .

Teuchos::RefCountPtr< const
Epetra_Map
get_x_map () const
 
Teuchos::RefCountPtr< const
Epetra_Map
get_f_map () const
 
Teuchos::RefCountPtr< const
Epetra_Map
get_p_map (int l) const
 .
Teuchos::RefCountPtr< const
Epetra_Map
get_g_map (int j) const
 .
Teuchos::RefCountPtr< const
Epetra_Vector
get_x_init () const
 
Teuchos::RefCountPtr< const
Epetra_Vector
get_p_init (int l) const
 
Teuchos::RefCountPtr< const
Epetra_Vector
get_x_lower_bounds () const
 
Teuchos::RefCountPtr< const
Epetra_Vector
get_x_upper_bounds () const
 
Teuchos::RefCountPtr< const
Epetra_Vector
get_p_lower_bounds (int l) const
 
Teuchos::RefCountPtr< const
Epetra_Vector
get_p_upper_bounds (int l) const
 
Teuchos::RefCountPtr< Epetra_Operatorcreate_W () const
 
InArgs createInArgs () const
 
OutArgs createOutArgs () const
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 

Public Member Functions

 EpetraMultiPointModelEval4DOpt (Teuchos::RefCountPtr< Epetra_Comm > epetra_comm, const double xt0=1.0, const double xt1=1.0, const double pt0=2.0, const double pt1=0.0, const double d=10.0, const double x00=1.0, const double x01=1.0, const double p00=2.0, const double p01=0.0, const double q0=0.0)
 
void set_p_bounds (double pL0, double pL1, double pU0, double pU1)
 
void set_x_bounds (double xL0, double xL1, double xU0, double xU1)
 

Private Attributes

bool isInitialized_
Teuchos::RefCountPtr< const
Epetra_Comm
epetra_comm_
double xt0_
double xt1_
double pt0_
double pt1_
double d_
Teuchos::RefCountPtr< const
Epetra_Map
map_x_
Teuchos::RefCountPtr< const
Epetra_Map
map_p_
Teuchos::RefCountPtr< const
Epetra_Map
map_q_
Teuchos::RefCountPtr< const
Epetra_Map
map_g_
Teuchos::RefCountPtr< Epetra_VectorxL_
Teuchos::RefCountPtr< Epetra_VectorxU_
Teuchos::RefCountPtr< Epetra_VectorpL_
Teuchos::RefCountPtr< Epetra_VectorpU_
Teuchos::RefCountPtr< Epetra_VectorgL_
Teuchos::RefCountPtr< Epetra_VectorgU_
Teuchos::RefCountPtr< Epetra_Vectorx0_
Teuchos::RefCountPtr< Epetra_Vectorp0_
Teuchos::RefCountPtr< Epetra_Vectorq_
Teuchos::RefCountPtr< Epetra_VectorqL_
Teuchos::RefCountPtr< Epetra_VectorqU_
Teuchos::RefCountPtr< Epetra_CrsGraphW_graph_

Detailed Description

A simple serial example model which includes a parameter subvector and a response function that can be used to define an optimization problem.

Represents the model:

    f[0] =        x[0]      + x[1]*x[1] - p[0];
    f[1] = d_ * ( x[0]*x[0] - x[1]      - p[1] );

    g[0] = 0.5 * ( sqr(x[0]-xt0_) + sqr(x[1]-xt1_) + sqr(p[0]-pt0_) + sqr(p[1]-pt1_) );
 
 

where there is just one state vector x = [ x[0], x[1] ] and one parameter subvector p = [ p[0], p[1] ], AND a second parameter subvector q = [ q[0] ] for the multipoint parameter

See the function evalModel() for more details.

Definition at line 30 of file EpetraMultiPointModelEval4DOpt.hpp.


Constructor & Destructor Documentation

EpetraMultiPointModelEval4DOpt::EpetraMultiPointModelEval4DOpt ( Teuchos::RefCountPtr< Epetra_Comm epetra_comm,
const double  xt0 = 1.0,
const double  xt1 = 1.0,
const double  pt0 = 2.0,
const double  pt1 = 0.0,
const double  d = 10.0,
const double  x00 = 1.0,
const double  x01 = 1.0,
const double  p00 = 2.0,
const double  p01 = 0.0,
const double  q0 = 0.0 
)

Definition at line 14 of file EpetraMultiPointModelEval4DOpt.cpp.


Member Function Documentation

void EpetraMultiPointModelEval4DOpt::set_p_bounds ( double  pL0,
double  pL1,
double  pU0,
double  pU1 
)

Definition at line 67 of file EpetraMultiPointModelEval4DOpt.cpp.

void EpetraMultiPointModelEval4DOpt::set_x_bounds ( double  xL0,
double  xL1,
double  xU0,
double  xU1 
)

Definition at line 77 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Map > EpetraMultiPointModelEval4DOpt::get_x_map (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 90 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Map > EpetraMultiPointModelEval4DOpt::get_f_map (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 96 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Map > EpetraMultiPointModelEval4DOpt::get_p_map ( int  l  )  const [virtual]

.

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 102 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Map > EpetraMultiPointModelEval4DOpt::get_g_map ( int  j  )  const [virtual]

.

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 110 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraMultiPointModelEval4DOpt::get_x_init (  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 117 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraMultiPointModelEval4DOpt::get_p_init ( int  l  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 123 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraMultiPointModelEval4DOpt::get_x_lower_bounds (  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 131 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraMultiPointModelEval4DOpt::get_x_upper_bounds (  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 137 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraMultiPointModelEval4DOpt::get_p_lower_bounds ( int  l  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 143 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraMultiPointModelEval4DOpt::get_p_upper_bounds ( int  l  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 151 of file EpetraMultiPointModelEval4DOpt.cpp.

Teuchos::RefCountPtr< Epetra_Operator > EpetraMultiPointModelEval4DOpt::create_W (  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 159 of file EpetraMultiPointModelEval4DOpt.cpp.

EpetraExt::ModelEvaluator::InArgs EpetraMultiPointModelEval4DOpt::createInArgs (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 165 of file EpetraMultiPointModelEval4DOpt.cpp.

EpetraExt::ModelEvaluator::OutArgs EpetraMultiPointModelEval4DOpt::createOutArgs (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 175 of file EpetraMultiPointModelEval4DOpt.cpp.

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

Definition at line 216 of file EpetraMultiPointModelEval4DOpt.cpp.


Member Data Documentation

bool EpetraMultiPointModelEval4DOpt::isInitialized_ [private]

Definition at line 93 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<const Epetra_Comm> EpetraMultiPointModelEval4DOpt::epetra_comm_ [private]

Definition at line 95 of file EpetraMultiPointModelEval4DOpt.hpp.

double EpetraMultiPointModelEval4DOpt::xt0_ [private]

Definition at line 97 of file EpetraMultiPointModelEval4DOpt.hpp.

double EpetraMultiPointModelEval4DOpt::xt1_ [private]

Definition at line 98 of file EpetraMultiPointModelEval4DOpt.hpp.

double EpetraMultiPointModelEval4DOpt::pt0_ [private]

Definition at line 99 of file EpetraMultiPointModelEval4DOpt.hpp.

double EpetraMultiPointModelEval4DOpt::pt1_ [private]

Definition at line 100 of file EpetraMultiPointModelEval4DOpt.hpp.

double EpetraMultiPointModelEval4DOpt::d_ [private]

Definition at line 101 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<const Epetra_Map> EpetraMultiPointModelEval4DOpt::map_x_ [private]

Definition at line 102 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<const Epetra_Map> EpetraMultiPointModelEval4DOpt::map_p_ [private]

Definition at line 103 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<const Epetra_Map> EpetraMultiPointModelEval4DOpt::map_q_ [private]

Definition at line 104 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<const Epetra_Map> EpetraMultiPointModelEval4DOpt::map_g_ [private]

Definition at line 105 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::xL_ [private]

Definition at line 107 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::xU_ [private]

Definition at line 108 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::pL_ [private]

Definition at line 109 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::pU_ [private]

Definition at line 110 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::gL_ [private]

Definition at line 111 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::gU_ [private]

Definition at line 112 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::x0_ [private]

Definition at line 113 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::p0_ [private]

Definition at line 114 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::q_ [private]

Definition at line 115 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::qL_ [private]

Definition at line 116 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraMultiPointModelEval4DOpt::qU_ [private]

Definition at line 117 of file EpetraMultiPointModelEval4DOpt.hpp.

Teuchos::RefCountPtr<Epetra_CrsGraph> EpetraMultiPointModelEval4DOpt::W_graph_ [private]

Definition at line 119 of file EpetraMultiPointModelEval4DOpt.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:40:49 2010 for EpetraExt Package Browser (Single Doxygen Collection) by  doxygen 1.4.7