diff --git a/src/nlp_expr.jl b/src/nlp_expr.jl index 462b3d597cf..7d3f87c141f 100644 --- a/src/nlp_expr.jl +++ b/src/nlp_expr.jl @@ -584,7 +584,7 @@ end function jump_function(model::GenericModel, expr::MOI.Nonlinear.Expression) V = variable_ref_type(typeof(model)) - nlp = nonlinear_model(model) + nlp = nonlinear_model(model)::MOI.Nonlinear.Model parsed = Vector{Any}(undef, length(expr.nodes)) adj = MOI.Nonlinear.adjacency_matrix(expr.nodes) rowvals = SparseArrays.rowvals(adj)