SkillAgentSearch skills...

OptimalBranching.jl

Automated discovery of optimal branching rules for the branch-and-bound algorithm

Install / Use

/learn @OptimalBranching/OptimalBranching.jl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<img src="logo-wide.svg" width=500>

Dev Build Status codecov

OptimalBranching.jl is a collection of tools for solving combinatorial optimization problems with branch-and-reduce method. It is written in Julia and features automatically generated branching rules with provable optimality (arXiv: 2412.07685). The rule generation is problem agnostic, and it can be easily extended to other problems. It contains two submodules:

  • OptimalBranchingCore.jl: the core algorithms, which convert the problem of searching the optimal branching rule into the problem of searching the optimal set cover.
  • OptimalBranchingMIS.jl: the maximum independent set (MIS) problem solver based on the optimal branching algorithms.

Installation

<p> OptimalBranching is a &nbsp; <a href="https://julialang.org"> <img src="https://raw.githubusercontent.com/JuliaLang/julia-logo-graphics/master/images/julia.ico" width="16em"> Julia Language </a> &nbsp; package. To install OptimalBranching, please <a href="https://docs.julialang.org/en/v1/manual/getting-started/">open Julia's interactive session (known as REPL)</a> and press <kbd>]</kbd> key in the REPL to use the package mode, then type the following command </p>
pkg> add OptimalBranchingCore  # for the core algorithms

pkg> add OptimalBranching      # for utilities based on the core algorithms

If you have problem to install the package, please file us an issue.

Get started

julia> using OptimalBranching, OptimalBranching.OptimalBranchingMIS.Graphs

julia> graph = smallgraph(:tutte)
{46, 69} undirected simple Int64 graph

julia> mis_branch_count(graph)
(19, 2)

In this example, the maximum independent set size of the Tutte graph is 19, and the optimal branching strategy only generates 2 branches in the branching tree.

For advanced usage, please refer to the documentation.

How to Contribute

If you find any bug or have any suggestion, please open an issue.

Citation

If you find this package useful in your research, please cite the relevant paper in the CITATION.bib file.

View on GitHub
GitHub Stars18
CategoryDevelopment
Updated4mo ago
Forks3

Languages

Julia

Security Score

92/100

Audited on Dec 1, 2025

No findings