# Trouble trying to serialize JuMP Models to .mps, .lp, .rew formats

**URL:** <https://discourse.julialang.org/t/trouble-trying-to-serialize-jump-models-to-mps-lp-rew-formats/117425>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, serialization\
**Created:** [July 24, 2024, 3:43pm UTC](https://discourse.julialang.org/t/trouble-trying-to-serialize-jump-models-to-mps-lp-rew-formats/117425 "2024-07-24T15:43:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gangway](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gangway/32/205243_2.png) [@gangway](https://discourse.julialang.org/u/gangway)\
**Post date:** [July 25, 2024, 4:48pm UTC](https://discourse.julialang.org/t/trouble-trying-to-serialize-jump-models-to-mps-lp-rew-formats/117425/3 "2024-07-25T16:48:32Z")

</div>

I read  
“[Gurobi AddGenConstrPoly() in JuMP](https://discourse.julialang.org/t/gurobi-addgenconstrpoly-in-jump/107123)”

Since my main objective is to solve these models to solve using Gurobi, but trying to solve this JuMP model directly with Gurobi.Optimizer generates the same error.  
Is there any way to bypass this error by working with Gurobi C api during direct\_model()?  
I tried:  
model = direct\_model(Gurobi.Optimizer())  
instantiate model(filepath, model) #To load the model  
JuMP.optimize!(model)

It runs and log indicate that Gurobi is being used, terminal status is 1 but objective function is zero.

“Barrier solved model in 0 iterations and 0.01 seconds (0.00 work units)  
Optimal objective 0.00000000e+00.”

The model works perfectly well with Ipopt and other solvers.

---

_[View the full topic](https://discourse.julialang.org/t/trouble-trying-to-serialize-jump-models-to-mps-lp-rew-formats/117425)._
