![]() |
A mixed linear complementarity problem (MLCP) data structure.The LCP class represent a mixed linear complementarity problem of the form. More...
#include <MixedLCP.h>
Public Member Functions | |
Utility functions | |
size_t | size () const |
Returns the size of the mixed linear complementarity problem. More... | |
size_t | equations () const |
Returns the number of equations of the MLCP. More... | |
size_t | constraints () const |
Returns the number of constraints of the MLCP. More... | |
void | project (size_t index) |
Projects the unknown at the given index on the solution range. More... | |
real | lbound (size_t index) const |
Returns the lower bound of the unknown at the given index. More... | |
real | ubound (size_t index) const |
Returns the upper bound of the unknown at the given index. More... | |
real | residual (size_t index) const |
Calculates the residual of the unknown at the given index. More... | |
real | residual () const |
Calculates the maximum norm of the residual of the mixed LCP. More... | |
Public Attributes | |
Member variables | |
CMatMxN | A11_ |
The upper left part of the system matrix ![]() | |
CMatMxN | A12_ |
The upper right part of the system matrix ![]() | |
CMatMxN | A21_ |
The lower left part of the system matrix ![]() | |
CMatMxN | A22_ |
The lower right part of the system matrix ![]() | |
VecN | b1_ |
The upper part of the right-hand side vector ![]() | |
VecN | b2_ |
The lower part of the right-hand side vector ![]() | |
VecN | x1_ |
The upper part of the vector of unknowns ![]() | |
VecN | x2_ |
The lower part of the vector of unknowns ![]() | |
A mixed linear complementarity problem (MLCP) data structure.
The LCP class represent a mixed linear complementarity problem of the form.
|
inline |
Returns the number of constraints of the MLCP.
|
inline |
Returns the number of equations of the MLCP.
Returns the lower bound of the unknown at the given index.
index | Access index. The index has to be in the range ![]() |
|
inline |
Projects the unknown at the given index on the solution range.
index | Access index. The index has to be in the range ![]() |
Calculates the residual of the unknown at the given index.
index | Access index. The index has to be in the range ![]() |
|
inline |
Calculates the maximum norm of the residual of the mixed LCP.
|
inline |
Returns the size of the mixed linear complementarity problem.
Returns the upper bound of the unknown at the given index.
index | Access index. The index has to be in the range ![]() |