Linear programming with Jump

Please see Please read: make it easier to help you. It describes how you format your code.

The likely issue is that you need:

@variable(myModel, 0<= x[b = 1:length(nBonds)] <= nBonds[b])

Here is the relevant documentation: Variables · JuMP

1 Like