X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/blobdiff_plain/6d08d8c0a84c1ffa31f5eb16e33b340727f46175..2b13a146860ac116ce0388d8f7551044c09c55f7:/linpy/polyhedra.py diff --git a/linpy/polyhedra.py b/linpy/polyhedra.py index f802151..c05432a 100644 --- a/linpy/polyhedra.py +++ b/linpy/polyhedra.py @@ -317,14 +317,6 @@ class Polyhedron(Domain): else: return 'And({})'.format(', '.join(strings)) - def _repr_latex_(self): - strings = [] - for equality in self.equalities: - strings.append('{} = 0'.format(equality._repr_latex_().strip('$'))) - for inequality in self.inequalities: - strings.append('{} \\ge 0'.format(inequality._repr_latex_().strip('$'))) - return '$${}$$'.format(' \\wedge '.join(strings)) - @classmethod def fromsympy(cls, expr): domain = Domain.fromsympy(expr) @@ -363,9 +355,6 @@ class EmptyType(Polyhedron): def __repr__(self): return 'Empty' - def _repr_latex_(self): - return '$$\\emptyset$$' - Empty = EmptyType() @@ -386,9 +375,6 @@ class UniverseType(Polyhedron): def __repr__(self): return 'Universe' - def _repr_latex_(self): - return '$$\\Omega$$' - Universe = UniverseType()