ROL
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Objective_BurgersControl< Real > Class Template Reference

#include <example_01.hpp>

+ Inheritance diagram for Objective_BurgersControl< Real >:

Public Member Functions

 Objective_BurgersControl (Real alpha=1.e-4, int nx=128)
 
void solve_state (std::vector< Real > &u, const std::vector< Real > &z, const std::vector< Real > &param)
 
void solve_adjoint (std::vector< Real > &p, const std::vector< Real > &u, const std::vector< Real > &param)
 
void solve_state_sensitivity (std::vector< Real > &v, const std::vector< Real > &u, const std::vector< Real > &z, const std::vector< Real > &param)
 
void solve_adjoint_sensitivity (std::vector< Real > &q, const std::vector< Real > &u, const std::vector< Real > &p, const std::vector< Real > &v, const std::vector< Real > &z, const std::vector< Real > &param)
 
Real value (const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient (ROL::Vector< Real > &g, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient. More...
 
void hessVec (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
 Objective_BurgersControl (Real alpha=1.e-4, int nx=128)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
 Objective_BurgersControl (Real alpha=1.e-4, int nx=128, int nt=100, Real T=1.0)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
 Objective_BurgersControl (const ROL::Ptr< BurgersFEM< Real > > &fem, const ROL::Ptr< ROL::Vector< Real > > &ud, Real alpha=1.e-4)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
 Objective_BurgersControl (Real alpha=1.e-4, int nx=128)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
 Objective_BurgersControl (const ROL::Ptr< BurgersFEM< Real > > &fem, const ROL::Ptr< ROL::Vector< Real > > &ud, Real alpha=1.e-4)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
 Objective_BurgersControl (const ROL::Ptr< BurgersFEM< Real > > &fem, Real x=0.0)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
 Objective_BurgersControl (const ROL::Ptr< BurgersFEM< Real > > &fem, const ROL::Ptr< ROL::Vector< Real > > &ud, Real alpha=1.e-4)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
 Objective_BurgersControl (Real alpha=1.e-4, int nx=128)
 
Real value (const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute value. More...
 
void gradient_1 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to first component. More...
 
void gradient_2 (ROL::Vector< Real > &g, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Compute gradient with respect to second component. More...
 
void hessVec_11 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 Apply Hessian approximation to vector. More...
 
void hessVec_12 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_21 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
void hessVec_22 (ROL::Vector< Real > &hv, const ROL::Vector< Real > &v, const ROL::Vector< Real > &u, const ROL::Vector< Real > &z, Real &tol)
 
- Public Member Functions inherited from ROL::Objective_SimOpt< Real >
virtual void update (const Vector< Real > &u, const Vector< Real > &z, bool flag=true, int iter=-1)
 Update objective function. u is an iterate, z is an iterate, flag = true if the iterate has changed, iter is the outer algorithm iterations count. More...
 
void update (const Vector< Real > &x, bool flag=true, int iter=-1)
 Update objective function. More...
 
std::vector< std::vector< Real > > checkGradient_1 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 
std::vector< std::vector< Real > > checkGradient_1 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &g, const Vector< Real > &d, const bool printToStream, std::ostream &outStream, const int numSteps, const int order)
 
std::vector< std::vector< Real > > checkGradient_1 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &g, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream, std::ostream &outStream, const int order)
 
std::vector< std::vector< Real > > checkGradient_2 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 
std::vector< std::vector< Real > > checkGradient_2 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &g, const Vector< Real > &d, const bool printToStream, std::ostream &outStream, const int numSteps, const int order)
 
std::vector< std::vector< Real > > checkGradient_2 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &g, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream, std::ostream &outStream, const int order)
 
std::vector< std::vector< Real > > checkHessVec_11 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_11 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_11 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream, std::ostream &outStream, const int numSteps, const int order)
 
std::vector< std::vector< Real > > checkHessVec_11 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream, std::ostream &outStream, const int order)
 
std::vector< std::vector< Real > > checkHessVec_12 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_12 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_12 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream, std::ostream &outStream, const int numSteps, const int order)
 
