MoochoPack::EvalNewPointTailoredApproach_Step Class Reference

Base class for evaluating a new point for the "Tailored Approach". More...

#include <MoochoPack_EvalNewPointTailoredApproach_Step.hpp>

Inheritance diagram for MoochoPack::EvalNewPointTailoredApproach_Step:

[legend]
List of all members.

Constructors / initializers

typedef Teuchos::RefCountPtr<
const MatrixOp > 
D_ptr_t
 
typedef Teuchos::RefCountPtr<
NLPDirectTester > 
deriv_tester_ptr_t
typedef Teuchos::RefCountPtr<
VariableBoundsTester > 
bounds_tester_ptr_t
void set_deriv_tester (const Teuchos::RefCountPtr< NLPDirectTester > &deriv_tester)
 <<std comp="">> members for testing object for NLPDirect
Teuchos::RefCountPtr< NLPDirectTester > get_deriv_tester () const
NLPDirectTester & deriv_tester ()
const NLPDirectTester & deriv_tester () const
void set_bounds_tester (const Teuchos::RefCountPtr< VariableBoundsTester > &bounds_tester)
 <<std comp="">> Members for variable bounds tester object
Teuchos::RefCountPtr< VariableBoundsTester > get_bounds_tester () const
VariableBoundsTester & bounds_tester ()
const VariableBoundsTester & bounds_tester () const
void fd_deriv_testing (const EFDDerivTesting &fd_deriv_testing)
 Set how and if finite derivatives are tested.
const EFDDerivTestingfd_deriv_testing () const
 EvalNewPointTailoredApproach_Step (const deriv_tester_ptr_t &deriv_tester, const bounds_tester_ptr_t &bounds_tester, EFDDerivTesting fd_deriv_testing=FD_DEFAULT)
 
Teuchos::RefCountPtr< NLPDirectTester > deriv_tester_
Teuchos::RefCountPtr< VariableBoundsTester > bounds_tester_
EFDDerivTesting fd_deriv_testing_

Public types

enum  EFDDerivTesting { FD_DEFAULT, FD_TEST, FD_NO_TEST }
  More...

Overridden from AlgorithmStep

bool do_step (Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
 
void print_step (const Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss, std::ostream &out, const std::string &leading_str) const
 

To be overridden by subclasses

virtual void uninitialize_Y_Uy (MatrixOp *Y, MatrixOp *Uy)=0
 Call to uninitialize the matrices.
virtual void calc_py_Y_Uy (const NLPDirect &nlp, const D_ptr_t &D, VectorMutable *py, MatrixOp *Y, MatrixOp *Uy, EJournalOutputLevel olevel, std::ostream &out)=0
 Overridden by subclass to compute py, Y and Uy.
virtual void recalc_py (const MatrixOp &D, VectorMutable *py, EJournalOutputLevel olevel, std::ostream &out)=0
 Overridden by subclass to recompute py and Ypy.
virtual void print_calc_py_Y_Uy (std::ostream &out, const std::string &leading_str) const =0
 Overridden by subclass to print how py and Y are computed.

Private Member Functions

 EvalNewPointTailoredApproach_Step ()

Detailed Description

Base class for evaluating a new point for the "Tailored Approach".

Uses the NLPDirect interface to compute Z = [ -inv(C)*N; I ] and py = -inv(C)*c(decomp) explicitly. Subclasses determine how py and Y are updated.

Definition at line 47 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.


Member Typedef Documentation

typedef Teuchos::RefCountPtr<const MatrixOp> MoochoPack::EvalNewPointTailoredApproach_Step::D_ptr_t
 

Definition at line 62 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

typedef Teuchos::RefCountPtr< NLPDirectTester > MoochoPack::EvalNewPointTailoredApproach_Step::deriv_tester_ptr_t
 

Definition at line 64 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

typedef Teuchos::RefCountPtr< VariableBoundsTester > MoochoPack::EvalNewPointTailoredApproach_Step::bounds_tester_ptr_t
 

Definition at line 66 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.


Member Enumeration Documentation

enum MoochoPack::EvalNewPointTailoredApproach_Step::EFDDerivTesting
 

Enumeration values:
FD_DEFAULT 
FD_TEST 
FD_NO_TEST 

Definition at line 55 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.


Constructor & Destructor Documentation

MoochoPack::EvalNewPointTailoredApproach_Step::EvalNewPointTailoredApproach_Step const deriv_tester_ptr_t deriv_tester,
const bounds_tester_ptr_t bounds_tester,
EFDDerivTesting  fd_deriv_testing = FD_DEFAULT
 

Definition at line 48 of file MoochoPack_EvalNewPointTailoredApproach_Step.cpp.

MoochoPack::EvalNewPointTailoredApproach_Step::EvalNewPointTailoredApproach_Step  )  [private]
 


Member Function Documentation

void MoochoPack::EvalNewPointTailoredApproach_Step::set_deriv_tester const Teuchos::RefCountPtr< NLPDirectTester > &  deriv_tester  )  [inline]
 

<<std comp="">> members for testing object for NLPDirect

Definition at line 64 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

Teuchos::RefCountPtr< NLPDirectTester > MoochoPack::EvalNewPointTailoredApproach_Step::get_deriv_tester  )  const [inline]
 

Definition at line 64 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

