Skip to main content

A script which runs perfectly in Pycharm can not be implemented in the Matlab environment.

Answered

Comments

2 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?.
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Canqi,

    You cannot simply run a Python script in Matlab. The APIs are very different. Please consult our documentation for further information.

    The error message seems to be coming from Python, though, and suggest that you need to update your Gurobi installation - getA() was only introduced in version 9.0. You may also have an error in the Python code because getA() is a method and not an attribute, so you may be missing the brackets.

    Cheers,
    Matthias

    0

Post is closed for comments.