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

Printing NLexpressions #2287

Closed
ccoffrin opened this issue Jul 17, 2020 · 1 comment
Closed

Printing NLexpressions #2287

ccoffrin opened this issue Jul 17, 2020 · 1 comment

Comments

@ccoffrin
Copy link
Contributor

Printing model constraints with NLexpressions looks like,

subexpression[1] - 3.0 ≤ 0

In the case of printing the full model it would be convenient to see the NLexpressions as well.

MWE,

using JuMP

m = Model()

@variable(m, x)
ex = @NLexpression(m, x^3)
@NLconstraint(m, ex <= 3)

println(m)

The output as of JuMP v0.21.3 looks like,

Feasibility
Subject to
 subexpression[1] - 3.0 ≤ 0
@mlubin
Copy link
Member

mlubin commented Jul 17, 2020

This is a duplicate of #1983.

@mlubin mlubin closed this as completed Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants