ROL
|
#include <example_01.hpp>
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 > ¶m) |
void | solve_adjoint (std::vector< Real > &p, const std::vector< Real > &u, const std::vector< Real > ¶m) |
void | solve_state_sensitivity (std::vector< Real > &v, const std::vector< Real > &u, const std::vector< Real > &z, const std::vector< Real > ¶m) |
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 > ¶m) |
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 > ¶m) |
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 > ¶m) |
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 > ¶m) |
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 > ¶m) |
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 |
Definition at line 67 of file burgers-control/example_01.hpp.
|
private |
Definition at line 1054 of file example_04.hpp.
|
private |
Definition at line 1055 of file example_04.hpp.
|
private |
Definition at line 1057 of file example_04.hpp.
|
private |
Definition at line 1058 of file example_04.hpp.
|
private |
Definition at line 1111 of file example_06.hpp.
|
private |
Definition at line 1112 of file example_06.hpp.
|
private |
Definition at line 1114 of file example_06.hpp.
|
private |
Definition at line 1115 of file example_06.hpp.
|
private |
Definition at line 1117 of file example_07.hpp.
|
private |
Definition at line 1118 of file example_07.hpp.
|
private |
Definition at line 1120 of file example_07.hpp.
|
private |
Definition at line 1121 of file example_07.hpp.
|
private |
Definition at line 1123 of file example_07.hpp.
|
private |
Definition at line 939 of file example_08.hpp.
|
private |
Definition at line 940 of file example_08.hpp.
|
private |
Definition at line 942 of file example_08.hpp.
|
private |
Definition at line 943 of file example_08.hpp.
|
inline |
Definition at line 284 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::dx_.
|
inline |
Definition at line 443 of file burgers-control/example_02.hpp.
References Objective_BurgersControl< Real >::dx_.
|
inline |
Definition at line 803 of file example_03.hpp.
References Objective_BurgersControl< Real >::dt_, and Objective_BurgersControl< Real >::dx_.
|
inline |
Definition at line 1066 of file example_04.hpp.
References Objective_BurgersControl< Real >::diff_, and Objective_BurgersControl< Real >::ud_.
|
inline |
Definition at line 456 of file example_05.hpp.
References Objective_BurgersControl< Real >::dx_.
|
inline |
Definition at line 1123 of file example_06.hpp.
References Objective_BurgersControl< Real >::diff_, and Objective_BurgersControl< Real >::ud_.
|
inline |
Definition at line 1131 of file example_07.hpp.
References Objective_BurgersControl< Real >::fem_, Objective_BurgersControl< Real >::indices_, and Objective_BurgersControl< Real >::x_.
|
inline |
Definition at line 951 of file example_08.hpp.
References Objective_BurgersControl< Real >::diff_, and Objective_BurgersControl< Real >::ud_.
|
inline |
Definition at line 458 of file example_10.hpp.
References Objective_BurgersControl< Real >::dx_.
|
inlineprivate |
Definition at line 77 of file burgers-control/example_01.hpp.
Referenced by Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::solve_adjoint(), and Objective_BurgersControl< Real >::value().
|
inlineprivate |
Definition at line 89 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::dot().
Referenced by Objective_BurgersControl< Real >::run_newton().
|
inlineprivate |
Definition at line 93 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::compute_norm(), and Objective_BurgersControl< Real >::value().
|
inlineprivate |
Definition at line 112 of file burgers-control/example_01.hpp.
Referenced by Objective_BurgersControl< Real >::run_newton().
|
inlineprivate |
Definition at line 118 of file burgers-control/example_01.hpp.
Referenced by Objective_BurgersControl< Real >::solve_adjoint_sensitivity().
|
inlineprivate |
Definition at line 124 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::gradient_2(), Objective_BurgersControl< Real >::hessVec_11(), Objective_BurgersControl< Real >::hessVec_22(), Objective_BurgersControl< Real >::solve_adjoint(), and Objective_BurgersControl< Real >::solve_adjoint_sensitivity().
|
inlineprivate |
Definition at line 140 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::run_newton().
|
inlineprivate |
Definition at line 176 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::run_newton(), Objective_BurgersControl< Real >::solve_adjoint(), Objective_BurgersControl< Real >::solve_adjoint_sensitivity(), and Objective_BurgersControl< Real >::solve_state_sensitivity().
|
inlineprivate |
Definition at line 204 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::solve_adjoint_sensitivity().
|
inlineprivate |
Definition at line 217 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::run_newton(), Objective_BurgersControl< Real >::solve_adjoint(), Objective_BurgersControl< Real >::solve_adjoint_sensitivity(), and Objective_BurgersControl< Real >::solve_state_sensitivity().
|
inlineprivate |
Definition at line 235 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::compute_norm(), Objective_BurgersControl< Real >::compute_pde_jacobian(), Objective_BurgersControl< Real >::compute_residual(), Objective_BurgersControl< Real >::linear_solve(), Objective_BurgersControl< Real >::nx_, and Objective_BurgersControl< Real >::update().
Referenced by Objective_BurgersControl< Real >::solve_state().
|
inline |
Definition at line 288 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::nx_, and Objective_BurgersControl< Real >::run_newton().
Referenced by Objective_BurgersControl< Real >::gradient(), Objective_BurgersControl< Real >::hessVec(), main(), and Objective_BurgersControl< Real >::value().
|
inline |
Definition at line 294 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::compute_pde_jacobian(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), Objective_BurgersControl< Real >::linear_solve(), and Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::gradient(), and Objective_BurgersControl< Real >::hessVec().
|
inline |
Definition at line 314 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::compute_pde_jacobian(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::linear_solve(), and Objective_BurgersControl< Real >::nx_.
Referenced by Objective_BurgersControl< Real >::hessVec().
|
inline |
Definition at line 333 of file burgers-control/example_01.hpp.
References Objective_BurgersControl< Real >::add_pde_hessian(), Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::compute_pde_jacobian(), Objective_BurgersControl< Real >::linear_solve(), Objective_BurgersControl< Real >::nx_, and Objective_BurgersControl< Real >::scale().
Referenced by Objective_BurgersControl< Real >::hessVec().
|
inlinevirtual |
Compute value.
This function returns the objective function value.
[in] | x | is the current iterate. |
[in] | tol | is 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().
|
inlinevirtual |
Compute gradient.
This function returns the objective function gradient.
[out] | g | is the gradient. |
[in] | x | is the current iterate. |
[in] | tol | is 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().
|
inlinevirtual |
Apply Hessian approximation to vector.
This function applies the Hessian of the objective function to the vector \(v\).
[out] | hv | is the the action of the Hessian on \(v\). |
[in] | v | is the direction vector. |
[in] | x | is the current iterate. |
[in] | tol | is 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().
|
inlineprivate |
Definition at line 393 of file burgers-control/example_02.hpp.
|
inlineprivate |
Definition at line 405 of file burgers-control/example_02.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlineprivate |
Definition at line 422 of file burgers-control/example_02.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 447 of file burgers-control/example_02.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dot(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute gradient with respect to first component.
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 476 of file burgers-control/example_02.hpp.
References Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), and Objective_BurgersControl< Real >::nx_.
|
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_.
|
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().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 527 of file burgers-control/example_02.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 532 of file burgers-control/example_02.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 537 of file burgers-control/example_02.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlineprivate |
Definition at line 753 of file example_03.hpp.
|
inlineprivate |
Definition at line 765 of file example_03.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlineprivate |
Definition at line 782 of file example_03.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 809 of file example_03.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dot(), Objective_BurgersControl< Real >::dt_, Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), Objective_BurgersControl< Real >::nt_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute gradient with respect to first component.
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 839 of file example_03.hpp.
References Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::dt_, Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), Objective_BurgersControl< Real >::nt_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute gradient with respect to second component.
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 860 of file example_03.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::dt_, Objective_BurgersControl< Real >::nt_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Apply Hessian approximation to vector.
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 881 of file example_03.hpp.
References Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::dt_, Objective_BurgersControl< Real >::nt_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 903 of file example_03.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 908 of file example_03.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 913 of file example_03.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::dt_, Objective_BurgersControl< Real >::nt_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 1072 of file example_04.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::fem_, and L2VectorPrimal< Real >::getVector().
|
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().
|
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_.
|
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_.
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1124 of file example_04.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1129 of file example_04.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1134 of file example_04.hpp.
References Objective_BurgersControl< Real >::alpha_, and Objective_BurgersControl< Real >::fem_.
|
inlineprivate |
Definition at line 406 of file example_05.hpp.
|
inlineprivate |
Definition at line 418 of file example_05.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlineprivate |
Definition at line 435 of file example_05.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 462 of file example_05.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dot(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute gradient with respect to first component.
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 491 of file example_05.hpp.
References Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), and Objective_BurgersControl< Real >::nx_.
|
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_.
|
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().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 542 of file example_05.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 547 of file example_05.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 552 of file example_05.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 1131 of file example_06.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::fem_, and L2VectorPrimal< Real >::getVector().
|
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().
|
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_.
|
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_.
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1183 of file example_06.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1188 of file example_06.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1193 of file example_06.hpp.
References Objective_BurgersControl< Real >::alpha_, and Objective_BurgersControl< Real >::fem_.
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 1142 of file example_07.hpp.
References Objective_BurgersControl< Real >::fem_, Objective_BurgersControl< Real >::indices_, and Objective_BurgersControl< Real >::x_.
|
inlinevirtual |
Compute gradient with respect to first component.
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1162 of file example_07.hpp.
References Objective_BurgersControl< Real >::fem_, Objective_BurgersControl< Real >::indices_, Objective_BurgersControl< Real >::x_, and ROL::Vector< Real >::zero().
|
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().
|
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().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1209 of file example_07.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1214 of file example_07.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1219 of file example_07.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 959 of file example_08.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::fem_, and L2VectorPrimal< Real >::getVector().
|
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().
|
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_.
|
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_.
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1011 of file example_08.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1016 of file example_08.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 1021 of file example_08.hpp.
References Objective_BurgersControl< Real >::alpha_, and Objective_BurgersControl< Real >::fem_.
|
inlineprivate |
Definition at line 408 of file example_10.hpp.
|
inlineprivate |
Definition at line 420 of file example_10.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlineprivate |
Definition at line 437 of file example_10.hpp.
References Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute value.
Implements ROL::Objective_SimOpt< Real >.
Definition at line 464 of file example_10.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dot(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), and Objective_BurgersControl< Real >::nx_.
|
inlinevirtual |
Compute gradient with respect to first component.
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 493 of file example_10.hpp.
References Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::dx_, Objective_BurgersControl< Real >::evaluate_target(), and Objective_BurgersControl< Real >::nx_.
|
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_.
|
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().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 544 of file example_10.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 549 of file example_10.hpp.
References ROL::Vector< Real >::zero().
|
inlinevirtual |
Reimplemented from ROL::Objective_SimOpt< Real >.
Definition at line 554 of file example_10.hpp.
References Objective_BurgersControl< Real >::alpha_, Objective_BurgersControl< Real >::dx_, and Objective_BurgersControl< Real >::nx_.
|
private |
Definition at line 69 of file burgers-control/example_01.hpp.
Referenced by Objective_BurgersControl< Real >::gradient(), Objective_BurgersControl< Real >::gradient_2(), Objective_BurgersControl< Real >::hessVec(), Objective_BurgersControl< Real >::hessVec_22(), and Objective_BurgersControl< Real >::value().
|
private |
Definition at line 71 of file burgers-control/example_01.hpp.
Referenced by Objective_BurgersControl< Real >::add_pde_hessian(), Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::compute_pde_jacobian(), Objective_BurgersControl< Real >::compute_residual(), Objective_BurgersControl< Real >::dot(), Objective_BurgersControl< Real >::gradient(), Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::gradient_2(), Objective_BurgersControl< Real >::hessVec(), Objective_BurgersControl< Real >::hessVec_11(), Objective_BurgersControl< Real >::hessVec_22(), Objective_BurgersControl< Real >::linear_solve(), Objective_BurgersControl< Real >::run_newton(), Objective_BurgersControl< Real >::solve_adjoint(), Objective_BurgersControl< Real >::solve_adjoint_sensitivity(), Objective_BurgersControl< Real >::solve_state(), Objective_BurgersControl< Real >::solve_state_sensitivity(), and Objective_BurgersControl< Real >::value().
|
private |
Definition at line 72 of file burgers-control/example_01.hpp.
Referenced by Objective_BurgersControl< Real >::apply_mass(), Objective_BurgersControl< Real >::compute_pde_jacobian(), Objective_BurgersControl< Real >::compute_residual(), Objective_BurgersControl< Real >::dot(), Objective_BurgersControl< Real >::gradient(), Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::gradient_2(), Objective_BurgersControl< Real >::hessVec(), Objective_BurgersControl< Real >::hessVec_22(), Objective_BurgersControl< Real >::Objective_BurgersControl(), Objective_BurgersControl< Real >::solve_adjoint(), Objective_BurgersControl< Real >::solve_state_sensitivity(), and Objective_BurgersControl< Real >::value().
|
private |
Definition at line 744 of file example_03.hpp.
|
private |
|
private |
Definition at line 747 of file example_03.hpp.
Referenced by Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::gradient_2(), Objective_BurgersControl< Real >::hessVec_11(), Objective_BurgersControl< Real >::hessVec_22(), Objective_BurgersControl< Real >::Objective_BurgersControl(), and Objective_BurgersControl< Real >::value().
|
private |
Definition at line 748 of file example_03.hpp.
|
private |
Definition at line 1061 of file example_04.hpp.
Referenced by Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::gradient_2(), Objective_BurgersControl< Real >::hessVec_11(), Objective_BurgersControl< Real >::hessVec_22(), Objective_BurgersControl< Real >::Objective_BurgersControl(), and Objective_BurgersControl< Real >::value().
|
private |
Definition at line 1062 of file example_04.hpp.
Referenced by Objective_BurgersControl< Real >::Objective_BurgersControl().
|
private |
Definition at line 1063 of file example_04.hpp.
Referenced by Objective_BurgersControl< Real >::Objective_BurgersControl().
|
private |
Definition at line 1127 of file example_07.hpp.
Referenced by Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::Objective_BurgersControl(), and Objective_BurgersControl< Real >::value().
|
private |
Definition at line 1128 of file example_07.hpp.
Referenced by Objective_BurgersControl< Real >::gradient_1(), Objective_BurgersControl< Real >::Objective_BurgersControl(), and Objective_BurgersControl< Real >::value().