# \#cplex

**URL:** https://discourse.julialang.org/tag/cplex/604.md?match_all_tags=true&page=1&tags%5B%5D=cplex

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 2

---

## [Error Handling JuMP and CPLEX](https://discourse.julialang.org/t/error-handling-jump-and-cplex/56360)

<div class="topic-metadata">

**Author:** [@Paul\_McVay](https://discourse.julialang.org/u/Paul_McVay)\
**Replies:** 25\
**Last updated:** [March 25, 2021, 5:56pm UTC](https://discourse.julialang.org/t/error-handling-jump-and-cplex/56360 "2021-03-25T17:56:30Z")

</div>

What is the ideal way to handle CPLEX errors in JuMP and Julia? For example, sometimes I run optimize!(m) and it prints CPLEX Error 1292: Invalid choice of optimization method. However, if I use a try/catch and catch the…

---

## [JuMP/CPLEX: problems with submitting heuristic solution](https://discourse.julialang.org/t/jump-cplex-problems-with-submitting-heuristic-solution/57807)

<div class="topic-metadata">

**Author:** [@Ryao](https://discourse.julialang.org/u/Ryao)\
**Replies:** 1\
**Last updated:** [March 23, 2021, 6:27pm UTC](https://discourse.julialang.org/t/jump-cplex-problems-with-submitting-heuristic-solution/57807 "2021-03-23T18:27:45Z")

</div>

Hi everyone, I try to submit a solution extracted from a second model to the main model while encountering such error, any idea? Is there a way to get the CPLEX.Optimizer object from a Model object? Regards, Ryao ER…

---

## [Cannot capture log with JuMP](https://discourse.julialang.org/t/cannot-capture-log-with-jump/55365)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 5\
**Last updated:** [February 16, 2021, 2:43pm UTC](https://discourse.julialang.org/t/cannot-capture-log-with-jump/55365 "2021-02-16T14:43:48Z")

</div>

I wanna capture CPLEX log in a file when it executes. However, when solving MIP instances the last bit of the log is never captured by redirect\_stdout and redirect\_stderr. I do not know the reason, I only know it happens…

[Previous page](https://discourse.julialang.org/tag/cplex/604.md?match_all_tags=true&tags%5B%5D=cplex)