std::vector< std::vector< Real > > checkHessVec_12 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream, std::ostream &outStream, const int order)
 
std::vector< std::vector< Real > > checkHessVec_21 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_21 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_21 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream, std::ostream &outStream, const int numSteps, const int order)
 
std::vector< std::vector< Real > > checkHessVec_21 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream, std::ostream &outStream, const int order)
 
std::vector< std::vector< Real > > checkHessVec_22 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_22 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 
std::vector< std::vector< Real > > checkHessVec_22 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream, std::ostream &outStream, const int numSteps, const int order)
 
std::vector< std::vector< Real > > checkHessVec_22 (const Vector< Real > &u, const Vector< Real > &z, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream, std::ostream &outStream, const int order)
 
- Public Member Functions inherited from ROL::Objective< Real >
virtual ~Objective ()
 
virtual Real dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol)
 Compute directional derivative. More...
 
virtual void invHessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply inverse Hessian approximation to vector. More...
 
virtual void precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol)
 Apply preconditioner to vector. More...
 
virtual std::vector
< std::vector< Real > > 
checkGradient (const Vector< Real > &x, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference gradient check. More...
 
virtual std::vector
< std::vector< Real > > 
checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference gradient check. More...
 
virtual std::vector
< std::vector< Real > > 
checkGradient (const Vector< Real > &x, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference gradient check with specified step sizes. More...
 
virtual std::vector
< std::vector< Real > > 
checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference gradient check with specified step sizes. More...
 
virtual std::vector
< std::vector< Real > > 
checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference Hessian-applied-to-vector check. More...
 
virtual std::vector
< std::vector< Real > > 
checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1)
 Finite-difference Hessian-applied-to-vector check. More...
 
virtual std::vector
< std::vector< Real > > 
checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference Hessian-applied-to-vector check with specified step sizes. More...
 
virtual std::vector
< std::vector< Real > > 
checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1)
 Finite-difference Hessian-applied-to-vector check with specified step sizes. More...
 
virtual std::vector< Real > checkHessSym (const Vector< Real > &x, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout)
 Hessian symmetry check. More...
 
virtual std::vector< Real > checkHessSym (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout)
 Hessian symmetry check. More...
 
virtual void setParameter (const std::vector< Real > &param)
 

Private Types

typedef H1VectorPrimal< Real > PrimalStateVector
 
typedef H1VectorDual< Real > DualStateVector
 
typedef L2VectorPrimal< Real > PrimalControlVector
 
typedef L2VectorDual< Real > DualControlVector
 
typedef H1VectorPrimal< Real > PrimalStateVector
 
typedef H1VectorDual< Real > DualStateVector
 
typedef L2VectorPrimal< Real > PrimalControlVector
 
typedef L2VectorDual< Real > DualControlVector
 
typedef H1VectorPrimal< Real > PrimalStateVector
 
typedef H1VectorDual< Real > DualStateVector
 
typedef L2VectorPrimal< Real > PrimalControlVector
 
typedef L2VectorDual< Real > DualControlVector
 
typedef std::vector< Real >
::size_type 
uint
 
typedef H1VectorPrimal< Real > PrimalStateVector
 
typedef H1VectorDual< Real > DualStateVector
 
typedef L2VectorPrimal< Real > PrimalControlVector
 
typedef L2VectorDual< Real > DualControlVector
 

Private Member Functions

Real evaluate_target (Real x)
 
Real compute_norm (const std::vector< Real > &r)
 
Real dot (const std::vector< Real > &x, const std::vector< Real > &y)
 
void update (std::vector< Real > &u, const std::vector< Real > &s, const Real alpha=1.0)
 
void scale (std::vector< Real > &u, const Real alpha=0.0)
 
void apply_mass (std::vector< Real > &Mu, const std::vector< Real > &u)
 
void compute_residual (std::vector< Real > &r, const std::vector< Real > &u, const std::vector< Real > &z, const std::vector< Real > &param)
 
