Why ILP Solver Switching to Branch-and-Bound?

4 Ansichten (letzte 30 Tage)
Maria
Maria am 20 Aug. 2024
Kommentiert: Maria am 21 Aug. 2024
Hello everyone,
I'm working on an integer linear programming (ILP) problem in MATLAB. When I solve the problem with a small number of variables, the solver quickly finds an optimal solution. However, when I increase the number of variables, the solver uses the branch-and-bound algorithm, which takes a long time. I would like to know if the ILP will display an optimal solution after the iterations of the branch-and-bound algorithm?
Any insights or tips on why the solver switches to branch-and-bound would be greatly appreciated!
Thank you!

Akzeptierte Antwort

Matt J
Matt J am 21 Aug. 2024
Bearbeitet: Matt J am 21 Aug. 2024
Assuming you are using intlinprog, it will always uses the branch-and-bound algorithm at some stage of the processing (not sure why you think it "switches"). And yes, the computational expense of branch-and-bound is exponential in the number of integer-constrained variables. It can therefore take an impractically long time for large numbers of variables, but in theory, it should always reach an optimal solution if you are willing to wait.
  1 Kommentar
Maria
Maria am 21 Aug. 2024
Thank you very much! I waited and the problem was solved.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by