ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
function
constraint
ROL_ReducedLinearConstraint.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_REDUCED_LINEAR_CONSTRAINT_H
11
#define ROL_REDUCED_LINEAR_CONSTRAINT_H
12
13
#include "
ROL_Constraint.hpp
"
14
#include "
ROL_BoundConstraint.hpp
"
15
29
30
namespace
ROL
{
31
32
template
<
typename
Real>
33
class
ReducedLinearConstraint
:
public
Constraint
<Real> {
34
private
:
35
const
Ptr<Constraint<Real>>
con_
;
36
const
Ptr<BoundConstraint<Real>>
bnd_
;
37
Ptr<const Vector<Real>>
x_
;
38
const
Ptr<Vector<Real>>
prim_
;
39
40
public
:
41
ReducedLinearConstraint
(
const
Ptr<
Constraint<Real>
> &con,
42
const
Ptr<
BoundConstraint<Real>
> &bnd,
43
const
Ptr<
const
Vector<Real>
> &x);
44
45
void
setX
(
const
Ptr<
const
Vector<Real>
> &x);
46
47
void
value
(
Vector<Real>
&c,
const
Vector<Real>
&x, Real &tol)
override
;
48
void
applyJacobian
(
Vector<Real>
&jv,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol)
override
;
49
void
applyAdjointJacobian
(
Vector<Real>
&jv,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol)
override
;
50
void
applyAdjointHessian
(
Vector<Real>
&ahuv,
const
Vector<Real>
&u,
const
Vector<Real>
&v,
51
const
Vector<Real>
&x, Real &tol)
override
;
52
};
// class ReducedLinearConstraint
53
54
}
// namespace ROL
55
56
#include "
ROL_ReducedLinearConstraint_Def.hpp
"
57
58
#endif
// ROL_REDUCED_LINEAR_CONSTRAINT_H
ROL_BoundConstraint.hpp
ROL_Constraint.hpp
ROL_ReducedLinearConstraint_Def.hpp
ROL::BoundConstraint
Provides the interface to apply upper and lower bound constraints.
Definition
ROL_BoundConstraint.hpp:39
ROL::ROL::Constraint::Constraint
Constraint(void)
Definition
ROL_Constraint_SerialSimOpt.hpp:59
ROL::ReducedLinearConstraint::prim_
const Ptr< Vector< Real > > prim_
Definition
ROL_ReducedLinearConstraint.hpp:38
ROL::ReducedLinearConstraint::applyAdjointJacobian
void applyAdjointJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_ReducedLinearConstraint_Def.hpp:45
ROL::ReducedLinearConstraint::ReducedLinearConstraint
ReducedLinearConstraint(const Ptr< Constraint< Real > > &con, const Ptr< BoundConstraint< Real > > &bnd, const Ptr< const Vector< Real > > &x)
Definition
ROL_ReducedLinearConstraint_Def.hpp:16
ROL::ReducedLinearConstraint::bnd_
const Ptr< BoundConstraint< Real > > bnd_
Definition
ROL_ReducedLinearConstraint.hpp:36
ROL::ReducedLinearConstraint::applyJacobian
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_ReducedLinearConstraint_Def.hpp:35
ROL::ReducedLinearConstraint::value
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Definition
ROL_ReducedLinearConstraint_Def.hpp:27
ROL::ReducedLinearConstraint::applyAdjointHessian
void applyAdjointHessian(Vector< Real > &ahuv, const Vector< Real > &u, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_ReducedLinearConstraint_Def.hpp:54
ROL::ReducedLinearConstraint::con_
const Ptr< Constraint< Real > > con_
Definition
ROL_ReducedLinearConstraint.hpp:35
ROL::ReducedLinearConstraint::x_
Ptr< const Vector< Real > > x_
Definition
ROL_ReducedLinearConstraint.hpp:37
ROL::ReducedLinearConstraint::setX
void setX(const Ptr< const Vector< Real > > &x)
Definition
ROL_ReducedLinearConstraint_Def.hpp:22
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