Minor fixes

This commit is contained in:
2024-02-01 13:13:10 -06:00
parent d69c4bbfa7
commit 4d5b7e971c
3 changed files with 10 additions and 8 deletions

View File

@@ -17,6 +17,15 @@ Base.@kwdef mutable struct _JumpModelExtData
cuts_separate::Union{Function,Nothing} = nothing
end
function JuMP.copy_extension_data(
::_JumpModelExtData,
new_model::AbstractModel,
::AbstractModel,
)
# Do not transfer any extension data to the new model
new_model.ext[:miplearn] = _JumpModelExtData()
end
# -----------------------------------------------------------------------------
function _add_constrs(