| canonize | R Documentation |
A = [C | S; M | Q] for CLSP.This method assembles the constraint matrix A from user-supplied or internally generated components — C, S, M, and Q — and assigns the corresponding right-hand side vector b. It is a required pre-step before solving a Convex Least Squares Programming (CLSP) problem.
canonize(
object,
problem = "",
C = NULL,
S = NULL,
M = NULL,
Q = NULL,
b = NULL,
m = NULL,
p = NULL,
i = 1L,
j = 1L,
zero_diagonal = FALSE
)
object |
An object of class |
problem |
Character, optional. Structural template for matrix construction. One of:
|
C, S, M |
Numeric matrix or |
Q |
Numeric matrix or |
b |
Numeric vector or |
m, p |
Integer or |
i, j |
Integer, default = |
zero_diagonal |
Logical, default = |
Depending on the specified problem type, it can generate allocation, tabular matrix, or modular constraints and enforce optional diagonal exclusions. All missing blocks are padded to ensure conformability.
An updated object of class "clsp".
ANumeric matrix. Canonical design matrix constructed from (C, S, M, Q).
C_idxInteger vector of length 2 indicating the size of the C block.
bNumeric vector. Conformable right-hand side vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.