property: Get properties of optimization problem

Description Usage Arguments Examples

Description

Get properties of solved optimization problem, like the status of problem (optimal, infeasible and etc.), or the optimal value of the solved optimization problem.

Usage

1
2
3
status(p)

optval(p)

Arguments

p

optimization problem.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
    convex_setup()
    x <- Variable(2)
    b <- J(c(1:2))
    p <- minimize(sum((x - b) ^ 2))
    cvx_optim(p)
    status(p)
    optval(p)

## End(Not run)

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