Learn R Programming

convexjlr (version 0.8.1)

variable_creating: Create variable for optimization problem

Description

Create variable (vector, matrix, semidefinite matrix and etc.) for optimization problem.

Usage

Variable(size = 1, sign = c("None", "Positive", "Negative"))

Semidefinite(size = 1, sign = c("None", "Positive", "Negative"))

Arguments

size

variable size.

sign

whether variable is element-wise positive, element-wise negative or neither.

Examples

Run this code
# NOT RUN {
    convex_setup()
    x <- Variable(4)
    X <- Variable(c(4, 4), sign = "Positive")
    S <- Semidefinite(4)
# }

Run the code above in your browser using DataLab