# Setting tolerances in JuMP - is there an Optimizer-independent way?

**URL:** <https://discourse.julialang.org/t/setting-tolerances-in-jump-is-there-an-optimizer-independent-way/95030>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [February 22, 2023, 5:13pm UTC](https://discourse.julialang.org/t/setting-tolerances-in-jump-is-there-an-optimizer-independent-way/95030 "2023-02-22T17:13:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 22, 2023, 6:30pm UTC](https://discourse.julialang.org/t/setting-tolerances-in-jump-is-there-an-optimizer-independent-way/95030/2 "2023-02-22T18:30:55Z")

</div>

> I’m tired of multiplying my objective functions by large numbers

Why are you doing this?

> Is there a simple Optimizer-independent way to set tolerances in JuMP?

Nothing that is widely supported. Gurobi and CPLEX support setting `MOI.AbsoluteGapTolerance()` and `MOI.RelativeGapTolerance()`.

See [Models · JuMP](https://jump.dev/JuMP.jl/stable/moi/reference/models/#MathOptInterface.AbsoluteGapTolerance)

---

_[View the full topic](https://discourse.julialang.org/t/setting-tolerances-in-jump-is-there-an-optimizer-independent-way/95030)._
