variable_creating: Create variable for optimization problem

Description Usage Arguments Examples

Description

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

Usage

1
2
3
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

1
2
3
4
5
6
7
## Not run: 
    convex_setup()
    x <- Variable(4)
    X <- Variable(c(4, 4), sign = "Positive")
    S <- Semidefinite(4)

## End(Not run)

convexjlr documentation built on May 2, 2019, 5:28 a.m.