#include <ConstrainedLS.H>
|
| ConstrainedLS () |
|
LSResult | solveBoundConstrained (Vector< Real > &a_x, Real **a_A, const Vector< Real > &a_rhs, const Vector< Real > &a_lowerBound, const Vector< Real > &a_upperBound) |
|
LSResult | solveUnconstrained (Vector< Real > &a_x, Real **a_A, const Vector< Real > &a_rhs) |
|
bool | boundsConsistent (const Vector< Real > &a_lowBound, const Vector< Real > &a_hiBound) const |
|
Vector< Bound > | getConstraints () const |
|
int | numberActiveConstraints () const |
|
Real | getResidual () const |
|
LSResult | qrSolution (Real **a_A, Vector< Real > &a_x, Vector< Real > &a_b, Real &resq) |
|
◆ Bound
Enumerator |
---|
LOWER_BOUND | |
UPPER_BOUND | |
UNCONSTRAINED | |
◆ LSResult
Enumerator |
---|
SUCCESS | |
INCONSISTENT_BOUNDS | |
UNDERDETERMINED | |
SINGULAR | |
UNCONVERGED | |
◆ ConstrainedLS()
ConstrainedLS::ConstrainedLS |
( |
| ) |
|
◆ solveBoundConstrained()
Solve the bound-constrained least squares Uses the Lawson-Hanson active set method as given by P.B. Stark and R.L. Parker, Bounded-Variable Least-Squares: An Algorithm and Applications, Computational Statistics, 10:129-141, 1995. Uses solveUnconstrained for sub-problems
Referenced by LSProblem< dim >::invertNormalEq().
◆ solveUnconstrained()
Solve the unconstrained least squares problem
◆ boundsConsistent()
bool ConstrainedLS::boundsConsistent |
( |
const Vector< Real > & |
a_lowBound, |
|
|
const Vector< Real > & |
a_hiBound |
|
) |
| const |
◆ getConstraints()
Get a vector of Bound indicating constraint activity.
◆ numberActiveConstraints()
int ConstrainedLS::numberActiveConstraints |
( |
| ) |
const |
◆ getResidual()
Real ConstrainedLS::getResidual |
( |
| ) |
const |
Get the LS residual Bails if a LS problem has not been solved yet
◆ qrSolution()
Solve the least squares problem. Uses successive Householder rotations
◆ allocArray()
void ConstrainedLS::allocArray |
( |
const int & |
rows, |
|
|
const int & |
cols, |
|
|
Real **& |
A |
|
) |
| |
|
private |
◆ freeArray()
void ConstrainedLS::freeArray |
( |
const int & |
rows, |
|
|
const int & |
cols, |
|
|
Real **& |
A |
|
) |
| |
|
private |
◆ m_boundState
◆ m_nbound
int ConstrainedLS::m_nbound |
|
protected |
◆ m_residual
Real ConstrainedLS::m_residual |
|
private |
The documentation for this class was generated from the following file: