26 for (i = 0; i < n; i++) {
33 size_t n = work->
data->
n;
34 size_t m = work->
data->
m;
101 size_t n = work->
data->
n;
102 size_t m = work->
data->
m;
#define MIN_SCALING
Minimum scaling value/**< minimum scaling value */.
ladel_int c_int
type for integer numbers
ladel_double c_float
type for floating point numbers
#define c_max(a, b)
maximum of two values
Linear algebra with vectors.
void vec_set_scalar(c_float *a, c_float sc, size_t n)
Fill float vector with a scalar value.
void vec_self_mult_scalar(c_float *a, c_float sc, size_t n)
Mulitply vector with a constant scale factor.
void vec_ew_prod(const c_float *a, const c_float *b, c_float *c, size_t n)
Elementwise product, .
void prea_vec_copy(const c_float *a, c_float *b, size_t n)
Copy vector a into preallocated vector b.
c_float vec_norm_inf(const c_float *a, size_t n)
Infinity norm of a vector, .
void vec_ew_recipr(const c_float *a, c_float *b, size_t n)
Elementwise reciprocal .
void vec_ew_sqrt(const c_float *a, c_float *b, size_t n)
Elementwise square root, .
void scale_data(QPALMWorkspace *work)
Scale problem matrices.
void limit_scaling(c_float *D, size_t n)
void unscale_data(QPALMWorkspace *work)
Unscale the problem data.
Problem data scaling during setup.
#define mat_inf_norm_rows
#define mat_inf_norm_cols
size_t m
number of constraints m
c_float * bmin
dense array for lower bounds (size m)
size_t n
number of variables n
c_float * q
dense array for linear part of cost function (size n)
solver_sparse * A
sparse linear constraints matrix A (size m x n)
c_float * bmax
dense array for upper bounds (size m)
solver_sparse * Q
sparse quadratic part of the cost Q (size n x n)
c_float * Dinv
primal variable rescaling
c_float c
objective scaling
c_float * E
dual variable scaling
c_float * Einv
dual variable rescaling
c_float cinv
objective rescaling
c_float * D
primal variable scaling
c_int scaling
scaling iterations, if 0 then scaling is disabled
solver_dense * E_temp
temporary constraints scaling vectors
solver_dense * D_temp
temporary primal variable scaling vectors
c_float * x
primal iterate
QPALMScaling * scaling
scaling vectors
c_float * D_temp
temporary primal variable scaling vectors
QPALMSettings * settings
problem settings
c_float * E_temp
temporary constraints scaling vectors
QPALMSolver * solver
linsys variables
QPALMData * data
problem data to work on (possibly scaled)