Learn R Programming

volesti (version 1.1.2-9)

gen_prod_simplex: Generator function for product of simplices

Description

This function generates a \(2d\)-dimensional polytope that is defined as the product of two \(d\)-dimensional unit simplices in H-representation.

Usage

gen_prod_simplex(dimension)

Value

A polytope class representing the product of the two \(d\)-dimensional unit simplices in H-representation.

Arguments

dimension

The dimension of the simplices.

Examples

Run this code
# generate a product of two 5-dimensional simplices.
P = gen_prod_simplex(5)

Run the code above in your browser using DataLab