ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
function
objective
ROL_LinearObjective.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Rapid Optimization Library (ROL) Package
4
//
5
// Copyright 2014 NTESS and the ROL contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef ROL_LINEAR_OBJECTIVE_H
11
#define ROL_LINEAR_OBJECTIVE_H
12
13
#include "
ROL_Objective.hpp
"
14
#include "
ROL_Vector.hpp
"
15
#include "ROL_Ptr.hpp"
16
29
30
namespace
ROL
{
31
32
template
<
typename
Real>
33
class
LinearObjective
:
public
Objective
<Real> {
34
private
:
35
const
Ptr<const Vector<Real>>
cost_
,
dual_cost_
;
36
37
public
:
38
LinearObjective
(
const
Ptr<
const
Vector<Real>
> &cost);
39
40
Real
value
(
const
Vector<Real>
&x, Real &tol )
override
;
41
void
gradient
(
Vector<Real>
&g,
const
Vector<Real>
&x, Real &tol )
override
;
42
void
hessVec
(
Vector<Real>
&hv,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol )
override
;
43
44
};
// class LinearObjective
45
46
}
// namespace ROL
47
48
#include "
ROL_LinearObjective_Def.hpp
"
49
50
#endif
ROL_LinearObjective_Def.hpp
ROL_Objective.hpp
ROL_Vector.hpp
ROL::LinearObjective::gradient
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Definition
ROL_LinearObjective_Def.hpp:27
ROL::LinearObjective::hessVec
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_LinearObjective_Def.hpp:32
ROL::LinearObjective::LinearObjective
LinearObjective(const Ptr< const Vector< Real > > &cost)
Definition
ROL_LinearObjective_Def.hpp:16
ROL::LinearObjective::dual_cost_
const Ptr< const Vector< Real > > dual_cost_
Definition
ROL_LinearObjective.hpp:35
ROL::LinearObjective::value
Real value(const Vector< Real > &x, Real &tol) override
Definition
ROL_LinearObjective_Def.hpp:22
ROL::LinearObjective::cost_
const Ptr< const Vector< Real > > cost_
Definition
ROL_LinearObjective.hpp:35
ROL::ROL::Objective::Objective
Objective()
Definition
ROL_Constraint_SerialSimOpt.hpp:53
ROL::Vector
Defines the linear algebra or vector space interface.
Definition
ROL_Vector.hpp:51
ROL
Definition
ROL_ElementwiseVector.hpp:27
Generated by
1.17.0