Setting up Gurobi on Mac with Apple chips and MATLAB R2023B

40 次查看(过去 30 天)
Hi,
I am trying to install Gurobi into MATLAB R2023B. I am using Macbook with Apple chips and faced some issues installing Gurobi. I have downloaded and placed Gurobi into the same folder as MATLAB. I also added the path to MATLAB. Here is the issues from the command window:
>> gurobi_setup
Error using gurobi_setup
Unsupported MATLAB architecture MACA64
How do I fix this and sucessfully install Gurobi into MATLAB?
Thank you in advance,
Hieu

回答(1 个)

Rishi
Rishi 2023-10-23
Hi Hieu,
I understand from your query that you are not able to install Gurobi for MATLAB on a Mac with Apple chip.
This is because Gurobi does not have mex functions which are compatible with MATLAB for Apple Silicon. More information about this can be found here at Gurobi’s help center:
To use Gurobi for MATLAB on a Mac with Silicon chip, the following can be done:
  • Install Rosetta, which allows applications compiled for Intel-based Macs to run on Apple Silicon based Macs.
  • Install Gurobi for Intel-based Macs.
  • Use this on MATALB for Intel-based Macs.
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by