gen_rand_zonotope {volesti} | R Documentation |
Generator function for zonotopes
Description
This function generates a random -dimensional zonotope defined by the Minkowski sum of
-dimensional segments.
The function considers
random directions in
. There are three strategies to pick the length of each segment: a) it is uniformly sampled from
, b) it is random from
truncated to
, c) it is random from
truncated to
.
Usage
gen_rand_zonotope(
dimension,
nsegments,
generator = list(distribution = "uniform")
)
Arguments
dimension |
The dimension of the zonotope. |
nsegments |
The number of segments that generate the zonotope. |
generator |
A list that could contain two elements.
|
Value
A polytope class representing a zonotope.
Examples
# generate a 10-dimensional zonotope defined by the Minkowski sum of 20 segments
P = gen_rand_zonotope(10, 20)
[Package volesti version 1.1.2-7 Index]