Solves KKT system using Cholesky decomposition.
More...
#include <as_chol_solve.h>
|
| chol_solve (const int) |
| Constructor. More...
|
|
| ~chol_solve () |
| Destructor. More...
|
|
void | solve (const AS::problem_parameters &, const double *, double *) |
| Determines feasible descent direction. More...
|
|
void | up_resolve (const AS::problem_parameters &, const vector< AS::constraint > &, const double *, double *) |
| A wrapper around private functions, which update Cholesky factor and resolve the system. More...
|
|
double * | get_lambda (const AS::problem_parameters &) |
|
void | down_resolve (const AS::problem_parameters &, const vector< AS::constraint > &, const int, const double *, double *) |
| A wrapper around private functions, which downdate Cholesky factor and resolve the system. More...
|
|
|
void | update (const AS::problem_parameters &, const AS::constraint &, const int) |
| Adds a row corresponding to some inequality constraint to L, see 'pCholUpAlg'. More...
|
|
void | update_z (const AS::problem_parameters &, const AS::constraint &, const int, const double *) |
| Adjust vector 'z' after update. More...
|
|
void | downdate (const AS::problem_parameters &, const int, const int, const double *) |
| Delete a line from icL, see page 'pCholDown'. More...
|
|
void | resolve (const AS::problem_parameters &, const vector< AS::constraint > &, const double *, double *) |
| Determines feasible descent direction with respect to added inequality constraints. More...
|
|
void | form_sa_row (const AS::problem_parameters &, const AS::constraint &, const int, double *) |
| Forms row vector 's_a' (pCholUp). More...
|
|
◆ chol_solve()
AS::chol_solve::chol_solve |
( |
const int |
N | ) |
|
Constructor.
- Parameters
-
[in] | N | size of the preview window. |
Definition at line 32 of file as_chol_solve.cpp.
◆ ~chol_solve()
AS::chol_solve::~chol_solve |
( |
| ) |
|
◆ down_resolve()
A wrapper around private functions, which downdate Cholesky factor and resolve the system.
- Parameters
-
[in] | ppar | parameters. |
[in] | active_set | a vector of active constraints. |
[in] | ind_exclude | index of excluded constraint. |
[in] | x | initial guess. |
[out] | dx | feasible descent direction, must be allocated. |
- Note
- Downdate of vector pz 'z' is described on the page 'pRemoveICz'.
Definition at line 391 of file as_chol_solve.cpp.
◆ downdate()
void AS::chol_solve::downdate |
( |
const AS::problem_parameters & |
ppar, |
|
|
const int |
nW, |
|
|
const int |
ind_exclude, |
|
|
const double * |
x |
|
) |
| |
|
private |
Delete a line from icL, see page 'pCholDown'.
- Parameters
-
[in] | ppar | parameters. |
[in] | nW | number of added constrains. |
[in] | ind_exclude | index of excluded constraint. |
[in] | x | initial guess. |
Definition at line 466 of file as_chol_solve.cpp.
◆ form_sa_row()
Forms row vector 's_a' (pCholUp).
- Parameters
-
[in] | ppar | parameters |
[in] | c | activated constraint |
[in] | ic_len | the length of new row in L |
[out] | row | 's_a' row |
Definition at line 76 of file as_chol_solve.cpp.
◆ get_lambda()
- Returns
- a pointer to the memory where current lambdas are stored.
- Parameters
-
Definition at line 450 of file as_chol_solve.cpp.
◆ resolve()
Determines feasible descent direction with respect to added inequality constraints.
- Parameters
-
[in] | ppar | parameters. |
[in] | active_set | a vector of active constraints. |
[in] | x | initial guess. |
[out] | dx | feasible descent direction, must be allocated. |
Definition at line 322 of file as_chol_solve.cpp.
◆ solve()
Determines feasible descent direction.
- Parameters
-
[in] | ppar | parameters. |
[in] | x | initial guess. |
[out] | dx | feasible descent direction, must be allocated. |
Definition at line 115 of file as_chol_solve.cpp.
◆ up_resolve()
A wrapper around private functions, which update Cholesky factor and resolve the system.
- Parameters
-
[in] | ppar | parameters. |
[in] | active_set | a vector of active constraints. |
[in] | x | initial guess. |
[out] | dx | feasible descent direction, must be allocated. |
Definition at line 176 of file as_chol_solve.cpp.
◆ update()
Adds a row corresponding to some inequality constraint to L, see 'pCholUpAlg'.
- Parameters
-
[in] | ppar | parameters. |
[in] | c | activated constraint |
[in] | ic_num | index of added constraint in W |
Definition at line 199 of file as_chol_solve.cpp.
◆ update_z()
Adjust vector 'z' after update.
- Parameters
-
[in] | ppar | parameters. |
[in] | c | activated constraint |
[in] | ic_num | number of added constraint in the active set |
[in] | x | initial guess. |
Definition at line 287 of file as_chol_solve.cpp.
◆ ecL
◆ icL
double** AS::chol_solve::icL |
|
private |
◆ icL_mem
double* AS::chol_solve::icL_mem |
|
private |
◆ nu
double* AS::chol_solve::nu |
|
private |
double* AS::chol_solve::z |
|
private |
The documentation for this class was generated from the following files: