powered by
cvx_optim solves optimization problem using Convex.jl.
cvx_optim
cvx_optim(p, solver = c("SCS", "ECOS"), ...)
optimization problem to be solved.
convex problem solver to be used. Currently convexjlr supports SCS and ECOS, with SCS solver as the default.
convexjlr
SCS
ECOS
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) # }
Run the code above in your browser using DataLab