Main /

BackwardsCompatibility

In general, MPT3 is NOT compatible with MPT2. However, MPT3 contains a thin compatibility layer, which maps methods of the polytope object of MPT2 onto corresponding methods of the Polyhedron object in MPT3.

In short, this layer allows most (if not all) custom algorithms to just work with MPT3. If you find that some methods misbehaves, or was not implemented in the compatibility layer, please let us know.

MPT2 functionEquivalent in MPT3
polytopePolyhedron
polytope/bounding_boxPolyhedron/outerApprox
polytope/chebyballPolyhedron/chebyCenter
polytope/dimensionPolyhedron.Dim
polytope/distancePolyhedron/distance
polytope/domainPolyhedron/invAffineMap
polytope/doublePolyhedron.H, Polyhedron.A, Polyhedron.b
polytope/eq (P==Q)Polyhedron/eq or P==Q
polytope/extremePolyhedron.V, Polyhedron.R
polytope/facetcirclePolyhedron/getFacet, Polyhedron/chebyCenter
polytope/ge (P>=Q)Polyhedron/ge or P>=Q
polytope/hullPolyhedron(V)
polytope/intersectPolyhedron/intersect or P & Q
polytope/isboundedPolyhedron/isBounded
polytope/isconvexPolyUnion/isConvex
polytope/isfulldimPolyhedron/isFullDim, Polyhedron/isEmptySet
polytope/isinsidePolyhedron/contains
polytope/isminrepPolyhedron/irredundantHRep
polytope/le (P<=Q)Polyhedron/le or (P<=Q)
polytope/mergePolyUnion/merge
polytope/minus (P-Q)Polyhedron/minus
polytope/mldivide (P\Q)Polyhedron/mldivide
polytope/mtimes (P*Q)Polyhedron/mtimes, Polyhedron/affineMap
polytope/nconstrsize([Polyhedron.H; Polyhedron.He], 1)
polytope/ne (P~=Q)Polyhedron/ne
polytope/normalizePolyhedron/normalize
polytope/plotPolyhedron/plot
polytope/plus (P+Q)Polyhedron/plus or P+Q
polytope/projectionPolyhedron/projection
polytope/rangePolyhedron/affineMap
polytope/reducePolyhedron/minHRep
polytope/regiondiffPolyhedron/mldivide (P\Q)
polytope/slicePolyhedron/slice
polytope/triangulatePolyhedron/triangulate
polytope/unionPolyUnion/isConvex
polytope/volumePolyhedron/volume
mpt_removeOverlapsPolyUnion/min
mpt_isPWAbiggerPolyUnion/compare