# Parametron conflicts with Gurobi

**URL:** https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812
**Category:** Optimization (Mathematical)
**Tags:** question, package
**Created:** [May 10, 2022, 1:39pm UTC](https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812 "2022-05-10T13:39:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vscinz](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@Vscinz](https://discourse.julialang.org/u/Vscinz)
#### Post date: [May 10, 2022, 1:39pm UTC](https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812/1 "2022-05-10T13:39:12Z")

</div>

Hi,  
I tried to use Parametron.jl to solve a “parameterized family” of optimization problems (please see below)

> **[GitHub - tkoolen/Parametron.jl: Efficiently solving instances of a...](https://github.com/tkoolen/Parametron.jl)**
>
> Efficiently solving instances of a parameterized family of (possibly mixed-integer) linear/quadratic optimization problems in Julia - GitHub - tkoolen/Parametron.jl: Efficiently solving instances o...

However, the inclusion of the package Parametron on Julia (v. 1.7.2) creates a problem with the package of Gurobi (so as other solvers e.g. GLPK). It seems that Parametron conflicts with the solvers. Basically, I can no longer run any simulation, even if I do not use Parametron anymore.

Do you experience any of these issues? Thanks for helping me out.

Vincenzo

---

<div class="post-metadata">

### Author: ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)
#### Post date: [May 10, 2022, 3:05pm UTC](https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812/2 "2022-05-10T15:05:49Z")

</div>

Welcome.

It looks like the package has not been updated in over two years, based around Julia 0.7 and so it will likely have some incompatibility with the latest version of Gurobi. You could try instantiating or pinning the Gurobi version to match the version in Parametron based on its Project.toml file?

@tkoolen ?

---

<div class="post-metadata">

### Author: ![Vscinz](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@Vscinz](https://discourse.julialang.org/u/Vscinz)
#### Post date: [May 10, 2022, 3:21pm UTC](https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812/3 "2022-05-10T15:21:06Z")

</div>

Thanks. Unfortunately I may need to use the latest Gurobi version. Is there any other recent function that replaced Parametron?  
The possibility of updating the parameters’ constraints is essential in optimization. I wonder why the Julia community has not taken care of this properly.

---

<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: [May 10, 2022, 7:02pm UTC](https://discourse.julialang.org/t/parametron-conflicts-with-gurobi/80812/4 "2022-05-10T19:02:25Z")

</div>

You can use `set_normalized_coefficient` and `set_normalized_rhs` in JuMP to update coefficients without using Parametron.

- [Constraints · JuMP](https://jump.dev/JuMP.jl/stable/manual/constraints/#Modify-a-constant-term)
- [Constraints · JuMP](https://jump.dev/JuMP.jl/stable/manual/constraints/#Modify-a-variable-coefficient)

Other packages are [GitHub - JuliaStochOpt/ParameterJuMP.jl: A JuMP extension to use parameter in constraints RHS](https://github.com/JuliaStochOpt/ParameterJuMP.jl) and [GitHub - jump-dev/ParametricOptInterface.jl: Extension for dealing with parameters](https://github.com/jump-dev/ParametricOptInterface.jl)
