Skip to main content

Gurobi in Python, TypeError: addConstr() takes at least 2 positional arguments (1 given)

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Silke Horn
    • Gurobi Staff Gurobi Staff

    Hi Odko,

    The name of the first argument should be "lhs" (not "lhr").

    Regards,

    Silke

    1
  • Odko Ganbold
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Silke,

    Thanks a lot! Just realised the typo! :)

    Regards,

    Odko

    0

Post is closed for comments.