Hpolytope-class: An R class to represent an H-polytope

Hpolytope-classR Documentation

An R class to represent an H-polytope

Description

An H-polytope is a convex polytope defined by a set of linear inequalities or equivalently a d-dimensional H-polytope with m facets is defined by a m\times d matrix A and a m-dimensional vector b, s.t.: Ax\leq b.

Details

A

An m\times d numerical matrix.

b

An m-dimensional vector b.

volume

The volume of the polytope if it is known, NaN otherwise by default.

type

A character with default value 'Hpolytope', to declare the representation of the polytope.

Examples

A = matrix(c(-1,0,0,-1,1,1), ncol=2, nrow=3, byrow=TRUE)
b = c(0,0,1)
P = Hpolytope(A = A, b = b)
 

volesti documentation built on Sept. 19, 2023, 5:08 p.m.