powered by
Given \(Ax \le b\), which defines a convex polytope, this function picks n random starting "center" points using linear programming.
start_point(A, b, n = 1, average = 10)
is the lhs of \(Ax \le b\)
is the rhs of \(Ax \le b\)
is the number of points we want to return
is the number of boundary points we want to take the average of
a matrix, with each column as a point
# NOT RUN { A <- rbind(c(-1, 0), c(0, -1), c(1, 1)) b <- c(0, 0, 1) start_point(A = A, b = b, n = 1, average = 10) # }
Run the code above in your browser using DataLab