Clear Filters
Clear Filters

Setting up Gurobi on Mac with Apple chips and MATLAB R2023B

27 views (last 30 days)
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

Answers (1)

Rishi
Rishi on 23 Oct 2023
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.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!