// @HEADER // ***************************************************************************** // Rapid Optimization Library (ROL) Package // // Copyright 2014 NTESS and the ROL contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef ROL_OED_D_HET_OBJECTIVE_HPP #define ROL_OED_D_HET_OBJECTIVE_HPP #include "ROL_OED_HetObjectiveBase.hpp" /*! \file OED_D_HetObjective.hpp \brief Implements the D-optimal criterion. Given a covariance operator \f$C(p)\f$ that depends on the current design \f$p\f$, this objective function implements the logarithm of the determinant of \f$C(p)\f$, i.e., \f[ J(p) = \log(\operatorname{det}(C(p))). \f] */ namespace ROL { namespace OED { namespace Het { template class D_Objective : public ObjectiveBase> { private: const Ptr> con0_; const Ptr> ustore_; const Ptr> u_, g_; const int dim_; Ptr> p_; Real det0_, det1_; bool isDetComputed_; using ObjectiveBase>::setConstraint; using ObjectiveBase>::setStorage; using ObjectiveBase>::setUpdate; using ObjectiveBase>::initialize; using ObjectiveBase>::getConstraint; using ObjectiveBase>::getState; using ObjectiveBase>::solve_state_equation; using ObjectiveBase>::getStateSens; using ObjectiveBase>::solve_state_sensitivity; void solve(int key, const Vector &z, Real &tol); void solveSens(const Vector &v, const Vector &z, Real &tol); public: D_Objective( const Ptr> &con0, // Objective Moment Operator const Ptr> &con1, // Constraint Moment Operator const Ptr> &state, bool storage = true); void update(const Vector &z, UpdateType type, int iter = -1) override; 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_D_HetObjective_Def.hpp" #endif