Optimization Toolbox with MacBook Pro M1 silicon
조회 수: 7 (최근 30일)
이전 댓글 표시
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
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
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!