void compute_pde_jacobian (std::vector< Real > &dl, std::vector< Real > &d, std::vector< Real > &du, const std::vector< Real > &u, const std::vector< Real > &param)
 
void add_pde_hessian (std::vector< Real > &r, const std::vector< Real > &u, const std::vector< Real > &p, const std::vector< Real > &s, Real alpha=1.0)
 
void linear_solve (std::vector< Real > &u, std::vector< Real > &dl, std::vector< Real > &d, std::vector< Real > &du, const std::vector< Real > &r, const bool transpose=false)
 
void run_newton (std::vector< Real > &u, const std::vector< Real > &z, const std::vector< Real > &param)
 
Real evaluate_target (Real x)
 
Real dot (const std::vector< Real > &x, const std::vector< Real > &y)
 
void apply_mass (std::vector< Real > &Mu, const std::vector< Real > &u)
 
Real evaluate_target (Real x)
 
Real dot (const std::vector< Real > &x, const std::vector< Real > &y)
 
void apply_mass (std::vector< Real > &Mu, const std::vector< Real > &u)
 
Real evaluate_target (Real x)
 
Real dot (const std::vector< Real > &x, const std::vector< Real > &y)
 
void apply_mass (std::vector< Real > &Mu, const std::vector< Real > &u)
 
Real evaluate_target (Real x)
 
Real dot (const std::vector< Real > &x, const std::vector< Real > &y)
 
void apply_mass (std::vector< Real > &Mu, const std::vector< Real > &u)
 

Private Attributes

Real alpha_
 
int nx_
 
Real dx_
 
unsigned nx_
 
unsigned nt_
 
Real dt_
 
Real T_
 
ROL::Ptr< BurgersFEM< Real > > fem_
 
ROL::Ptr< ROL::Vector< Real > > ud_
 
ROL::Ptr< ROL::Vector< Real > > diff_
 
Real x_
 
std::vector< int > indices_
 

Additional Inherited Members

- Protected Member Functions inherited from ROL::Objective< Real >
const std::vector< Real > getParameter (void) const
 

Detailed Description

template<class Real>
class Objective_BurgersControl< Real >

Definition at line 67 of file burgers-control/example_01.hpp.

Member Typedef Documentation

template<class Real>
typedef H1VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalStateVector
private

Definition at line 1054 of file example_04.hpp.

template<class Real>
typedef H1VectorDual<Real> Objective_BurgersControl< Real >::DualStateVector
private

Definition at line 1055 of file example_04.hpp.

template<class Real>
typedef L2VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalControlVector
private

Definition at line 1057 of file example_04.hpp.

template<class Real>
typedef L2VectorDual<Real> Objective_BurgersControl< Real >::DualControlVector
private

Definition at line 1058 of file example_04.hpp.

template<class Real>
typedef H1VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalStateVector
private

Definition at line 1111 of file example_06.hpp.

template<class Real>
typedef H1VectorDual<Real> Objective_BurgersControl< Real >::DualStateVector
private

Definition at line 1112 of file example_06.hpp.

template<class Real>
typedef L2VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalControlVector
private

Definition at line 1114 of file example_06.hpp.

template<class Real>
typedef L2VectorDual<Real> Objective_BurgersControl< Real >::DualControlVector
private

Definition at line 1115 of file example_06.hpp.

template<class Real>
typedef H1VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalStateVector
private

Definition at line 1117 of file example_07.hpp.

template<class Real>
typedef H1VectorDual<Real> Objective_BurgersControl< Real >::DualStateVector
private

Definition at line 1118 of file example_07.hpp.

template<class Real>
typedef L2VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalControlVector
private

Definition at line 1120 of file example_07.hpp.

template<class Real>
typedef L2VectorDual<Real> Objective_BurgersControl< Real >::DualControlVector
private

Definition at line 1121 of file example_07.hpp.

template<class Real>
typedef std::vector<Real>::size_type Objective_BurgersControl< Real >::uint
private

Definition at line 1123 of file example_07.hpp.

template<class Real>
typedef H1VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalStateVector
private

Definition at line 939 of file example_08.hpp.

template<class Real>
typedef H1VectorDual<Real> Objective_BurgersControl< Real >::DualStateVector
private

