怎么看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 中查找有关 线性规划和混合整数线性规划 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!