Optimization Toolbox with MacBook Pro M1 silicon

조회 수: 7 (최근 30일)
lorenzo giusti
lorenzo giusti 2021년 1월 21일
답변: YI CHEN 2022년 10월 27일
I am writing a code to solve a Mixed-integer linear problem using the function 'intlinprog'.
When I run the following piece of code:
options = optimoptions('intlinprog', 'MaxTime',MaxTime, 'ObjectiveCutOff', 400, 'HeuristicsMaxNodes', 250,'CutMaxIterations', 50,'MaxNodes', 10^10, 'CutGeneration', 'advanced', 'IntegerPreprocess', 'advanced', 'Heuristics', 'advanced');
[sol, fval, exitflag, condition, lambda] = solve(Prob,'options',options);
Matlab gets stuck on this:
Solving problem using intlinprog.
LP: Optimal objective value is 166.066812.
and it doesn't start with branch and cut phase as usual.
Then after the 'MaxTime' has elapsed I get the following message:
"No feasible folution found."
"Intlinprog stopped because no point satisfies the constraint."
I tried to run the same code using both my old MacBook Air and Matlab Online and it worked fine, finding a lot of feasible solutions.
Has anyone experienced something similar?
What should I do? Should I unistall/reinstall the Optimization toolbox? Could it be a Rosetta 2 connected issue?
Thank you in advance!
  댓글 수: 3
lorenzo giusti
lorenzo giusti 2021년 6월 21일
Fixed after updating to Matlab 2021...
Joseph Mueller
Joseph Mueller 2022년 3월 28일
I am experiencing the same problem. Small mixed-integer problems run fine and are solved with intlinprog in under a second on Intel-based Mac (particularly using R2021b), but they take upwards of 30 seconds to complete when using the new Macbook Pro with M1 chip (tested on both R2021b and R2022a).

댓글을 달려면 로그인하십시오.

답변 (1개)

YI CHEN
YI CHEN 2022년 10월 27일
Neither can I. The same code failed on my Mac with the M2 chip, when it was built and implemented successfully on my Mac with the Intel chip.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by