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

Description Details Examples

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≤q 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

1
2
3
4
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 July 14, 2021, 5:11 p.m.