# How to test solvers in JuMP

**URL:** https://discourse.julialang.org/t/how-to-test-solvers-in-jump/94250
**Category:** Optimization (Mathematical)
**Tags:** question, jump
**Created:** [February 8, 2023, 3:53am UTC](https://discourse.julialang.org/t/how-to-test-solvers-in-jump/94250 "2023-02-08T03:53:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kevinqiao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevinqiao/32/44492_2.png) [@kevinqiao](https://discourse.julialang.org/u/kevinqiao)
#### Post date: [February 8, 2023, 3:53am UTC](https://discourse.julialang.org/t/how-to-test-solvers-in-jump/94250/1 "2023-02-08T03:53:33Z")

</div>

I have installed JuMP and some solvers, how to test solvers in JuMP, as I want to verify the solvers work well and the correct solution can be obtained.

Thanks in advance.

---

<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: [February 8, 2023, 3:57am UTC](https://discourse.julialang.org/t/how-to-test-solvers-in-jump/94250/2 "2023-02-08T03:57:17Z")

</div>

Solvers in JuMP are installed just as regular Julia packages, so you can test them that way too.

```plaintext
using JuMP, HiGHS
model = Model(HiGHS.Optimizer)

# To test HiGHS

import Pkg
Pkg.test("HiGHS")

```

In general though, if you can install the solver without error, you can expect it to work correctly. But you should still always verify the reported solution. Solvers can return incorrect solutions for a number of reasons (modeling error on your part, numerical issues, a bug in the solver).

---

<div class="post-metadata">

### Author: ![kevinqiao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevinqiao/32/44492_2.png) [@kevinqiao](https://discourse.julialang.org/u/kevinqiao)
#### Post date: [February 10, 2023, 1:42am UTC](https://discourse.julialang.org/t/how-to-test-solvers-in-jump/94250/3 "2023-02-10T01:42:58Z")

</div>

Nice, thank you, odow.
