필터 지우기
필터 지우기

PlotFcns how to display progress in the number of nodes

조회 수: 1 (최근 30일)
Mariam LAFKIHI
Mariam LAFKIHI 2017년 11월 9일
답변: Alan Weiss 2017년 11월 22일
Hello, I am using the intlinprog function, and I want to plot the progress in terms of number of nodes. But the plot shows me just the final solution with number of nodes equal to zero. How can I plot the progress while the algorithm executes ?
Thank you,
Mariam

답변 (2개)

Krishna Bindumadhavan
Krishna Bindumadhavan 2017년 11월 22일
I think what you are looking for here could be the intlinprog Output function. This allows you to call an output function or plot function at suitable event occurrences during the algorithm. You can take a look at the documentation here: https://www.mathworks.com/help/optim/ug/intlinprog-output-functions-and-plot-functions.html.

Alan Weiss
Alan Weiss 2017년 11월 22일
If you are using the built-in @optimplotmilp function for making your plot, and it shows no branch-and-bound steps, then intlinprog didn't take any branch-and-bound steps. Look at the iterative display and you'll see that the problem was solved without branch-and-bound, so there are no nodes. Nothing to plot.
Alan Weiss
MATLAB mathematical toolbox documentation

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by