alpaqa 1.0.0a13
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Functions
alpaqa::anonymous_namespace{qpalm-adapter.cpp} Namespace Reference

Functions

bool is_bound (const Box< config_t > &C, index_t i)
 
void add_bound_constr_to_constr_matrix (ladel_sparse_matrix &A, const Box< config_t > &C)
 Update the constraint matrix A, such that for each constraint C(i) with finite bounds, a row is inserted into A with a one in the i-th column.
 
void combine_bound_constr (Box< config_t > &b, const Box< config_t > &C, const Box< config_t > &D, crvec g)
 For each constraint C(i) with finite bounds, insert these bounds into b(i), followed by all bounds D, shifted by g.
 
int convert_symmetry (sparsity::Symmetry symmetry)
 

Function Documentation

◆ is_bound()

bool is_bound ( const Box< config_t > &  C,
index_t  i 
)

Definition at line 18 of file qpalm-adapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_bound_constr_to_constr_matrix()

void add_bound_constr_to_constr_matrix ( ladel_sparse_matrix A,
const Box< config_t > &  C 
)

Update the constraint matrix A, such that for each constraint C(i) with finite bounds, a row is inserted into A with a one in the i-th column.

The newly added rows are added above the original rows of A. For example, if all constraints have finite bounds, the resulting matrix is \( \begin{pmatrix} I \\\hline A \end{pmatrix} \).

Precondition
Assumes that the user preallocated enough space for inserting these nonzero elements into A, and that A is compressed.

Definition at line 31 of file qpalm-adapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ combine_bound_constr()

void combine_bound_constr ( Box< config_t > &  b,
const Box< config_t > &  C,
const Box< config_t > &  D,
crvec  g 
)

For each constraint C(i) with finite bounds, insert these bounds into b(i), followed by all bounds D, shifted by g.

Definition at line 97 of file qpalm-adapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ convert_symmetry()

int convert_symmetry ( sparsity::Symmetry  symmetry)

Definition at line 113 of file qpalm-adapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: