I am using Gurobi through the JuMP package in Julia to solve a mixed-integer program.
I would like to obtain a graph like this one, where also a solution based on Python is provided (which was also addressed on Gurobi community form).
However, I have not found working solutions for Julia calling Gurobi through JuMP. I understand that callback functions have to be used (such as this suggestion or even the main documentation here), but I do not fully understand how they work and what is essential to achieve my goal.
Any help is much appreciated, as well as a possible description of what the callback function is doing at each step.
If it helps, I am using Gurobi (v.9.0.0), JuMP (v0.20.1), MathOptInterface (v0.9.22) and Julia (v.1.3.0).