MethodError: no method matching isless(::Int64, ::Array{UnitRange{Int64},1})

Hi, I would advise next time you post a MWE (Minimal Working Example) that reproduces your error as it is suggested in the item 3 of this list of good practices when asking in this forum.

Only with the error message and this excerpt of code I would deduce that:

  1. None of alpha, w, beta, and bs are JuMP variable containers. They all are Number Vectors because the message complains about the left-hand side of the <= being an Int.
  2. H seems to be a Vector of UnitRange{Int64}, in other words something like this: [1:10, 7:30, -10:10] (a list of ranges).

Without a MWE we cannot know why your Vectors that seems as they should be JuMP variable containers are just Number containers, nor why H seem to be a Vector of ranges. Other confusing things are, for example: from where np comes from? should np be varying too or it is fixed?