Skip to main content

Douple vtype for variable created by addVars

Answered

Comments

1 comment

  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    Hi Nick,

    You can add a list of vtypes:

    x = m.addVars(3, vtype=[GRB.BINARY]*2 + [GRB.CONTINUOUS])

    Cheers, 
    David

    0

Please sign in to leave a comment.