gen_simplex {volesti} | R Documentation |
Generator function for simplices
Description
This function generates the d
-dimensional unit simplex in H- or V-representation.
Usage
gen_simplex(dimension, representation = "H")
Arguments
dimension |
The dimension of the unit simplex. |
representation |
A string to declare the representation. It has to be |
Value
A polytope class representing the d
-dimensional unit simplex in H- or V-representation.
Examples
# generate a 10-dimensional simplex in H-representation
PolyList = gen_simplex(10, 'H')
# generate a 20-dimensional simplex in V-representation
P = gen_simplex(20, 'V')
[Package volesti version 1.1.2-7 Index]