gen_rand_hpoly {volesti} | R Documentation |
Generator function for random H-polytopes
Description
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.
Usage
gen_rand_hpoly(dimension, nfacets, generator = list(constants = "sphere"))
Arguments
dimension |
The dimension of the convex polytope. |
nfacets |
The number of the facets. |
generator |
A list that could contain two elements.
|
Value
A polytope class representing a H-polytope.
Examples
# generate a 10-dimensional polytope with 50 facets
P = gen_rand_hpoly(10, 50)
[Package volesti version 1.1.2-7 Index]