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

status(p)

optval(p)

Arguments

p

optimization problem.

Examples

# 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)
# }