# Artificial population and the bounds that to be imposed.
N <- c(454, 10, 116, 2500, 2240, 260, 39, 3000, 2500, 400)
S <- c(0.9, 5000, 32, 0.1, 3, 5, 300, 13, 20, 7)
a <- N * S
m <- c(322, 3, 57, 207, 715, 121, 9, 1246, 1095, 294)
M <- N
# An example of a regular allocation.
n <- 6000
opt_regular <- rnabox(n, a, m, M)
# An example of a vertex allocation.
n <- 4076
opt_vertex <- rnabox(n, a, m, M)
Run the code above in your browser using DataLab