Learn R Programming

volesti (version 1.0.3)

GenZonotope: Generator function for zonotopes

Description

This function can be used to generate a random \(d\)-dimensional zonotope defined by the Minkowski sum of \(m\) \(d\)-dimensional segments. We consider \(m\) random directions in \(R^d\) and for each direction we pick a random length in \([(,\sqrt{d}]\) in order to define \(m\) segments.

Usage

GenZonotope(dimension, NumGen)

Arguments

dimension

The dimension of the zonotope.

NumGen

The number of segments that generate the zonotope.

Value

A polytope class representing a zonotope.

Examples

Run this code
# NOT RUN {
# generate a 10-dimensional zonotope defined by the Minkowski sum of 20 segments
P = GenZonotope(10, 20)
# }

Run the code above in your browser using DataLab