dot-solver_check_primal_feasibility: Check Primal Feasibility of Inactive Inequality Constraints

.solver_check_primal_feasibilityR Documentation

Check Primal Feasibility of Inactive Inequality Constraints

Description

Computes the slack \mathbf{C}^{\top}\beta - \mathbf{c} and reports which inactive inequalities are violated.

Usage

.solver_check_primal_feasibility(
  beta_full,
  qp_Amat,
  qp_bvec,
  active_ineq = integer(0),
  tol = sqrt(.Machine$double.eps)
)

Arguments

beta_full

Full coefficient column vector.

qp_Amat

Inequality constraint matrix.

qp_bvec

Inequality right-hand side.

active_ineq

Integer vector of active inequality indices, using the local indexing of qp_Amat.

tol

Numeric tolerance.

Value

List with slack, violated, and feasible.


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