dot-solver_detect_qp_global: Detect Whether Inequality Constraints Need the Global Bridge

.solver_detect_qp_globalR Documentation

Detect Whether Inequality Constraints Need the Global Bridge

Description

Inspects the columns of qp_Amat to determine whether every inequality constraint is confined to a single partition block (block-separable) or whether any constraint couples coefficients across partitions.

Usage

.solver_detect_qp_global(qp_Amat, p_expansions, K)

Arguments

qp_Amat

Inequality constraint matrix (P \times n_{\mathrm{ineq}}), or NULL.

p_expansions

Integer; number of basis terms per partition.

K

Integer; number of interior knots.

Details

Returns FALSE when all columns have nonzeros in at most one block, so the active-set loop can keep partition-wise equality re-solves. Returns TRUE when any column spans multiple blocks, so the active-set loop must use the global equality bridge instead.

Value

Logical scalar.


lgspline documentation built on Aug. 5, 2026, 1:10 a.m.