Value returns the values of expressions at optimizer (minimizer, maximizer and etc.).

value(...)

Arguments

...

expressions needed to evaluate.

Examples

# NOT RUN {
    convex_setup()
    x <- Variable(4)
    b <- J(c(1:4))
    p <- minimize(sum((x - b) ^ 2))
    cvx_optim(p)
    value(x[1] + x[2], x[3] + x[4])
# }