# Getting "MethodError: no method matching Model()" when initializing models on JuMP

**URL:** <https://discourse.julialang.org/t/getting-methoderror-no-method-matching-model-when-initializing-models-on-jump/43647>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, error\
**Created:** [July 24, 2020, 11:39pm UTC](https://discourse.julialang.org/t/getting-methoderror-no-method-matching-model-when-initializing-models-on-jump/43647 "2020-07-24T23:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![danuzco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danuzco/32/18740_2.png) [@danuzco](https://discourse.julialang.org/u/danuzco)\
**Post date:** [October 18, 2020, 6:43pm UTC](https://discourse.julialang.org/t/getting-methoderror-no-method-matching-model-when-initializing-models-on-jump/43647/7 "2020-10-18T18:43:38Z")

</div>

I had a similar issue

```julia
 add JuMP@0.21
  Resolving package versions...
ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
 JuMP [4076af6c] log:
 ├─possible versions are: [0.18.3-0.18.6, 0.19.0-0.19.2, 0.20.0-0.20.1, 0.21.0-0.21.5] or uninstalled
 ├─restricted to versions 0.21 by an explicit requirement, leaving only versions 0.21.0-0.21.5
 └─restricted by compatibility requirements with ConditionalJuMP [ae04f764] to versions: 0.18.3-0.18.6 — no versions left
   └─ConditionalJuMP [ae04f764] log:
     ├─possible versions are: 0.1.0 or uninstalled
     └─restricted to versions * by an explicit requirement, leaving only versions 0.1.0

```

I solved this by `] rm ConditionalJuMP` and then `add JuMP@0.21.0`

I hope this be useful

---

_[View the full topic](https://discourse.julialang.org/t/getting-methoderror-no-method-matching-model-when-initializing-models-on-jump/43647)._
