# JuMP : optimize!(model)

**URL:** <https://discourse.julialang.org/t/jump-optimize-model/78445>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [March 25, 2022, 6:57am UTC](https://discourse.julialang.org/t/jump-optimize-model/78445 "2022-03-25T06:57:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iAnkiit](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Post date:** [March 25, 2022, 6:57am UTC](https://discourse.julialang.org/t/jump-optimize-model/78445/1 "2022-03-25T06:57:50Z")

</div>

Why do we need solvers , if we can solve model with : optimize!(model\_name) ?  
How **optimize!** works?  
What solvers actually does ?  
What if we don’t define solvers?

---

<div class="post-metadata">

**Author:** ![mike\_k](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike_k/32/211864_2.png) [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Post date:** [March 25, 2022, 7:59am UTC](https://discourse.julialang.org/t/jump-optimize-model/78445/2 "2022-03-25T07:59:22Z")

</div>

> [@iAnkiit](#):
>
> Why do we need solvers , if we can solve model with : optimize!(model\_name) ?

We cannot. You need to define a solver before.

> [@iAnkiit](#):
>
> How **optimize!** works?  
> What if we don’t define solvers?

See [here](https://jump.dev/JuMP.jl/stable/reference/solutions/#JuMP.optimize!). An error is thrown

> [@iAnkiit](#):
>
> What solvers actually does ?

As the name already indicates it solves the problem you send to it. See [here](https://jump.dev/JuMP.jl/stable/tutorials/getting_started/getting_started_with_JuMP/#What-is-a-solver?).