Definition at line 940 of file example_08.hpp.

template<class Real>
typedef L2VectorPrimal<Real> Objective_BurgersControl< Real >::PrimalControlVector
private

Definition at line 942 of file example_08.hpp.

template<class Real>
typedef L2VectorDual<Real> Objective_BurgersControl< Real >::DualControlVector
private

Definition at line 943 of file example_08.hpp.

Constructor & Destructor Documentation

template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( Real  alpha = 1.e-4,
int  nx = 128 
)
inline
template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( Real  alpha = 1.e-4,
int  nx = 128 
)
inline
template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( Real  alpha = 1.e-4,
int  nx = 128,
int  nt = 100,
Real  T = 1.0 
)
inline
template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( const ROL::Ptr< BurgersFEM< Real > > &  fem,
const ROL::Ptr< ROL::Vector< Real > > &  ud,
Real  alpha = 1.e-4 
)
inline
template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( Real  alpha = 1.e-4,
int  nx = 128 
)
inline

Definition at line 456 of file example_05.hpp.

References Objective_BurgersControl< Real >::dx_.

template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( const ROL::Ptr< BurgersFEM< Real > > &  fem,
const ROL::Ptr< ROL::Vector< Real > > &  ud,
Real  alpha = 1.e-4 
)
inline
template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( const ROL::Ptr< BurgersFEM< Real > > &  fem,
Real  x = 0.0 
)
inline
template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( const ROL::Ptr< BurgersFEM< Real > > &  fem,
const ROL::Ptr< ROL::Vector< Real > > &  ud,
Real  alpha = 1.e-4 
)
inline
template<class Real>
Objective_BurgersControl< Real >::Objective_BurgersControl ( Real  alpha = 1.e-4,
int  nx = 128 
)
inline

Definition at line 458 of file example_10.hpp.

References Objective_BurgersControl< Real >::dx_.

Member Function Documentation

