GenRandVpoly {volesti}R Documentation

Generator function for random V-polytopes

Description

This function can be used to generate a d-dimensional polytope in V-representation with m vertices. We pick m random points from the boundary of the d-dimensional unit hypersphere as vertices.

Usage

GenRandVpoly(dimension, m)

Arguments

dimension

The dimension of the convex polytope.

m

The number of the vertices.

Value

A polytope class representing a V-polytope.

Examples

# generate a 10-dimensional polytope defined as the convex hull of 25 random vertices
P = GenRandVpoly(10, 25)

[Package volesti version 1.0.3 Index]