How do I reduce the running time when I call thousands of 'intlinprog' ?
2 次查看(过去 30 天)
显示 更早的评论
- 'intlinprog' is used in a subfunction that is called many times, and the running time is too long. I want to get a faster running time, so what can i do?
2 个评论
回答(1 个)
Bruno Luong
2022-7-15
编辑:Bruno Luong
2022-7-15
You can try to call multiple problems at once by
- Concatenate f, intcon, b, beq, lb, yb, x0,
- Make matrices A, Aeq block diagonal (possibly sparse format is better).
Not sure if it saves time or the solution is not degraded though.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel and Cloud 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!