NLPDirectTester& MoochoPack::EvalNewPointTailoredApproach_Step::deriv_tester  )  [inline]
 

Definition at line 64 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

const NLPDirectTester& MoochoPack::EvalNewPointTailoredApproach_Step::deriv_tester  )  const [inline]
 

Definition at line 64 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

void MoochoPack::EvalNewPointTailoredApproach_Step::set_bounds_tester const Teuchos::RefCountPtr< VariableBoundsTester > &  bounds_tester  )  [inline]
 

<<std comp="">> Members for variable bounds tester object

Definition at line 66 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

Teuchos::RefCountPtr< VariableBoundsTester > MoochoPack::EvalNewPointTailoredApproach_Step::get_bounds_tester  )  const [inline]
 

Definition at line 66 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

VariableBoundsTester& MoochoPack::EvalNewPointTailoredApproach_Step::bounds_tester  )  [inline]
 

Definition at line 66 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

const VariableBoundsTester& MoochoPack::EvalNewPointTailoredApproach_Step::bounds_tester  )  const [inline]
 

Definition at line 66 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

void MoochoPack::EvalNewPointTailoredApproach_Step::fd_deriv_testing const EFDDerivTesting fd_deriv_testing  )  [inline]
 

Set how and if finite derivatives are tested.

ToDo: Finish documentation.

Definition at line 71 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

const EFDDerivTesting& MoochoPack::EvalNewPointTailoredApproach_Step::fd_deriv_testing  )  const [inline]
 

Definition at line 71 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

bool MoochoPack::EvalNewPointTailoredApproach_Step::do_step Algorithm algo,
poss_type  step_poss,
IterationPack::EDoStepType  type,
poss_type  assoc_step_poss
 

Definition at line 58 of file MoochoPack_EvalNewPointTailoredApproach_Step.cpp.

void MoochoPack::EvalNewPointTailoredApproach_Step::print_step const Algorithm algo,
poss_type  step_poss,
IterationPack::EDoStepType  type,
poss_type  assoc_step_poss,
std::ostream &  out,
const std::string &  leading_str
const
 

Definition at line 320 of file MoochoPack_EvalNewPointTailoredApproach_Step.cpp.

virtual void MoochoPack::EvalNewPointTailoredApproach_Step::uninitialize_Y_Uy MatrixOp *  Y,
MatrixOp *  Uy
[pure virtual]
 

Call to uninitialize the matrices.

ToDo: Finish documentation!

Implemented in MoochoPack::EvalNewPointTailoredApproachCoordinate_Step, and MoochoPack::EvalNewPointTailoredApproachOrthogonal_Step.

virtual void MoochoPack::EvalNewPointTailoredApproach_Step::calc_py_Y_Uy const NLPDirect &  nlp,
const D_ptr_t D,
VectorMutable *  py,
MatrixOp *  Y,
MatrixOp *  Uy,
EJournalOutputLevel  olevel,
std::ostream &  out
[pure virtual]
 

Overridden by subclass to compute py, Y and Uy.

Parameters:
D [in/out] Smart pointer to matrix D = -inv(C)*N. On output, D->count() may be incremented in order to initialize Y.
py [in/out] On input py = -inv(C)*c(decomp). On output py = -inv((Gc(decomp)'*Y)*c(decomp)
Y [in/out] On ouput Y is initialized properly.
Uy [in/out] On ouput Uy is initialized properly.
olevel [in] Determines output level.
out [out] Journal outputting.

Implemented in MoochoPack::EvalNewPointTailoredApproachCoordinate_Step, and MoochoPack::EvalNewPointTailoredApproachOrthogonal_Step.

virtual void MoochoPack::EvalNewPointTailoredApproach_Step::recalc_py const MatrixOp &  D,
VectorMutable *  py,
EJournalOutputLevel  olevel,
std::ostream &  out
[pure virtual]
 

Overridden by subclass to recompute py and Ypy.

Parameters:
D [in] matrix D = -inv(C)*N
py [in/out] On input py = -inv(C)*c(decomp). On output py = -inv((Gc(decomp)'*Y)*c(decomp)

Implemented in MoochoPack::EvalNewPointTailoredApproachCoordinate_Step, and MoochoPack::EvalNewPointTailoredApproachOrthogonal_Step.

virtual void MoochoPack::EvalNewPointTailoredApproach_Step::print_calc_py_Y_Uy std::ostream &  out,
const std::string &  leading_str
const [pure virtual]
 

Overridden by subclass to print how py and Y are computed.

Implemented in MoochoPack::EvalNewPointTailoredApproachCoordinate_Step, and MoochoPack::EvalNewPointTailoredApproachOrthogonal_Step.


Member Data Documentation

Teuchos::RefCountPtr< NLPDirectTester > MoochoPack::EvalNewPointTailoredApproach_Step::deriv_tester_ [private]
 

Definition at line 64 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

Teuchos::RefCountPtr< VariableBoundsTester > MoochoPack::EvalNewPointTailoredApproach_Step::bounds_tester_ [private]
 

Definition at line 66 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.

EFDDerivTesting MoochoPack::EvalNewPointTailoredApproach_Step::fd_deriv_testing_ [private]
 

Definition at line 71 of file MoochoPack_EvalNewPointTailoredApproach_Step.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:36:20 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1