Skip to content

How to check the dimension names before eliminating some dimensions of a polyhedron? #337

@WuSiren

Description

@WuSiren
using Polyhedra
using JuMP
using CDDLib

poly = Model()
@variable(poly, -1 <= x <= 1)
@variable(poly, -2 <= y <= 2)
P = polyhedron(poly, CDDLib.Library(:exact))
P_y = eliminate(P, [1])

How can I make sure the index [1] is corresponding to dimension x? Do they always follow the order that they are created in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions