We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc5c110 commit 4624990Copy full SHA for 4624990
src/KNITRO.jl
@@ -39,7 +39,8 @@ end
39
else
40
import KNITRO_jll
41
if KNITRO_jll.is_available()
42
- import KNITRO_jll: libknitro
+ using KNITRO_jll: libknitro, knitroampl
43
+ const amplexe = knitroampl
44
45
error(
46
"Unsupported platform: Use a manual installation by setting " *
test/C_wrapper.jl
@@ -1001,3 +1001,10 @@ end
1001
KN_free(model)
1002
@test sprint(show, model) == "KNITRO Problem: NULL\n"
1003
end
1004
+
1005
+@testset "knitroampl" begin
1006
+ @test occursin(
1007
+ "AMPL/Knitro",
1008
+ sprint(io -> run(pipeline(`$(KNITRO.amplexe()) -v`; stdout = io))),
1009
+ )
1010
+end
0 commit comments