ROL
|
Provides a wrapper for multiple constraints. More...
#include <ROL_ConstraintAssembler.hpp>
Public Member Functions | |
virtual | ~ConstraintAssembler () |
ConstraintAssembler (const std::unordered_map< std::string, ConstraintData< Real >> &con, const Ptr< Vector< Real >> &xprim, const Ptr< Vector< Real >> &xdual, const Ptr< BoundConstraint< Real >> &bnd=nullPtr) | |
ConstraintAssembler (const std::unordered_map< std::string, ConstraintData< Real >> &con, const std::unordered_map< std::string, ConstraintData< Real >> &linear_con, const Ptr< Vector< Real >> &xprim, const Ptr< Vector< Real >> &xdual, const Ptr< BoundConstraint< Real >> &bnd=nullPtr) | |
const Ptr< Constraint< Real > > & | getConstraint () const |
const Ptr< Vector< Real > > & | getMultiplier () const |
const Ptr< Vector< Real > > & | getResidual () const |
const Ptr< Constraint< Real > > & | getLinearConstraint () const |
const Ptr< Vector< Real > > & | getLinearMultiplier () const |
const Ptr< Vector< Real > > & | getLinearResidual () const |
const Ptr< Vector< Real > > & | getOptVector () const |
const Ptr< Vector< Real > > & | getDualOptVector () const |
const Ptr< BoundConstraint < Real > > & | getBoundConstraint () const |
bool | isNull () const |
bool | hasInequality () const |
void | resetSlackVariables () |
Private Member Functions | |
void | initializeSlackVariable (const Ptr< Constraint< Real >> &con, const Ptr< BoundConstraint< Real >> &cbnd, const Ptr< Vector< Real >> &s, const Ptr< Vector< Real >> &x) const |
void | initialize (const std::unordered_map< std::string, ConstraintData< Real >> &input_con, const Ptr< Vector< Real >> &xprim, const Ptr< Vector< Real >> &xdual, const Ptr< BoundConstraint< Real >> &bnd) |
void | initialize (const std::unordered_map< std::string, ConstraintData< Real >> &input_con, const std::unordered_map< std::string, ConstraintData< Real >> &input_lcon, const Ptr< Vector< Real >> &xprim, const Ptr< Vector< Real >> &xdual, const Ptr< BoundConstraint< Real >> &bnd) |
Private Attributes | |
Ptr< Constraint< Real > > | con_ |
Ptr< Vector< Real > > | mul_ |
Ptr< Vector< Real > > | res_ |
Ptr< Constraint< Real > > | linear_con_ |
Ptr< Vector< Real > > | linear_mul_ |
Ptr< Vector< Real > > | linear_res_ |
Ptr< Vector< Real > > | xprim_ |
Ptr< Vector< Real > > | xdual_ |
Ptr< BoundConstraint< Real > > | bnd_ |
std::vector< Ptr< Constraint < Real > > > | cvec_ |
std::vector< Ptr< Vector< Real > > > | lvec_ |
std::vector< Ptr< Vector< Real > > > | rvec_ |
std::vector< Ptr< Constraint < Real > > > | lcvec_ |
std::vector< Ptr< Vector< Real > > > | llvec_ |
std::vector< Ptr< Vector< Real > > > | lrvec_ |
std::vector< Ptr< Vector< Real > > > | psvec_ |
std::vector< Ptr< Vector< Real > > > | dsvec_ |
std::vector< Ptr < BoundConstraint< Real > > > | sbnd_ |
std::vector< bool > | isInequality_ |
std::vector< bool > | isLinearInequality_ |
bool | isNull_ |
bool | hasInequality_ |
Provides a wrapper for multiple constraints.
Definition at line 42 of file ROL_ConstraintAssembler.hpp.
|
inlinevirtual |
Definition at line 86 of file ROL_ConstraintAssembler.hpp.
ROL::ConstraintAssembler< Real >::ConstraintAssembler | ( | const std::unordered_map< std::string, ConstraintData< Real >> & | con, |
const Ptr< Vector< Real >> & | xprim, | ||
const Ptr< Vector< Real >> & | xdual, | ||
const Ptr< BoundConstraint< Real >> & | bnd = nullPtr |
||
) |
Definition at line 249 of file ROL_ConstraintAssembler_Def.hpp.
References ROL::ConstraintAssembler< Real >::initialize().
ROL::ConstraintAssembler< Real >::ConstraintAssembler | ( | const std::unordered_map< std::string, ConstraintData< Real >> & | con, |
const std::unordered_map< std::string, ConstraintData< Real >> & | linear_con, | ||
const Ptr< Vector< Real >> & | xprim, | ||
const Ptr< Vector< Real >> & | xdual, | ||
const Ptr< BoundConstraint< Real >> & | bnd = nullPtr |
||
) |
Definition at line 258 of file ROL_ConstraintAssembler_Def.hpp.
References ROL::ConstraintAssembler< Real >::initialize().
|
private |
Definition at line 16 of file ROL_ConstraintAssembler_Def.hpp.
|
private |
Definition at line 27 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::ConstraintAssembler< Real >::ConstraintAssembler().
|
private |
Definition at line 114 of file ROL_ConstraintAssembler_Def.hpp.
const Ptr< Constraint< Real > > & ROL::ConstraintAssembler< Real >::getConstraint | ( | ) | const |
Definition at line 268 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< Vector< Real > > & ROL::ConstraintAssembler< Real >::getMultiplier | ( | void | ) | const |
Definition at line 273 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< Vector< Real > > & ROL::ConstraintAssembler< Real >::getResidual | ( | void | ) | const |
Definition at line 278 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< Constraint< Real > > & ROL::ConstraintAssembler< Real >::getLinearConstraint | ( | void | ) | const |
Definition at line 283 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< Vector< Real > > & ROL::ConstraintAssembler< Real >::getLinearMultiplier | ( | ) | const |
Definition at line 288 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< Vector< Real > > & ROL::ConstraintAssembler< Real >::getLinearResidual | ( | ) | const |
Definition at line 293 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< Vector< Real > > & ROL::ConstraintAssembler< Real >::getOptVector | ( | ) | const |
Definition at line 298 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< Vector< Real > > & ROL::ConstraintAssembler< Real >::getDualOptVector | ( | ) | const |
Definition at line 303 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
const Ptr< BoundConstraint< Real > > & ROL::ConstraintAssembler< Real >::getBoundConstraint | ( | void | ) | const |
Definition at line 308 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
bool ROL::ConstraintAssembler< Real >::isNull | ( | ) | const |
Definition at line 313 of file ROL_ConstraintAssembler_Def.hpp.
bool ROL::ConstraintAssembler< Real >::hasInequality | ( | ) | const |
Definition at line 318 of file ROL_ConstraintAssembler_Def.hpp.
Referenced by ROL::Problem< Real >::finalize().
void ROL::ConstraintAssembler< Real >::resetSlackVariables | ( | ) |
Definition at line 323 of file ROL_ConstraintAssembler_Def.hpp.
|
private |
Definition at line 44 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 45 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 46 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 47 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 48 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 49 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 50 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 51 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 52 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 54 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 55 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 56 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 57 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 58 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 59 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 60 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 61 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 62 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 64 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 64 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 66 of file ROL_ConstraintAssembler.hpp.
|
private |
Definition at line 67 of file ROL_ConstraintAssembler.hpp.