ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
sol
function
ROL_MeanValueConstraint.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_MEANVALUECONSTRAINT_HPP
11
#define ROL_MEANVALUECONSTRAINT_HPP
12
13
#include "
ROL_Constraint.hpp
"
14
#include "
ROL_SampleGenerator.hpp
"
15
16
namespace
ROL
{
17
18
template
<
class
Real>
19
class
MeanValueConstraint
:
public
Constraint
<Real> {
20
private
:
21
const
Ptr<Constraint<Real>>
con_
;
22
23
public
:
24
MeanValueConstraint
(
const
Ptr<
Constraint<Real>
> &con,
25
const
Ptr<
SampleGenerator<Real>
> &sampler );
26
27
void
update
(
const
Vector<Real>
&x,
bool
flag =
true
,
int
iter = -1 )
override
;
28
void
update
(
const
Vector<Real>
&x,
UpdateType
type,
int
iter = -1 )
override
;
29
void
value
(
Vector<Real>
&c,
const
Vector<Real>
&x, Real &tol )
override
;
30
void
applyJacobian
(
Vector<Real>
&jv,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol)
override
;
31
void
applyAdjointJacobian
(
Vector<Real>
&ajv,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol)
override
;
32
void
applyAdjointHessian
(
Vector<Real>
&ahuv,
const
Vector<Real>
&u,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol)
override
;
33
34
private
:
35
std::vector<Real>
computeSampleMean
(
const
Ptr<
SampleGenerator<Real>
> &sampler)
const
;
36
};
37
38
}
39
40
#include "
ROL_MeanValueConstraint_Def.hpp
"
41
42
#endif
ROL_Constraint.hpp
ROL_MeanValueConstraint_Def.hpp
ROL_SampleGenerator.hpp
ROL::MeanValueConstraint::applyAdjointHessian
void applyAdjointHessian(Vector< Real > &ahuv, const Vector< Real > &u, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_MeanValueConstraint_Def.hpp:49
ROL::MeanValueConstraint::computeSampleMean
std::vector< Real > computeSampleMean(const Ptr< SampleGenerator< Real > > &sampler) const
Definition
ROL_MeanValueConstraint_Def.hpp:54
ROL::MeanValueConstraint::applyAdjointJacobian
void applyAdjointJacobian(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_MeanValueConstraint_Def.hpp:44
ROL::MeanValueConstraint::applyJacobian
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_MeanValueConstraint_Def.hpp:39
ROL::MeanValueConstraint::update
void update(const Vector< Real > &x, bool flag=true, int iter=-1) override
Definition
ROL_MeanValueConstraint_Def.hpp:24
ROL::MeanValueConstraint::MeanValueConstraint
MeanValueConstraint(const Ptr< Constraint< Real > > &con, const Ptr< SampleGenerator< Real > > &sampler)
Definition
ROL_MeanValueConstraint_Def.hpp:16
ROL::MeanValueConstraint::value
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Definition
ROL_MeanValueConstraint_Def.hpp:34
ROL::MeanValueConstraint::con_
const Ptr< Constraint< Real > > con_
Definition
ROL_MeanValueConstraint.hpp:21
ROL::ROL::Constraint::Constraint
Constraint(void)
Definition
ROL_Constraint_SerialSimOpt.hpp:59
ROL::SampleGenerator
Definition
ROL_SampleGenerator.hpp:20
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