ROL
Toggle main menu visibility
Loading...
Searching...
No Matches
src
function
constraint
ROL_BoundToConstraint.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_BOUND_TO_CONSTRAINT_H
11
#define ROL_BOUND_TO_CONSTRAINT_H
12
13
#include "
ROL_LowerBoundToConstraint.hpp
"
14
#include "
ROL_UpperBoundToConstraint.hpp
"
15
20
21
namespace
ROL
{
22
23
template
<
typename
Real>
24
class
BoundToConstraint
:
public
Constraint
<Real> {
25
private
:
26
Ptr<Constraint<Real>>
lo_
;
27
Ptr<Constraint<Real>>
up_
;
28
Ptr<Vector<Real>>
tmp_
;
29
30
public
:
31
BoundToConstraint
(
BoundConstraint<Real>
&bnd);
32
BoundToConstraint
(
const
Vector<Real>
&lo,
const
Vector<Real>
&up);
33
34
void
value
(
Vector<Real>
&c,
const
Vector<Real>
&x, Real &tol)
override
;
35
void
applyJacobian
(
Vector<Real>
&jv,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol)
override
;
36
void
applyAdjointJacobian
(
Vector<Real>
&ajv,
const
Vector<Real>
&v,
const
Vector<Real>
&x, Real &tol)
override
;
37
void
applyAdjointHessian
(
Vector<Real>
&ahuv,
const
Vector<Real>
&u,
const
Vector<Real>
&v,
38
const
Vector<Real>
&x, Real &tol)
override
;
39
};
40
41
}
42
43
#include "
ROL_BoundToConstraint_Def.hpp
"
44
45
#endif
ROL_BoundToConstraint_Def.hpp
ROL_LowerBoundToConstraint.hpp
ROL_UpperBoundToConstraint.hpp
ROL::BoundConstraint
Provides the interface to apply upper and lower bound constraints.
Definition
ROL_BoundConstraint.hpp:39
ROL::BoundToConstraint::BoundToConstraint
BoundToConstraint(BoundConstraint< Real > &bnd)
Definition
ROL_BoundToConstraint_Def.hpp:16
ROL::BoundToConstraint::applyAdjointJacobian
void applyAdjointJacobian(Vector< Real > &ajv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_BoundToConstraint_Def.hpp:47
ROL::BoundToConstraint::tmp_
Ptr< Vector< Real > > tmp_
Definition
ROL_BoundToConstraint.hpp:28
ROL::BoundToConstraint::applyAdjointHessian
void applyAdjointHessian(Vector< Real > &ahuv, const Vector< Real > &u, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_BoundToConstraint_Def.hpp:57
ROL::BoundToConstraint::up_
Ptr< Constraint< Real > > up_
Definition
ROL_BoundToConstraint.hpp:27
ROL::BoundToConstraint::value
void value(Vector< Real > &c, const Vector< Real > &x, Real &tol) override
Definition
ROL_BoundToConstraint_Def.hpp:30
ROL::BoundToConstraint::applyJacobian
void applyJacobian(Vector< Real > &jv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) override
Definition
ROL_BoundToConstraint_Def.hpp:38
ROL::BoundToConstraint::lo_
Ptr< Constraint< Real > > lo_
Definition
ROL_BoundToConstraint.hpp:26
ROL::ROL::Constraint::Constraint
Constraint(void)
Definition
ROL_Constraint_SerialSimOpt.hpp:59
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