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 个评论
梦娇 何
梦娇 何 2022-7-16
Thanks, but I used 'parfor' in the main function, so this subfunction can't use 'parfor' (nesting is not allowed, right? ).

请先登录,再进行评论。

回答(1 个)

Bruno Luong
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.
  2 个评论
梦娇 何
梦娇 何 2022-7-16
Bruno Luong, i don't know how to concatenate f, intcon, b, beq, lb, yb and x0, and could you mind explaining specifically? thank you very much.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Parallel and Cloud 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by