ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
sol
function
ROL_RiskLessObjective.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_RISKLESSOBJECTIVE_HPP
11
#define ROL_RISKLESSOBJECTIVE_HPP
12
13
#include "
ROL_RiskVector.hpp
"
14
#include "
ROL_Objective.hpp
"
15
16
namespace
ROL
{
17
18
template
<
typename
Real>
19
class
RiskLessObjective
:
public
Objective
<Real> {
20
private
:
21
const
Ptr<Objective<Real>>
obj_
;
22
23
public
:
24
RiskLessObjective
(
const
Ptr<
Objective<Real>
> &obj);
25
26
void
update
(
const
Vector<Real>
&x,
UpdateType
type,
int
iter = -1 )
override
;
27
void
update
(
const
Vector<Real>
&x,
bool
flag =
true
,
int
iter = -1 )
override
;
28
Real
value
(
const
Vector<Real>
&x, Real &tol )
override
;
29
void
gradient
(
Vector<Real>
&g,
const
Vector<Real>
&x, Real &tol )
override
;
30
void
hessVec
(
Vector<Real>
&hv,
const
Vector<Real>
&v,
31
const
Vector<Real>
&x, Real &tol )
override
;
32
void
precond
(
Vector<Real>
&Pv,
const
Vector<Real>
&v,
33
const
Vector<Real>
&x, Real &tol )
override
;
34
void
setParameter
(
const
std::vector<Real> ¶m)
override
;
35
};
36
37
}
38
39
#include "
ROL_RiskLessObjective_Def.hpp
"
40
41
#endif
ROL_Objective.hpp
ROL_RiskLessObjective_Def.hpp
ROL_RiskVector.hpp
ROL::ROL::Objective::Objective
Objective()
Definition
ROL_Constraint_SerialSimOpt.hpp:53
ROL::RiskLessObjective::precond
void precond(Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_RiskLessObjective_Def.hpp:61
ROL::RiskLessObjective::value
Real value(const Vector< Real > &x, Real &tol) override
Definition
ROL_RiskLessObjective_Def.hpp:33
ROL::RiskLessObjective::setParameter
void setParameter(const std::vector< Real > ¶m) override
Definition
ROL_RiskLessObjective_Def.hpp:73
ROL::RiskLessObjective::gradient
void gradient(Vector< Real > &g, const Vector< Real > &x, Real &tol) override
Definition
ROL_RiskLessObjective_Def.hpp:40
ROL::RiskLessObjective::hessVec
void hessVec(Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_RiskLessObjective_Def.hpp:49
ROL::RiskLessObjective::obj_
const Ptr< Objective< Real > > obj_
Definition
ROL_RiskLessObjective.hpp:21
ROL::RiskLessObjective::RiskLessObjective
RiskLessObjective(const Ptr< Objective< Real > > &obj)
Definition
ROL_RiskLessObjective_Def.hpp:16
ROL::RiskLessObjective::update
void update(const Vector< Real > &x, UpdateType type, int iter=-1) override
Definition
ROL_RiskLessObjective_Def.hpp:19
ROL::Vector
Defines the linear algebra or vector space interface.
Definition
ROL_Vector.hpp:51
ROL
Definition
ROL_ElementwiseVector.hpp:27
ROL::UpdateType
UpdateType
Definition
ROL_UpdateType.hpp:18
Generated by
1.17.0