| Constant | R Documentation |
Wraps a numeric value as a CVXR constant for use in optimization expressions. Constants are typically created implicitly when combining numeric values with CVXR expressions via arithmetic operators.
Constant(value, name = NULL)
value |
A numeric scalar, vector, matrix, or sparse matrix. |
name |
Optional character string name. |
A Constant object (inherits from Leaf and
Expression).
c1 <- Constant(5)
c2 <- Constant(matrix(1:6, 2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.