powered by
This function can be used to generate the \(d\)-dimensional unit simplex in H- or V-representation.
GenSimplex(dimension, repr)
The dimension of the unit simplex.
A string to declare the representation. It has to be 'H' for H-representation or 'V' for V-representation.
'H'
'V'
A polytope class representing the \(d\)-dimensional unit simplex in H- or V-representation.
# NOT RUN { # generate a 10-dimensional simplex in H-representation PolyList = GenSimplex(10, 'H') # generate a 20-dimensional simplex in V-representation P = GenSimplex(20, 'V') # }
Run the code above in your browser using DataLab