Skip to content

Commit 58d371c

Browse files
blegatrrsadykov
andauthored
Use AnnotationCallback instead of Nothing (#1139)
Co-authored-by: Ruslan Sadykov <41117501+rrsadykov@users.noreply.github.com>
1 parent 15bddab commit 58d371c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MOIcallbacks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function MOI.set(model::Coluna.Optimizer, attr::MOI.LazyConstraintCallback, call
1515
return
1616
end
1717

18-
function MOI.set(model::Coluna.Optimizer, ::BD.PricingCallback, ::Nothing)
18+
function MOI.set(model::Coluna.Optimizer, ::BD.PricingCallback, ::BD.AnnotationCallback)
1919
model.has_pricing_cb = true
2020
# We register the pricing callback through the annotations.
2121
return
@@ -232,4 +232,4 @@ function MOI.get(model::Optimizer, spid::BD.PricingSubproblemId{MathProg.Initial
232232
uid = getuid(callback_data.form)
233233
axis_index_value = model.annotations.ann_per_form[uid].axis_index_value
234234
return axis_index_value
235-
end
235+
end

0 commit comments

Comments
 (0)