Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print constraint names with the model? #1767

Closed
mlubin opened this issue Jan 12, 2019 · 0 comments · Fixed by #2108
Closed

Print constraint names with the model? #1767

mlubin opened this issue Jan 12, 2019 · 0 comments · Fixed by #2108
Assignees
Labels
Category: Printing Related to printing

Comments

@mlubin
Copy link
Member

mlubin commented Jan 12, 2019

julia> model = Model();

julia> @variable(model, x);

julia> @constraint(model, con, x == 2)
con : x = 2.0

julia> print(model)
Feasibility
Subject to
 x = 2.0

This is a minor point, but I was surprised that the name of the constraint is printed when you print con but not when you print model.

@odow odow added the Category: Printing Related to printing label Jan 17, 2019
@blegat blegat self-assigned this Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Printing Related to printing
Development

Successfully merging a pull request may close this issue.

3 participants