Skip to content

Commit 83e3553

Browse files
committed
Add custom branching rule
1 parent 1466ac9 commit 83e3553

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SourceCodeMcCormick"
22
uuid = "a7283dc5-4ecf-47fb-a95b-1412723fc960"
33
authors = ["Robert Gottlieb <[email protected]>"]
4-
version = "0.3.0"
4+
version = "0.3.1"
55

66
[deps]
77
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

examples/ParBB/subroutines.jl

+6
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ function default_upper_heuristic(m::EAGO.GlobalOptimizer)
334334
return bool
335335
end
336336

337+
# Add a custom branching function that branches at the midpoint
338+
import EAGO: select_branch_point
339+
function select_branch_point(t::ExtendGPU, m::EAGO.GlobalOptimizer, i)
340+
return EAGO._mid(EAGO.BranchVar(), m, i)
341+
end
342+
337343
# Disable epigraph reformation, preprocessing, and postprocessing
338344
import EAGO: reform_epigraph_min!
339345
function reform_epigraph_min!(m::EAGO.GlobalOptimizer)

0 commit comments

Comments
 (0)