gen_rand_vpoly {volesti} | R Documentation |
Generator function for random V-polytopes
Description
This function generates a -dimensional polytope in V-representation with
vertices. We pick
random points from the boundary of the
-dimensional unit hypersphere as vertices.
Usage
gen_rand_vpoly(dimension, nvertices, generator = list(body = "sphere"))
Arguments
dimension |
The dimension of the convex polytope. |
nvertices |
The number of the vertices. |
generator |
A list that could contain two elements.
|
Value
A polytope class representing a V-polytope.
Examples
# generate a 10-dimensional polytope defined as the convex hull of 25 random vertices
P = gen_rand_vpoly(10, 25)
[Package volesti version 1.1.2-7 Index]