// @HEADER // ***************************************************************************** // Rapid Optimization Library (ROL) Package // // Copyright 2014 NTESS and the ROL contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef ROL_OED_I_HOM_OBJECTIVE_HPP #define ROL_OED_I_HOM_OBJECTIVE_HPP #include "ROL_OED_HomObjectiveBase.hpp" namespace ROL { namespace OED { namespace Hom { template class I_Objective : public ObjectiveBase> { private: using ObjectiveBase>::setConstraint; using ObjectiveBase>::setObjective; using ObjectiveBase>::setStorage; using ObjectiveBase>::initialize; using ObjectiveBase>::getConstraint; using ObjectiveBase>::getObjective; using ObjectiveBase>::getState; using ObjectiveBase>::getStateSens; using ObjectiveBase>::solve_state_equation; using ObjectiveBase>::solve_state_sensitivity; public: I_Objective( const Ptr> &con, const Ptr> &obj, const Ptr> &state, bool storage = true); Real value( const Vector &z, Real &tol ) override; void gradient( Vector &g, const Vector &z, Real &tol ) override; void hessVec( Vector &hv, const Vector &v, const Vector &z, Real &tol ) override; }; } // END Hom Namespace } // END OED Namespace } // END ROL Namespace #include "ROL_OED_I_HomObjective_Def.hpp" #endif