Plotting with JuMP variables

You can’t plot JuMP variables as they are. What you can do is plot the solution values of the JuMP variables.

So if x is your JuMP variable, call x_sol = JuMP.get_value(x) and then plot x_sol instead of x.

p.s. when posting questions like this, you should include a reproducible example. Take a read of:

1 Like