Setting up Gurobi on Mac with Apple chips and MATLAB R2023B

35 visualizaciones (últimos 30 días)
Hieu Nguyen
Hieu Nguyen el 6 de Oct. de 2023
Respondida: Rishi el 23 de Oct. de 2023
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

Respuestas (1)

Rishi
Rishi el 23 de Oct. de 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.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by