Skip to main content

How to give a parameter list to Gurobi

Answered

Comments

1 comment

  • Fikri Kucuksayacigil
    Gurobi-versary
    Collaborator
    Curious

    Okay, I found the solution. The following works for me:

    paramname  = ["MIPGap", "TimeLimit", "Method"]

    paramvalue = [0,01, 91800, 2]

    Expansion_Model = Model(optimizer_with_attributes(Gurobi.Optimizer))

    for (x,y) in zip(paramname, paramvalue)

         set_optimizer_attribute(Expansion_Model, x, y)

    end
    0

Please sign in to leave a comment.