Slow generation of a large LP model in JuMP

  1. Have you encapsulated all you code inside a function or you have been running in a global scope?
    (running code in global scope with global variables tends to be much slower)

  2. Have you measured time on a second run?
    (The first time you run you code it is compiled)

2 Likes