demo/randomLp.R

library(scs)
m <- 100
n <- 100

A <- matrix(rnorm(m*n),m,n)
b <- rnorm(m)
objective = rnorm(n)
cone = list(f = m)
params = list(eps = 1e-3, max_iters = 5000)
sol <- scs(A, b, objective, cone, params)
sol

Try the scs package in your browser

Any scripts or data that you put into this service are public.

scs documentation built on May 29, 2017, 5:38 p.m.