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

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

 Accepted Answer

tamans
tamans on 16 May 2023

0 votes

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

More Answers (0)

Categories

Asked:

on 16 May 2023

Answered:

on 16 May 2023

Community Treasure Hunt

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

Start Hunting!