# Stop Julia at certain optimiality gap and return decision variables

**URL:** <https://discourse.julialang.org/t/stop-julia-at-certain-optimiality-gap-and-return-decision-variables/2957>\
**Category:** Optimization (Mathematical)\
**Created:** [March 29, 2017, 7:57pm UTC](https://discourse.julialang.org/t/stop-julia-at-certain-optimiality-gap-and-return-decision-variables/2957 "2017-03-29T19:57:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [February 20, 2019, 2:28am UTC](https://discourse.julialang.org/t/stop-julia-at-certain-optimiality-gap-and-return-decision-variables/2957/7 "2019-02-20T02:28:00Z")

</div>

JuMP has been updated.

> [@JuMP v0.19 has been released](https://discourse.julialang.org/t/jump-v0-19-has-been-released/20878):
>
> We are thrilled to announce the release of JuMP v0.19. Work on this release started nearly two years ago at the [first JuMP-dev meetup](http://www.juliaopt.org/meetings/mit2017/). As introduced in [an earlier post](https://discourse.julialang.org/t/mathoptinterface-and-upcoming-breaking-changes-in-jump-0-19/4874) and at the [second JuMP-dev meetup](https://youtu.be/_u6e184vBhc?list=PLP8iPy9hna6RJUxzYlWENcs9yf-CRoDvD), JuMP has undergone a major refactoring to replace its solver interface from [MathProgBase (MPB)](https://github.com/JuliaOpt/MathProgBase.jl) to the new [MathOptInterface (MOI)](https://github.com/JuliaOpt/MathOptInterface.jl), receiving many new features and improvements along the way. While MPB had three different interfaces: linear/quadratic, conic and nonlinear, MOI is completely generi…

The new syntax is

```julia
m = Model(with_optimizer(CPLEX.Optimizer, CPX_PARAM_EPGAP=1e-2))

```

---

_[View the full topic](https://discourse.julialang.org/t/stop-julia-at-certain-optimiality-gap-and-return-decision-variables/2957)._
