# Cplex turn logging off

**URL:** <https://discourse.julialang.org/t/cplex-turn-logging-off/30967>\
**Category:** New to Julia\
**Tags:** optimization\
**Created:** [November 11, 2019, 6:36pm UTC](https://discourse.julialang.org/t/cplex-turn-logging-off/30967 "2019-11-11T18:36:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marinarrd](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@marinarrd](https://discourse.julialang.org/u/marinarrd)\
**Post date:** [November 11, 2019, 6:36pm UTC](https://discourse.julialang.org/t/cplex-turn-logging-off/30967/1 "2019-11-11T18:36:14Z")

</div>

Hello, I am using CPLEX solver and I would like to silence the output. I know with Gurobi you set OutputFlag=0 as in the following. Does anyone know?

```julia
m=Model(with_optimizer(Gurobi.Optimizer,OutputFlag=0))

```

---

<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:** [November 11, 2019, 6:46pm UTC](https://discourse.julialang.org/t/cplex-turn-logging-off/30967/2 "2019-11-11T18:46:02Z")

</div>

I think it’s `CPX_PARAM_SCRIND=false` for CPLEX instead of `OutputFlag=0`. I don’t remember how I found that, but it’s what I have in some code from awhile ago.

---

<div class="post-metadata">

**Author:** ![marinarrd](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@marinarrd](https://discourse.julialang.org/u/marinarrd)\
**Post date:** [November 11, 2019, 6:59pm UTC](https://discourse.julialang.org/t/cplex-turn-logging-off/30967/3 "2019-11-11T18:59:24Z")

</div>

> [@ericphanson](#):
>
> CPX\_PARAM\_SCRIND=false

thanks 🙂

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [November 11, 2019, 7:40pm UTC](https://discourse.julialang.org/t/cplex-turn-logging-off/30967/4 "2019-11-11T19:40:48Z")

</div>

Note that I recently re-wrote the CPLEX wrapper for JuMP. We’re just waiting on a tag. ( **It won’t work right now.** )

Once the new version is released, you will be able to go:

```nohighlight
model = Model(with_optimizer(CPLEX.Optimizer))
MOI.set(model, MOI.Silent(), true)

```

For other options, see the README:  
[https://github.com/JuliaOpt/CPLEX.jl#use-with-jump](https://github.com/JuliaOpt/CPLEX.jl#use-with-jump)
