Skip to content

Commit

Permalink
🤖 Format .jl files (#126)
Browse files Browse the repository at this point in the history
Co-authored-by: amontoison <[email protected]>
  • Loading branch information
github-actions[bot] and amontoison authored Sep 6, 2024
1 parent b28197a commit c6befb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/slack-model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ function slack_meta(meta::AbstractNLPModelMeta{T, S}; name = meta.name * "-slack
x0[(meta.nvar + 1):end] .= zero(T)

if (length(x0) != length(lvar)) && any((meta.lcon .== -Inf) .& (meta.ucon .== Inf))
throw(error("NLPModels with constraints of the form -∞ ≤ cᵢ(x) ≤ ∞ are not supported by slack models."))
throw(
error(
"NLPModels with constraints of the form -∞ ≤ cᵢ(x) ≤ ∞ are not supported by slack models.",
),
)
end

return NLPModelMeta{T, S}(
Expand Down

0 comments on commit c6befb7

Please sign in to comment.