BranchAndBound() solves an OptimizationProblem() whose unknowns
include integers (Variable("n", integer = TRUE)) or binaries
(binary = TRUE, bounds 0 and 1) by branch and bound over the
continuous relaxation, the method of the Juniper solver that
Optimization.jl reaches through OptimizationMOI. Each node solves the
relaxation with the bounds of its branch; a node whose relaxed
objective is no better than the best integer point found is pruned, and
otherwise the most fractional integer unknown is branched on. It is the
default for problems with integer unknowns.
Arguments
- relaxation
The algorithm for the relaxations;
AugLag()for problems with constraints andLBFGSB()otherwise whenNULL.- max_nodes
Largest number of relaxations to solve.
- int_tol
Distance to the nearest integer below which a value counts as integral.
- ctol
Largest constraint violation of an accepted point.