GenSimplex {volesti}R Documentation

Generator function for simplices

Description

This function can be used to generate the d-dimensional unit simplex in H- or V-representation.

Usage

GenSimplex(dimension, repr)

Arguments

dimension

The dimension of the unit simplex.

repr

A string to declare the representation. It has to be 'H' for H-representation or 'V' for V-representation.

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 = GenSimplex(10, 'H')

# generate a 20-dimensional simplex in V-representation
P = GenSimplex(20, 'V')

[Package volesti version 1.0.3 Index]