How can I exit intlinprog
at the "Branch and Bound" stage when fval
and/or the relative gap no longer improve? I have tried numerous options but so far without success. For the example below, I know the optimal value is 6834
. How do I implement an early stop if, for example, there was no improvement in five consecutive steps?
nodes | total | num int | integer | relative
explored | time (s) | solution | fval | gap (%)
4980 33.87 13 6.843000e+03 1.256575e+00
54403 295.20 14 6.834000e+03 1.126554e+00
64403 347.04 14 6.834000e+03 1.126554e+00
74403 398.97 14 6.834000e+03 1.126554e+00
84403 452.28 14 6.834000e+03 1.126554e+00
94403 503.83 14 6.834000e+03 1.126554e+00
104403 557.71 14 6.834000e+03 1.126554e+00