Learn R Programming

volesti (version 1.0.3)

GenRandVpoly: 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

Run this code
# NOT RUN {
# generate a 10-dimensional polytope defined as the convex hull of 25 random vertices
P = GenRandVpoly(10, 25)
# }

Run the code above in your browser using DataLab