Learn R Programming

volesti (version 1.1.2-9)

Hpolytope-class: 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\).

Arguments

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

Run this code
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)
 

Run the code above in your browser using DataLab