View source: R/gen_rand_hpoly.R
gen_rand_hpoly | R Documentation |
This function generates a d
-dimensional polytope in H-representation with m
facets. We pick m
random hyperplanes tangent on the d
-dimensional unit hypersphere as facets.
gen_rand_hpoly(dimension, nfacets, generator = list(constants = "sphere"))
dimension |
The dimension of the convex polytope. |
nfacets |
The number of the facets. |
generator |
A list that could contain two elements.
|
A polytope class representing a H-polytope.
# generate a 10-dimensional polytope with 50 facets
P = gen_rand_hpoly(10, 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.