# Rewriting JuMP code in MathOptInterface

**URL:** <https://discourse.julialang.org/t/rewriting-jump-code-in-mathoptinterface/42061>\
**Category:** Optimization (Mathematical)\
**Created:** [June 25, 2020, 7:09pm UTC](https://discourse.julialang.org/t/rewriting-jump-code-in-mathoptinterface/42061 "2020-06-25T19:09:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [June 26, 2020, 2:44am UTC](https://discourse.julialang.org/t/rewriting-jump-code-in-mathoptinterface/42061/5 "2020-06-26T02:44:28Z")

</div>

No, you will need to use MOI directly.

From the [tests](https://github.com/JuliaPolyhedra/CDDLib.jl/blob/master/test/MOI_wrapper.jl), it looks like you need to use:

```julia
model = CDDLib.Optimizer{Rational{BigInt}}()

```

And make sure all your coefficients are also `Rational{BigInt}`s.

---

_[View the full topic](https://discourse.julialang.org/t/rewriting-jump-code-in-mathoptinterface/42061)._
