#include <EpetraModelEval4DOpt.hpp>
Inheritance diagram for EpetraModelEval4DOpt:

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_Operator > | create_W () const |
| | |
| InArgs | createInArgs () const |
| | |
| OutArgs | createOutArgs () const |
| | |
| void | evalModel (const InArgs &inArgs, const OutArgs &outArgs) const |
| | |
Public Member Functions | |
| EpetraModelEval4DOpt (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) | |
| | |
| void | setSupportDerivs (bool supportDerivs) |
| | |
| void | set_p_bounds (double pL0, double pL1, double pU0, double pU1) |
| | |
| void | set_x_bounds (double xL0, double xL1, double xU0, double xU1) |
| | |
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] ].
See the function evalModel() for more details.
Definition at line 29 of file EpetraModelEval4DOpt.hpp.
| EpetraModelEval4DOpt::EpetraModelEval4DOpt | ( | 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 | |||
| ) |
| void EpetraModelEval4DOpt::setSupportDerivs | ( | bool | supportDerivs | ) |
| void EpetraModelEval4DOpt::set_p_bounds | ( | double | pL0, | |
| double | pL1, | |||
| double | pU0, | |||
| double | pU1 | |||
| ) |
| void EpetraModelEval4DOpt::set_x_bounds | ( | double | xL0, | |
| double | xL1, | |||
| double | xU0, | |||
| double | xU1 | |||
| ) |
| Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval4DOpt::get_x_map | ( | ) | const [virtual] |
| Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval4DOpt::get_f_map | ( | ) | const [virtual] |
| Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval4DOpt::get_p_map | ( | int | l | ) | const [virtual] |
.
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 109 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval4DOpt::get_g_map | ( | int | j | ) | const [virtual] |
.
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 116 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval4DOpt::get_x_init | ( | ) | const [virtual] |
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 123 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval4DOpt::get_p_init | ( | int | l | ) | const [virtual] |
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 129 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval4DOpt::get_x_lower_bounds | ( | ) | const [virtual] |
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 136 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval4DOpt::get_x_upper_bounds | ( | ) | const [virtual] |
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 142 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval4DOpt::get_p_lower_bounds | ( | int | l | ) | const [virtual] |
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 148 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval4DOpt::get_p_upper_bounds | ( | int | l | ) | const [virtual] |
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 155 of file EpetraModelEval4DOpt.cpp.
| Teuchos::RefCountPtr< Epetra_Operator > EpetraModelEval4DOpt::create_W | ( | ) | const [virtual] |
Reimplemented from EpetraExt::ModelEvaluator.
Definition at line 162 of file EpetraModelEval4DOpt.cpp.
| EpetraExt::ModelEvaluator::InArgs EpetraModelEval4DOpt::createInArgs | ( | ) | const [virtual] |
| EpetraExt::ModelEvaluator::OutArgs EpetraModelEval4DOpt::createOutArgs | ( | ) | const [virtual] |
| void EpetraModelEval4DOpt::evalModel | ( | const InArgs & | inArgs, | |
| const OutArgs & | outArgs | |||
| ) | const |
1.4.7