diff --git a/ext/NLoptMathOptInterfaceExt.jl b/ext/NLoptMathOptInterfaceExt.jl index 5392198..4933c33 100644 --- a/ext/NLoptMathOptInterfaceExt.jl +++ b/ext/NLoptMathOptInterfaceExt.jl @@ -819,7 +819,7 @@ function MOI.optimize!(model::Optimizer) _initialize_options!(model) if model.nlp_model !== nothing vars = MOI.VariableIndex.(1:num_variables) - model.nlp_data = MOI.NLPBlock( + model.nlp_data = MOI.NLPBlockData( MOI.Nonlinear.Evaluator(model.nlp_model, model.ad_backend, vars), ) end