-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Truncate printing of large expressions #3575
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3575 +/- ##
=======================================
Coverage 98.38% 98.38%
=======================================
Files 37 38 +1
Lines 5629 5635 +6
=======================================
+ Hits 5538 5544 +6
Misses 91 91 ☔ View full report in Codecov by Sentry. |
It would be nice to also truncate terms in flattened nonlinear sums. Should be straightforward to add for expressions of the form: |
Truncated the nonlinear stuff. My main hesitation is the use of |
This seems reasonable from an extension point of view, so long as |
@blegat thoughts? |
I think it's yet another proof that we should unify printing of JuMP and MOI. In MOI we have |
Should or shouldn't? |
Indeed, I meant should |
Should we make it a private constant for now then? Merge this PR, and open an issue to unify the printing? |
Yes, if it's private then I don't have any objection to merge this |
Made it a private constant |
Closes #3574
I don't know if this is the right approach, but we should do something.