Skip to content

Instantly share code, notes, and snippets.

@abelsiqueira
Created November 4, 2015 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abelsiqueira/0e1eb32592d11ab63164 to your computer and use it in GitHub Desktop.
Save abelsiqueira/0e1eb32592d11ab63164 to your computer and use it in GitHub Desktop.
Minimum example
include("src/CUTEst.jl")
using CUTEst
io_err = Cint[0]
n = Cint[2]
#goth = Cint[0]
#libname = "libLOGHAIRY"
function bar!(Hv, x, v)
#io_err = Cint[0]
#n = Cint[2]
goth = Cint[0]
libname = "libLOGHAIRY"
uhprod(io_err, n, goth, x, v, Hv, libname)
end
function test(nlp, N)
x = zeros(2)
v = ones(2)
Hv = zeros(x)
for i = 1:N
bar!(Hv, x, v)
end
end
nlp = CUTEstModel("LOGHAIRY")
test(nlp, 1)
test(nlp, 100000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment