Skip to content

Commit

Permalink
Update src/NLPModelsKnitro.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Nov 29, 2023
1 parent 8b5df6a commit a7c148e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/NLPModelsKnitro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ using KNITRO, SolverCore

export knitro, KnitroSolver, finalize, setparams!, solve!

import Libdl

const _DEPS_FILE = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
if isfile(_DEPS_FILE)
include(_DEPS_FILE)
else
error("NLPModelsKnitro.jl not properly installed. Please run `] build NLPModelsKnitro`")
end

function __init__()
KNITRO.__init__()
end

"""
output = knitro(nlp; kwargs...)
Expand Down

0 comments on commit a7c148e

Please sign in to comment.