Description Usage Arguments Value Examples
View source: R/gen_rand_hpoly.R
This function generates a ddimensional polytope in Hrepresentation with m facets. We pick m random hyperplanes tangent on the ddimensional unit hypersphere as facets.
1  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 Hpolytope.
1 2  # generate a 10dimensional 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.