How to test solvers in JuMP

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.

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

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

# To test HiGHS

import Pkg

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).

Nice, thank you, odow.

1 Like