Main /

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 function | Equivalent in MPT3 |
---|---|

`polytope` | `Polyhedron` |

`polytope/bounding_box` | `Polyhedron/outerApprox` |

`polytope/chebyball` | `Polyhedron/chebyCenter` |

`polytope/dimension` | `Polyhedron.Dim` |

`polytope/distance` | `Polyhedron/distance` |

`polytope/domain` | `Polyhedron/invAffineMap` |

`polytope/double` | `Polyhedron.H` , `Polyhedron.A` , `Polyhedron.b` |

`polytope/eq` (`P==Q` ) | `Polyhedron/eq` or `P==Q` |

`polytope/extreme` | `Polyhedron.V` , `Polyhedron.R` |

`polytope/facetcircle` | `Polyhedron/getFacet` , `Polyhedron/chebyCenter` |

`polytope/ge` (`P>=Q` ) | `Polyhedron/ge` or `P>=Q` |

`polytope/hull` | `Polyhedron(V)` |

`polytope/intersect` | `Polyhedron/intersect` or `P & Q` |

`polytope/isbounded` | `Polyhedron/isBounded` |

`polytope/isconvex` | `PolyUnion/isConvex` |

`polytope/isfulldim` | `Polyhedron/isFullDim` , `Polyhedron/isEmptySet` |

`polytope/isinside` | `Polyhedron/contains` |

`polytope/isminrep` | `Polyhedron/irredundantHRep` |

`polytope/le` (`P<=Q` ) | `Polyhedron/le` or (`P<=Q` ) |

`polytope/merge` | `PolyUnion/merge` |

`polytope/minus` (`P-Q` ) | `Polyhedron/minus` |

`polytope/mldivide` (`P\Q` ) | `Polyhedron/mldivide` |

`polytope/mtimes` (`P*Q` ) | `Polyhedron/mtimes` , `Polyhedron/affineMap` |

`polytope/nconstr` | `size([Polyhedron.H; Polyhedron.He], 1)` |

`polytope/ne` (`P~=Q` ) | `Polyhedron/ne` |

`polytope/normalize` | `Polyhedron/normalize` |

`polytope/plot` | `Polyhedron/plot` |

`polytope/plus` (`P+Q` ) | `Polyhedron/plus` or `P+Q` |

`polytope/projection` | `Polyhedron/projection` |

`polytope/range` | `Polyhedron/affineMap` |

`polytope/reduce` | `Polyhedron/minHRep` |

`polytope/regiondiff` | `Polyhedron/mldivide` (`P\Q` ) |

`polytope/slice` | `Polyhedron/slice` |

`polytope/triangulate` | `Polyhedron/triangulate` |

`polytope/union` | `PolyUnion/isConvex` |

`polytope/volume` | `Polyhedron/volume` |

`mpt_removeOverlaps` | `PolyUnion/min` |

`mpt_isPWAbigger` | `PolyUnion/compare` |