Page 1 of 1

Changing variable names in printed constraints

Posted: 26 Jun 2025, 17:34
by brunompac
Hi!

Beginner polymake user.

I would like to specify the names of each variable when printing constraints (with `print_constraint`). I noticed we can change the labels of the inequalities and equalities, but I couldn't find anywhere a way to specify or modify the variable names and indices. Am I missing something?

Re: Changing variable names in printed constraints

Posted: 27 Jun 2025, 18:58
by gawrilow
If you are using `print_contraints` with a single coordinate matrix, you can pass an option `coord_labels => ['X', 'Y', 'Z', ...]` . If you are using `print_constraints` with a whole Cone or Polytope object, you can store the labels as a property beforehand: `$p->COORDINATE_LABELS=['X', 'Y', 'Z', ... ];`