Skip to content

Commit

Permalink
Fix support for mix of nonlinear with quadratic
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jul 21, 2024
1 parent 3dd5054 commit 77b5d63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ function parser_MOI(moimodel, index_map, nvar)
end

# Affine or quadratic, nothing to do
function _nlp_model(::Union{Nothing, MOI.Nonlinear.Model}, ::MOI.ModelLike, ::Type, ::Type) end
function _nlp_model(model::Union{Nothing, MOI.Nonlinear.Model}, ::MOI.ModelLike, ::Type, ::Type)
return model
end

function _nlp_model(
dest::Union{Nothing, MOI.Nonlinear.Model},
Expand Down

0 comments on commit 77b5d63

Please sign in to comment.