# \[Convex.jl\] Suppress warnings when printing problem tree

**URL:** <https://discourse.julialang.org/t/convex-jl-suppress-warnings-when-printing-problem-tree/34029>\
**Category:** Optimization (Mathematical)\
**Created:** [January 31, 2020, 2:59pm UTC](https://discourse.julialang.org/t/convex-jl-suppress-warnings-when-printing-problem-tree/34029 "2020-01-31T14:59:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![4aHxKzD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/4ahxkzd/32/10833_2.png) [@4aHxKzD](https://discourse.julialang.org/u/4aHxKzD)\
**Post date:** [January 31, 2020, 2:59pm UTC](https://discourse.julialang.org/t/convex-jl-suppress-warnings-when-printing-problem-tree/34029/1 "2020-01-31T14:59:48Z")

</div>

Is there a way to suppress warnings such as

```julia
 Warning: Expression not DCP compliant.

```

when printing the problem tree?

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [January 31, 2020, 3:10pm UTC](https://discourse.julialang.org/t/convex-jl-suppress-warnings-when-printing-problem-tree/34029/2 "2020-01-31T15:10:28Z")

</div>

These warnings are unfortunately hardcoded whenever the `vexity` is checked which is used when printing ([https://github.com/JuliaOpt/Convex.jl/blob/5d71eb4c6dabbfcc8cbcc2f90b859f9d1535ef1a/src/problems.jl#L44](https://github.com/JuliaOpt/Convex.jl/blob/5d71eb4c6dabbfcc8cbcc2f90b859f9d1535ef1a/src/problems.jl#L44)). Please file an issue on the Convex.jl repository (or make a PR 🙂) so we don’t lose track of this issue.

---

<div class="post-metadata">

**Author:** ![4aHxKzD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/4ahxkzd/32/10833_2.png) [@4aHxKzD](https://discourse.julialang.org/u/4aHxKzD)\
**Post date:** [January 31, 2020, 3:22pm UTC](https://discourse.julialang.org/t/convex-jl-suppress-warnings-when-printing-problem-tree/34029/3 "2020-01-31T15:22:48Z")

</div>

Sure, thanks!
