All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
blaze::ModifiedBoxLCP Struct Reference

A modified box linear complementarity problem (MBLCP) data structure.The ModifiedBoxLCP class represent a modified box linear complementarity problem (MBLCP) of the form. More...

#include <ModifiedBoxLCP.h>

Public Member Functions

Utility functions
size_t size () const
 Returns the size of the MBLCP.
 
void project (size_t index)
 Projects the unknown at the given index on the solution range.
 
real lbound (size_t index) const
 Returns the lower bound of the unknown at the given index.
 
real ubound (size_t index) const
 Returns the upper bound of the unknown at the given index.
 
real residual (size_t index) const
 Calculates the residual of the unknown at the given index.
 
real residual () const
 Calculates the maximum norm of the residual of the BLCP.
 

Public Attributes

Member variables
CMatMxN A_
 The system matrix $ A $.
 
VecN b_
 The right-hand side vector $ b $.
 
VecN x_
 The vector of unknowns $ x $.
 
VecN xmin_
 The lower bound of the MBLCP $ \underline{x} $.
 
VecN xmax_
 The upper bound of the MBLCP $ \bar{x} $.
 
VecN lambdamin_
 The lower bound of the friction coefficients $ \underline{\lambda} $.
 
VecN lambdamax_
 The upper bound of the friction coefficients $ \bar{\lambda} $.
 
VecN jmin_
 The lower bound of the index for the vector of unknowns $ \underline{j} $.
 
VecN jmax_
 The upper bound of the index for the vector of unknowns $ \bar{j} $.
 

Detailed Description

A modified box linear complementarity problem (MBLCP) data structure.

The ModifiedBoxLCP class represent a modified box linear complementarity problem (MBLCP) of the form.

\[ A \cdot x + b \leq 0 \quad\perp\quad \underline{x}(x) \leq x \leq \bar{x}(x), \]

where $ \underline{x}(x) = \underline{x} + \underline{\lambda} + x_{\underline{j}} $ and $ \bar{x}(x) = \bar{x} + \bar{\lambda} + x_{\bar{j}} $ are the lower and upper bound of the BLCP, respectively.

Member Function Documentation

real blaze::ModifiedBoxLCP::lbound ( size_t  index) const
inline

Returns the lower bound of the unknown at the given index.

Parameters
indexAccess index. The index has to be in the range $ [0..size) $.
Returns
void
void blaze::ModifiedBoxLCP::project ( size_t  index)
inline

Projects the unknown at the given index on the solution range.

Parameters
indexAccess index. The index has to be in the range $ [0..size) $.
Returns
void
real blaze::ModifiedBoxLCP::residual ( size_t  index) const
inline

Calculates the residual of the unknown at the given index.

Parameters
indexAccess index. The index has to be in the range $ [0..size) $.
Returns
The residual at index index.
real blaze::ModifiedBoxLCP::residual ( ) const
inline

Calculates the maximum norm of the residual of the BLCP.

Returns
The maximum norm of the global residual of the BLCP.
size_t blaze::ModifiedBoxLCP::size ( ) const
inline

Returns the size of the MBLCP.

Returns
The actual size of the MBLCP.
real blaze::ModifiedBoxLCP::ubound ( size_t  index) const
inline

Returns the upper bound of the unknown at the given index.

Parameters
indexAccess index. The index has to be in the range $ [0..size) $.
Returns
void

The documentation for this struct was generated from the following file: