Skip to main content

m.getAttr('X', x) gives warning

Answered

Comments

1 comment

  • Matthias Miltenberger
    • Gurobi Staff Gurobi Staff

    I don't see a warning with VSCode. Maybe you should install Gurobi/gurobipy-stubs (github.com) to get the correct type hints?

    Providing a set of constraints or variables to the getAttr() method is certainly possible and should not trigger a warning.

    Cheers,
    Matthias

    0

Please sign in to leave a comment.