Learn R Programming

volesti (version 1.0.0)

GenRandHpoly: Generator function for random H-polytopes

Description

This function can be used to generate 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

GenRandHpoly(dimension, m)

Arguments

dimension

The dimension of the convex polytope.

m

The number of the facets.

Value

A polytope class representing a H-polytope.

Examples

Run this code
# NOT RUN {
# generate a 10-dimensional polytope with 50 facets
P = GenRandVpoly(10, 50)
# }

Run the code above in your browser using DataLab