
Last chance! 50% off unlimited learning
Sale ends in
Value
returns the values of expressions at optimizer
(minimizer, maximizer and etc.).
value(...)
expressions needed to evaluate.
# 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])
# }
Run the code above in your browser using DataLab