42 #ifndef EPETRA_EXT_MODEL_EVALUATOR_SCALING_TOOLS_H
43 #define EPETRA_EXT_MODEL_EVALUATOR_SCALING_TOOLS_H
45 #if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS)
47 #warning "The EpetraExt package is deprecated"
53 #include "Teuchos_Utils.hpp"
194 const ModelEvaluator &model,
195 ModelEvaluator::InArgs *nominalValues
207 const ModelEvaluator &model,
208 ModelEvaluator::InArgs *lowerBounds,
209 ModelEvaluator::InArgs *upperBounds
248 const ModelEvaluator::InArgs &origVars,
249 const ModelEvaluator::InArgs &varScalings,
250 ModelEvaluator::InArgs *scaledVars,
251 Teuchos::FancyOStream *out = 0,
252 Teuchos::EVerbosityLevel verbLevel = Teuchos::VERB_LOW
260 const ModelEvaluator::InArgs &origLowerBounds,
261 const ModelEvaluator::InArgs &origUpperBounds,
263 const ModelEvaluator::InArgs &varScalings,
264 ModelEvaluator::InArgs *scaledLowerBounds,
265 ModelEvaluator::InArgs *scaledUpperBounds,
266 Teuchos::FancyOStream *out = 0,
267 Teuchos::EVerbosityLevel verbLevel = Teuchos::VERB_LOW
302 const ModelEvaluator::InArgs &scaledVars,
303 const ModelEvaluator::InArgs &varScalings,
304 ModelEvaluator::InArgs *origVars,
305 Teuchos::FancyOStream *out = 0,
306 Teuchos::EVerbosityLevel verbLevel = Teuchos::VERB_LOW
368 const ModelEvaluator::OutArgs &origFuncs,
369 const ModelEvaluator::InArgs &varScalings,
370 const ModelEvaluator::OutArgs &funcScalings,
371 ModelEvaluator::OutArgs *scaledFuncs,
372 bool *allFuncsWhereScaled,
373 Teuchos::FancyOStream *out = 0,
374 Teuchos::EVerbosityLevel verbLevel = Teuchos::VERB_LOW
383 Teuchos::RCP<const Epetra_Vector>
385 Teuchos::RCP<const Epetra_Vector>
const& scalingVector
554 const ModelEvaluator::Derivative &origFuncDeriv,
557 ModelEvaluator::Derivative *scaledFuncDeriv,
566 std::string
getName()
const {
return "x_dot"; }
568 Teuchos::RCP<const Epetra_Vector>
575 const Teuchos::RCP<const Epetra_Vector> &x_dot,
580 TEUCHOS_TEST_FOR_EXCEPT(!inArgs);
592 std::string
getName()
const {
return "x_dotdot"; }
594 Teuchos::RCP<const Epetra_Vector>
601 const Teuchos::RCP<const Epetra_Vector> &x_dotdot,
606 TEUCHOS_TEST_FOR_EXCEPT(!inArgs);
620 Teuchos::RCP<const Epetra_Vector>
623 return inArgs.
get_x();
627 const Teuchos::RCP<const Epetra_Vector> &x,
632 TEUCHOS_TEST_FOR_EXCEPT(!inArgs);
649 Teuchos::RCP<const Epetra_Vector>
652 return inArgs.
get_p(l_);
656 const Teuchos::RCP<const Epetra_Vector> &p_l,
661 TEUCHOS_TEST_FOR_EXCEPT(!inArgs);
663 inArgs->
set_p(l_,p_l);
679 Teuchos::RCP<Epetra_Vector>
682 return outArgs.
get_f();
686 const Teuchos::RCP<Epetra_Vector> &f,
691 TEUCHOS_TEST_FOR_EXCEPT(!outArgs);
705 Teuchos::RCP<Epetra_Vector>
708 return outArgs.
get_g(j_);
712 const Teuchos::RCP<Epetra_Vector> &g_j,
717 TEUCHOS_TEST_FOR_EXCEPT(!outArgs);
719 outArgs->
set_g(j_,g_j);
737 #endif // EPETRA_EXT_MODEL_EVALUATOR_SCALING_TOOLS_H
Teuchos::RCP< const Epetra_Vector > getVector(const ModelEvaluator::InArgs &inArgs) const
Class that gets and sets p(l) in an InArgs object.
std::string getName() const
std::string getName() const
void setVector(const Teuchos::RCP< Epetra_Vector > &g_j, ModelEvaluator::OutArgs *outArgs) const
Evaluation< Epetra_Vector > get_g(int j) const
Get g(j) where 0 <= j && j < this->Ng().
std::string getName() const
Teuchos::RCP< const Epetra_Vector > get_x_dotdot() const
void setVector(const Teuchos::RCP< const Epetra_Vector > &x_dotdot, ModelEvaluator::InArgs *inArgs) const
void set_x(const Teuchos::RCP< const Epetra_Vector > &x)
void set_x_dot(const Teuchos::RCP< const Epetra_Vector > &x_dot)
OutArgsGetterSetter_g(int j)
void setVector(const Teuchos::RCP< Epetra_Vector > &f, ModelEvaluator::OutArgs *outArgs) const
void set_f(const Evaluation< Epetra_Vector > &f)
Class that gets and sets x_dotdot in an InArgs object.
std::string getName() const
Teuchos::RCP< const Epetra_Vector > get_p(int l) const
Class that gets and sets x_dot in an InArgs object.
void setVector(const Teuchos::RCP< const Epetra_Vector > &x, ModelEvaluator::InArgs *inArgs) const
void set_x_dotdot(const Teuchos::RCP< const Epetra_Vector > &x_dotdot)
InArgsGetterSetter_p(int l)
Teuchos::RCP< const Epetra_Vector > getVector(const ModelEvaluator::InArgs &inArgs) const
void set_p(int l, const Teuchos::RCP< const Epetra_Vector > &p_l)
Class that gets and sets f in an OutArgs object.
Teuchos::RCP< const Epetra_Vector > get_x_dot() const
Class that gets and sets g(j) in an OutArgs object.
Teuchos::RCP< Epetra_Vector > getVector(const ModelEvaluator::OutArgs &outArgs) const
Teuchos::RCP< Epetra_Vector > getVector(const ModelEvaluator::OutArgs &outArgs) const
Class that gets and sets x in an InArgs object.
Teuchos::RCP< const Epetra_Vector > getVector(const ModelEvaluator::InArgs &inArgs) const
Teuchos::RCP< const Epetra_Vector > getVector(const ModelEvaluator::InArgs &inArgs) const
void setVector(const Teuchos::RCP< const Epetra_Vector > &p_l, ModelEvaluator::InArgs *inArgs) const
void setVector(const Teuchos::RCP< const Epetra_Vector > &x_dot, ModelEvaluator::InArgs *inArgs) const
Evaluation< Epetra_Vector > get_f() const
Teuchos::RCP< const Epetra_Vector > get_x() const
Set solution vector Taylor polynomial.
std::string toString(const int &x)
void set_g(int j, const Evaluation< Epetra_Vector > &g_j)
Set g(j) where 0 <= j && j < this->Ng().