怎么看intlinp​rog函数每次迭代计​算的数据。

使用intlinprog函数求解整数线性规划问题,想看中间是怎么计算的,怎么看每次迭代的数据,或者怎么输出每次迭代的数据?
看了intlinprog函数的官方说明,只能看到分支定界节点的数量;
例子使用的是intlinprog函数官方说明(https://ww2.mathworks.cn/help/optim/ug/intlinprog.html)中的openExample('optim/UseInitialPointExample')

 採用された回答

tamans
tamans 2023 年 5 月 16 日

0 投票

去看《 intlinprog Output Function and Plot Function Syntax(超链接,自己点进去看) 》这篇文档,照着把调用选项设置中加入 'OutputFcn', @savemilpsolutions 这条。优化之后,可行解会存在 xIntSol 变量中,相应的函数值存在 fIntSol 中。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange线性规划和混合整数线性规划 についてさらに検索

タグ

質問済み:

2023 年 5 月 16 日

回答済み:

2023 年 5 月 16 日

Community Treasure Hunt

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

Start Hunting!