cvx_optim
solves optimization problem using Convex.jl.
cvx_optim(p, solver = c("SCS", "ECOS"), ...)
p | optimization problem to be solved. |
---|---|
solver | convex problem solver to be used. Currently |
... | the optional solver options, like the maximal iteration times. For the solver options, you can see http://www.cvxpy.org/tutorial/advanced/index.html#setting-solver-options for reference. |
status of optimized problem.
# NOT RUN { convex_setup() x <- Variable() b <- 1 p <- minimize(sum((x - b) ^ 2)) cvx_optim(p) # }