// @HEADER // ***************************************************************************** // Rapid Optimization Library (ROL) Package // // Copyright 2014 NTESS and the ROL contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef ROL_OED_A_HET_OBJECTIVE_HPP #define ROL_OED_A_HET_OBJECTIVE_HPP #include "ROL_OED_HetObjectiveBase.hpp" namespace ROL { namespace OED { namespace Het { template class A_Objective : public ObjectiveBase> { private: std::vector weight_; Ptr> g_; public: A_Objective( const Ptr> &con, const Ptr> &obj, const Ptr> &state, const std::vector &weight, 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 Het Namespace } // END OED Namespace } // END ROL Namespace #include "ROL_OED_A_HetObjective_Def.hpp" #endif