Description Usage Arguments Value References Examples
View source: R/zonotope_approximation.R
For the evaluation of the PCA method the exact volume of the approximation body is computed and the volume of the input zonotope is computed by CoolingBodies algorithm. The ratio of fitness is R=vol(P) / vol(P_{red}), where P_{red} is the approximate polytope.
1 2 3 4 5  zonotope_approximation(
Z,
fit_ratio = FALSE,
settings = list(error = 0.1, walk_length = 1, win_len = 250, hpoly = FALSE)
)

Z 
A zonotope. 
fit_ratio 
Optional. A boolean parameter to request the computation of the ratio of fitness. 
settings 
Optional. A list that declares the values of the parameters of CB algorithm as follows:

A list that contains the approximation body in Hrepresentation and the ratio of fitness
A.K. Kopetzki and B. Schurmann and M. Althoff, “Methods for Order Reduction of Zonotopes,” IEEE Conference on Decision and Control, 2017.
1 2 3  # overapproximate a 2dimensional zonotope with 10 generators and compute the ratio of fitness
Z = gen_rand_zonotope(2, 8)
retList = zonotope_approximation(Z = Z)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.