Do faster optimization with Cbc solver in JuMP

Make sure you set the threads attribute:

using Cbc
using JuMP
n = # the number of threads available on your machine
model = Model(Cbc.Optimizer)
set_optimizer_attribute(model, "threads", n) 
4 Likes