怎么看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!