Skip to content

Commit

Permalink
Add custom branching rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RXGottlieb committed May 29, 2024
1 parent 1466ac9 commit 83e3553
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SourceCodeMcCormick"
uuid = "a7283dc5-4ecf-47fb-a95b-1412723fc960"
authors = ["Robert Gottlieb <[email protected]>"]
version = "0.3.0"
version = "0.3.1"

[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Expand Down
6 changes: 6 additions & 0 deletions examples/ParBB/subroutines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ function default_upper_heuristic(m::EAGO.GlobalOptimizer)
return bool
end

# Add a custom branching function that branches at the midpoint
import EAGO: select_branch_point
function select_branch_point(t::ExtendGPU, m::EAGO.GlobalOptimizer, i)
return EAGO._mid(EAGO.BranchVar(), m, i)
end

# Disable epigraph reformation, preprocessing, and postprocessing
import EAGO: reform_epigraph_min!
function reform_epigraph_min!(m::EAGO.GlobalOptimizer)
Expand Down

2 comments on commit 83e3553

@RXGottlieb
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/107891

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.1 -m "<description of version>" 83e3553d4898d6b9f85cc4558c7fee71679835b4
git push origin v0.3.1

Please sign in to comment.