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

Answered

Comments

1 comment

  • Matthias Miltenberger

    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
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk