Skip to main content

Researcher

Answered

Comments

1 comment

  • Greg Glockner
    Gurobi Staff Gurobi Staff

    Sure: use ranges rather than numbers, for example:

    x = model.addVars(range(1,3), range(1,4), name="x")

     

    0

Please sign in to leave a comment.