EpetraExt Package Browser (Single Doxygen Collection)  Development
EpetraMultiPointModelEval4DOpt.hpp
Go to the documentation of this file.
1 /*
2 //@HEADER
3 // ***********************************************************************
4 //
5 // EpetraExt: Epetra Extended - Linear Algebra Services Package
6 // Copyright (2011) Sandia Corporation
7 //
8 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 // the U.S. Government retains certain rights in this software.
10 //
11 // Redistribution and use in source and binary forms, with or without
12 // modification, are permitted provided that the following conditions are
13 // met:
14 //
15 // 1. Redistributions of source code must retain the above copyright
16 // notice, this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright
19 // notice, this list of conditions and the following disclaimer in the
20 // documentation and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of the Corporation nor the names of the
23 // contributors may be used to endorse or promote products derived from
24 // this software without specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
27 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
30 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 //
38 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
39 //
40 // ***********************************************************************
41 //@HEADER
42 */
43 
44 #ifndef EPETRA_MULTI_POINT_MODEL_EVAL_4D_OPT_HPP
45 #define EPETRA_MULTI_POINT_MODEL_EVAL_4D_OPT_HPP
46 
48 #include "Epetra_Map.h"
49 #include "Epetra_Vector.h"
50 #include "Epetra_Comm.h"
51 #include "Epetra_CrsGraph.h"
52 
74 public:
75 
78  Teuchos::RCP<Epetra_Comm> epetra_comm
79  ,const double xt0 = 1.0
80  ,const double xt1 = 1.0
81  ,const double pt0 = 2.0
82  ,const double pt1 = 0.0
83  ,const double d = 10.0
84  ,const double x00 = 1.0
85  ,const double x01 = 1.0
86  ,const double p00 = 2.0
87  ,const double p01 = 0.0
88  ,const double q0 = 0.0
89  );
90 
92  void set_p_bounds( double pL0, double pL1, double pU0, double pU1 );
93 
95  void set_x_bounds( double xL0, double xL1, double xU0, double xU1 );
96 
99 
123  InArgs createInArgs() const;
125  OutArgs createOutArgs() const;
127  void evalModel( const InArgs& inArgs, const OutArgs& outArgs ) const;
128 
130 
131 private:
132 
133  // /////////////////////////////////////
134  // Private member data
135 
137 
139 
140  double xt0_;
141  double xt1_;
142  double pt0_;
143  double pt1_;
144  double d_;
149 
161 
163 
164 };
165 
166 #endif // EPETRA_MULTI_POINT_MODEL_EVAL_4D_OPT_HPP
EpetraExt::ModelEvaluator
Base interface for evaluating a stateless "model".
Definition: EpetraExt_ModelEvaluator.h:85
EpetraMultiPointModelEval4DOpt::xt0_
double xt0_
Definition: EpetraMultiPointModelEval4DOpt.hpp:140
EpetraMultiPointModelEval4DOpt::EpetraMultiPointModelEval4DOpt
EpetraMultiPointModelEval4DOpt(Teuchos::RCP< 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: EpetraMultiPointModelEval4DOpt.cpp:57
EpetraMultiPointModelEval4DOpt::set_p_bounds
void set_p_bounds(double pL0, double pL1, double pU0, double pU1)
Definition: EpetraMultiPointModelEval4DOpt.cpp:110
EpetraMultiPointModelEval4DOpt::map_q_
Teuchos::RCP< const Epetra_Map > map_q_
Definition: EpetraMultiPointModelEval4DOpt.hpp:147
EpetraMultiPointModelEval4DOpt::evalModel
void evalModel(const InArgs &inArgs, const OutArgs &outArgs) const
Definition: EpetraMultiPointModelEval4DOpt.cpp:259
EpetraMultiPointModelEval4DOpt::qL_
Teuchos::RCP< Epetra_Vector > qL_
Definition: EpetraMultiPointModelEval4DOpt.hpp:159
EpetraMultiPointModelEval4DOpt::pt1_
double pt1_
Definition: EpetraMultiPointModelEval4DOpt.hpp:143
EpetraMultiPointModelEval4DOpt::gL_
Teuchos::RCP< Epetra_Vector > gL_
Definition: EpetraMultiPointModelEval4DOpt.hpp:154
EpetraMultiPointModelEval4DOpt::pt0_
double pt0_
Definition: EpetraMultiPointModelEval4DOpt.hpp:142
EpetraMultiPointModelEval4DOpt::p0_
Teuchos::RCP< Epetra_Vector > p0_
Definition: EpetraMultiPointModelEval4DOpt.hpp:157
EpetraMultiPointModelEval4DOpt::isInitialized_
bool isInitialized_
Definition: EpetraMultiPointModelEval4DOpt.hpp:136
EpetraMultiPointModelEval4DOpt::gU_
Teuchos::RCP< Epetra_Vector > gU_
Definition: EpetraMultiPointModelEval4DOpt.hpp:155
EpetraMultiPointModelEval4DOpt::get_g_map
Teuchos::RCP< const Epetra_Map > get_g_map(int j) const
\breif .
Definition: EpetraMultiPointModelEval4DOpt.cpp:153
Epetra_Vector.h
EpetraMultiPointModelEval4DOpt::set_x_bounds
void set_x_bounds(double xL0, double xL1, double xU0, double xU1)
Definition: EpetraMultiPointModelEval4DOpt.cpp:120
Teuchos::RCP< Epetra_Comm >
EpetraMultiPointModelEval4DOpt::get_p_init
Teuchos::RCP< const Epetra_Vector > get_p_init(int l) const
Definition: EpetraMultiPointModelEval4DOpt.cpp:166
EpetraMultiPointModelEval4DOpt::xL_
Teuchos::RCP< Epetra_Vector > xL_
Definition: EpetraMultiPointModelEval4DOpt.hpp:150
EpetraMultiPointModelEval4DOpt::create_W
Teuchos::RCP< Epetra_Operator > create_W() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:202
EpetraMultiPointModelEval4DOpt::get_x_map
Teuchos::RCP< const Epetra_Map > get_x_map() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:133
EpetraExt_ModelEvaluator.h
EpetraMultiPointModelEval4DOpt::map_p_
Teuchos::RCP< const Epetra_Map > map_p_
Definition: EpetraMultiPointModelEval4DOpt.hpp:146
EpetraMultiPointModelEval4DOpt::d_
double d_
Definition: EpetraMultiPointModelEval4DOpt.hpp:144
EpetraMultiPointModelEval4DOpt::createInArgs
InArgs createInArgs() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:208
EpetraMultiPointModelEval4DOpt::get_p_map
Teuchos::RCP< const Epetra_Map > get_p_map(int l) const
\breif .
Definition: EpetraMultiPointModelEval4DOpt.cpp:145
EpetraMultiPointModelEval4DOpt::x0_
Teuchos::RCP< Epetra_Vector > x0_
Definition: EpetraMultiPointModelEval4DOpt.hpp:156
EpetraMultiPointModelEval4DOpt::q_
Teuchos::RCP< Epetra_Vector > q_
Definition: EpetraMultiPointModelEval4DOpt.hpp:158
EpetraMultiPointModelEval4DOpt::get_x_upper_bounds
Teuchos::RCP< const Epetra_Vector > get_x_upper_bounds() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:180
EpetraMultiPointModelEval4DOpt::get_f_map
Teuchos::RCP< const Epetra_Map > get_f_map() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:139
EpetraMultiPointModelEval4DOpt
A simple serial example model which includes a parameter subvector and a response function that can b...
Definition: EpetraMultiPointModelEval4DOpt.hpp:73
EpetraMultiPointModelEval4DOpt::xU_
Teuchos::RCP< Epetra_Vector > xU_
Definition: EpetraMultiPointModelEval4DOpt.hpp:151
EpetraMultiPointModelEval4DOpt::get_p_lower_bounds
Teuchos::RCP< const Epetra_Vector > get_p_lower_bounds(int l) const
Definition: EpetraMultiPointModelEval4DOpt.cpp:186
EpetraMultiPointModelEval4DOpt::map_x_
Teuchos::RCP< const Epetra_Map > map_x_
Definition: EpetraMultiPointModelEval4DOpt.hpp:145
Epetra_Comm.h
EpetraExt::ModelEvaluator::InArgs
Definition: EpetraExt_ModelEvaluator.h:135
EpetraExt::ModelEvaluator::OutArgs
Definition: EpetraExt_ModelEvaluator.h:760
EpetraMultiPointModelEval4DOpt::pL_
Teuchos::RCP< Epetra_Vector > pL_
Definition: EpetraMultiPointModelEval4DOpt.hpp:152
EpetraMultiPointModelEval4DOpt::epetra_comm_
Teuchos::RCP< const Epetra_Comm > epetra_comm_
Definition: EpetraMultiPointModelEval4DOpt.hpp:138
Epetra_CrsGraph.h
EpetraMultiPointModelEval4DOpt::W_graph_
Teuchos::RCP< Epetra_CrsGraph > W_graph_
Definition: EpetraMultiPointModelEval4DOpt.hpp:162
EpetraMultiPointModelEval4DOpt::qU_
Teuchos::RCP< Epetra_Vector > qU_
Definition: EpetraMultiPointModelEval4DOpt.hpp:160
Epetra_Map.h
EpetraMultiPointModelEval4DOpt::get_p_upper_bounds
Teuchos::RCP< const Epetra_Vector > get_p_upper_bounds(int l) const
Definition: EpetraMultiPointModelEval4DOpt.cpp:194
EpetraMultiPointModelEval4DOpt::createOutArgs
OutArgs createOutArgs() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:218
EpetraMultiPointModelEval4DOpt::pU_
Teuchos::RCP< Epetra_Vector > pU_
Definition: EpetraMultiPointModelEval4DOpt.hpp:153
EpetraMultiPointModelEval4DOpt::xt1_
double xt1_
Definition: EpetraMultiPointModelEval4DOpt.hpp:141
EpetraMultiPointModelEval4DOpt::map_g_
Teuchos::RCP< const Epetra_Map > map_g_
Definition: EpetraMultiPointModelEval4DOpt.hpp:148
EpetraMultiPointModelEval4DOpt::get_x_lower_bounds
Teuchos::RCP< const Epetra_Vector > get_x_lower_bounds() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:174
EpetraMultiPointModelEval4DOpt::get_x_init
Teuchos::RCP< const Epetra_Vector > get_x_init() const
Definition: EpetraMultiPointModelEval4DOpt.cpp:160