# NOT RUN {
# two dimensional ellipses
e1 <- list("c" = c(1,2), "P" = matrix(c(2,0,0,1), ncol = 2), "r" = 3)
e2 <- list("c" = c(0,0), "S" = matrix(c(1, 0.2, 0.2, 2), ncol = 2), "r" = 1)
# find point in intersection
feasible_point(list(e1, e2))
# make new ellipse
e3 <- list("c" = c(2,2), "P" = matrix(c(1,0,0,1), ncol = 2), "r" = 0.5)
# now there is no overlap
feasible_point(list(e1, e2, e3))
# }
Run the code above in your browser using DataLab