template<class Real>
Real Objective_BurgersControl< Real >::evaluate_target ( Real  x)
inlineprivate
template<class Real>
Real Objective_BurgersControl< Real >::compute_norm ( const std::vector< Real > &  r)
inlineprivate
template<class Real>
Real Objective_BurgersControl< Real >::dot ( const std::vector< Real > &  x,
const std::vector< Real > &  y 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::update ( std::vector< Real > &  u,
const std::vector< Real > &  s,
const Real  alpha = 1.0 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::scale ( std::vector< Real > &  u,
const Real  alpha = 0.0 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::apply_mass ( std::vector< Real > &  Mu,
const std::vector< Real > &  u 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::compute_residual ( std::vector< Real > &  r,
const std::vector< Real > &  u,
const std::vector< Real > &  z,
const std::vector< Real > &  param 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::compute_pde_jacobian ( std::vector< Real > &  dl,
std::vector< Real > &  d,
std::vector< Real > &  du,
const std::vector< Real > &  u,
const std::vector< Real > &  param 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::add_pde_hessian ( std::vector< Real > &  r,
const std::vector< Real > &  u,
const std::vector< Real > &  p,
const std::vector< Real > &  s,
Real  alpha = 1.0 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::linear_solve ( std::vector< Real > &  u,
std::vector< Real > &  dl,
std::vector< Real > &  d,
std::vector< Real > &  du,
const std::vector< Real > &  r,
const bool  transpose = false 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::run_newton ( std::vector< Real > &  u,
const std::vector< Real > &  z,
const std::vector< Real > &  param 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::solve_state ( std::vector< Real > &  u,
const std::vector< Real > &  z,
const std::vector< Real > &  param 
)
inline
template<class Real>
void Objective_BurgersControl< Real >::solve_adjoint ( std::vector< Real > &  p,
const std::vector< Real > &  u,
const std::vector< Real > &  param 
)
inline
template<class Real>
void Objective_BurgersControl< Real >::solve_state_sensitivity ( std::vector< Real > &  v,
const std::vector< Real > &  u,
const std::vector< Real > &  z,
const std::vector< Real > &  param 
)
inline
template<class Real>
void Objective_BurgersControl< Real >::solve_adjoint_sensitivity ( std::vector< Real > &  q,
const std::vector< Real > &  u,
const std::vector< Real > &  p,
const std::vector< Real > &  v,
const std::vector< Real > &  z,
const std::vector< Real > &  param 
)
inline
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  x,
Real &  tol 
)
inlinevirtual

Compute value.

This function returns the objective function value.

Parameters
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Implements ROL::Objective< Real >.

Definition at line 353 of file burgers-control/example_01.hpp.

References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dot(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), Objective_BurgersControl< Real >::nx_, and Objective_BurgersControl< Real >::solve_state().

template<class Real>
void Objective_BurgersControl< Real >::gradient ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  x,
Real &  tol 
)
inlinevirtual

Compute gradient.

This function returns the objective function gradient.

Parameters
[out]gis the gradient.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

The default implementation is a finite-difference approximation based on the function value. This requires the definition of a basis \(\{\phi_i\}\) for the optimization vectors x and the definition of a basis \(\{\psi_j\}\) for the dual optimization vectors (gradient vectors g). The bases must be related through the Riesz map, i.e., \( R \{\phi_i\} = \{\psi_j\}\), and this must be reflected in the implementation of the ROL::Vector::dual() method.

Reimplemented from ROL::Objective< Real >.

Definition at line 385 of file burgers-control/example_01.hpp.

References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::nx_, Objective_BurgersControl< Real >::solve_adjoint(), and Objective_BurgersControl< Real >::solve_state().

template<class Real>
void Objective_BurgersControl< Real >::hessVec ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  x,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

This function applies the Hessian of the objective function to the vector \(v\).

Parameters
[out]hvis the the action of the Hessian on \(v\).
[in]vis the direction vector.
[in]xis the current iterate.
[in]tolis a tolerance for inexact objective function computation.

Reimplemented from ROL::Objective< Real >.

Definition at line 422 of file burgers-control/example_01.hpp.

References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::nx_, Objective_BurgersControl< Real >::solve_adjoint(), Objective_BurgersControl< Real >::solve_adjoint_sensitivity(), Objective_BurgersControl< Real >::solve_state(), and Objective_BurgersControl< Real >::solve_state_sensitivity().

template<class Real>
Real Objective_BurgersControl< Real >::evaluate_target ( Real  x)
inlineprivate

Definition at line 393 of file burgers-control/example_02.hpp.

template<class Real>
Real Objective_BurgersControl< Real >::dot ( const std::vector< Real > &  x,
const std::vector< Real > &  y 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::apply_mass ( std::vector< Real > &  Mu,
const std::vector< Real > &  u 
)
inlineprivate
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to second component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 493 of file burgers-control/example_02.hpp.

References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 516 of file burgers-control/example_02.hpp.

References Objective_BurgersControl< Real >::apply_mass().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 527 of file burgers-control/example_02.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 532 of file burgers-control/example_02.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
Real Objective_BurgersControl< Real >::evaluate_target ( Real  x)
inlineprivate

Definition at line 753 of file example_03.hpp.

template<class Real>
Real Objective_BurgersControl< Real >::dot ( const std::vector< Real > &  x,
const std::vector< Real > &  y 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::apply_mass ( std::vector< Real > &  Mu,
const std::vector< Real > &  u 
)
inlineprivate
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 903 of file example_03.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 908 of file example_03.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to first component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1087 of file example_04.hpp.

References Objective_BurgersControl< Real >::fem_, and L2VectorPrimal< Real >::getVector().

template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to second component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1102 of file example_04.hpp.

References Objective_BurgersControl< Real >::alpha_, and Objective_BurgersControl< Real >::fem_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1114 of file example_04.hpp.

References Objective_BurgersControl< Real >::fem_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1124 of file example_04.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1129 of file example_04.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
Real Objective_BurgersControl< Real >::evaluate_target ( Real  x)
inlineprivate

Definition at line 406 of file example_05.hpp.

template<class Real>
Real Objective_BurgersControl< Real >::dot ( const std::vector< Real > &  x,
const std::vector< Real > &  y 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::apply_mass ( std::vector< Real > &  Mu,
const std::vector< Real > &  u 
)
inlineprivate
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to second component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 508 of file example_05.hpp.

References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 531 of file example_05.hpp.

References Objective_BurgersControl< Real >::apply_mass().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 542 of file example_05.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 547 of file example_05.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to first component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1146 of file example_06.hpp.

References Objective_BurgersControl< Real >::fem_, and L2VectorPrimal< Real >::getVector().

template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to second component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1161 of file example_06.hpp.

References Objective_BurgersControl< Real >::alpha_, and Objective_BurgersControl< Real >::fem_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1173 of file example_06.hpp.

References Objective_BurgersControl< Real >::fem_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1183 of file example_06.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1188 of file example_06.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to second component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1187 of file example_07.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1191 of file example_07.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1209 of file example_07.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1214 of file example_07.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1219 of file example_07.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to first component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 974 of file example_08.hpp.

References Objective_BurgersControl< Real >::fem_, and L2VectorPrimal< Real >::getVector().

template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to second component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 989 of file example_08.hpp.

References Objective_BurgersControl< Real >::alpha_, and Objective_BurgersControl< Real >::fem_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1001 of file example_08.hpp.

References Objective_BurgersControl< Real >::fem_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1011 of file example_08.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 1016 of file example_08.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
Real Objective_BurgersControl< Real >::evaluate_target ( Real  x)
inlineprivate

Definition at line 408 of file example_10.hpp.

template<class Real>
Real Objective_BurgersControl< Real >::dot ( const std::vector< Real > &  x,
const std::vector< Real > &  y 
)
inlineprivate
template<class Real>
void Objective_BurgersControl< Real >::apply_mass ( std::vector< Real > &  Mu,
const std::vector< Real > &  u 
)
inlineprivate
template<class Real>
Real Objective_BurgersControl< Real >::value ( const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_1 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual
template<class Real>
void Objective_BurgersControl< Real >::gradient_2 ( ROL::Vector< Real > &  g,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Compute gradient with respect to second component.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 510 of file example_10.hpp.

References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.

template<class Real>
void Objective_BurgersControl< Real >::hessVec_11 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Apply Hessian approximation to vector.

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 533 of file example_10.hpp.

References Objective_BurgersControl< Real >::apply_mass().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_12 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 544 of file example_10.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_21 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Reimplemented from ROL::Objective_SimOpt< Real >.

Definition at line 549 of file example_10.hpp.

References ROL::Vector< Real >::zero().

template<class Real>
void Objective_BurgersControl< Real >::hessVec_22 ( ROL::Vector< Real > &  hv,
const ROL::Vector< Real > &  v,
const ROL::Vector< Real > &  u,
const ROL::Vector< Real > &  z,
Real &  tol 
)
inlinevirtual

Member Data Documentation

template<class Real>
Real Objective_BurgersControl< Real >::alpha_
private
template<class Real>
int Objective_BurgersControl< Real >::nx_
private
template<class Real>
Real Objective_BurgersControl< Real >::dx_
private
template<class Real>
unsigned Objective_BurgersControl< Real >::nx_
private

Definition at line 744 of file example_03.hpp.

template<class Real>
unsigned Objective_BurgersControl< Real >::nt_
private
template<class Real>
Real Objective_BurgersControl< Real >::dt_
private
template<class Real>
Real Objective_BurgersControl< Real >::T_
private

Definition at line 748 of file example_03.hpp.

template<class Real>
ROL::Ptr< BurgersFEM< Real > > Objective_BurgersControl< Real >::fem_
private
template<class Real>
ROL::Ptr< ROL::Vector< Real > > Objective_BurgersControl< Real >::ud_
private
template<class Real>
ROL::Ptr< ROL::Vector< Real > > Objective_BurgersControl< Real >::diff_
private
template<class Real>
Real Objective_BurgersControl< Real >::x_
private
template<class Real>
std::vector<int> Objective_BurgersControl< Real >::indices_
private

The documentation for this class was generated from the following files: