Skip to main content

AttributeError: 'Model' object has no attribute 'getVars

Awaiting user input

Comments

3 comments

  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Efthymia, what is the result of running

    print(model)
    print(type(model))

    prior to the getVars call?

    - Riley

    0
  • Efthymia Kostopoulou
    First Question
    Gurobi-versary
    First Comment

    Hi Riley,

    It is the following:

    <mip.model.Model object at 0x0000023308C7CAF0>
    <class 'mip.model.Model'>

    Thank you.

    0
  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Efthymia,

    Based on this output the Model object is not a gurobipy model, it is from the Python MIP package.. Is this a surprise to you?

    - Riley

     

    0

Please sign in to leave a comment.