Return solve time of intlinprog

1 view (last 30 days)
James Usevitch
James Usevitch on 30 Mar 2022
Does intlinprog return the solve time of a MILP? I can't seem to find this in the documentation--the solve time is not one of the fields returned by the output struct. I realize that this information is displayed during the solve process, but I'd like to access it programmatically after a solution has been found.
(I'm aware that I can wrap the intlinprog call in tic / toc. But this seems redundant when intlinprog is itself tracking the solve time. There also seem to be issues with using tic / toc in a parfor loop, which I am planning on using.)

Answers (0)


Find more on Linear Programming and Mixed-Integer Linear Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!