Repository navigation
Initial DisjunctionSet raising functions. - #152
Draft
dnguyen227 wants to merge 1 commit into
Draft
dnguyen227 wants to merge 1 commit into
dnguyen227 wants to merge 1 commit into
Conversation
Member
Author
|
In the end I'd like to make a PR with Bilevel.jl to add a disjunctive mode. Not fully scoped out but a PR with them would look like mutable struct DisjunctionMode{T} <: AbstractBilevelSolverMode{T}
function DisjunctionMode()
return new{Float64}()
end
endAnd then we'd dispatch on their function BilevelJuMP.add_complement(
mode::BilevelJuMP.DisjunctionMode{T},
m,
comp::BilevelJuMP.Complement,
idxmap_primal,
idxmap_dual,
copy_names::Bool,
pass_start::Bool,
) where {T}
Code for disjunctive form of a complement.
return c
end |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #152 +/- ##
=======================================
Coverage 99.73% 99.74%
=======================================
Files 23 23
Lines 2659 2729 +70
=======================================
+ Hits 2652 2722 +70
Misses 7 7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dnguyen227
force-pushed
the
disjunction_set_to_gdp
branch
from
November 9, 2026 01:23
08547b8 to
938a9ff
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to raise our new DisjunctionSet into JuMP constraints. This opens the door for other packages to pass us DisjunctionSet for reformulation without us having to create the MOI duplicate in DisjunctiveAlgorithms.jl. This is more so for other packages to hand us their GDP problem and we take care of the reformulation.
If for whatever reason a modeler wanted to use it directly, here is an example.