diff --git a/test/coverage.jl b/test/coverage.jl index 1752774d..723de28c 100644 --- a/test/coverage.jl +++ b/test/coverage.jl @@ -3,35 +3,35 @@ function coverage_increase(nlp::CUTEstModel{T}) where {T} status = Cint[0] n, m = nlp.meta.nvar, nlp.meta.ncon pname = Vector{Cchar}(undef, 10) - probname(T, status, pname) + CUTEst.probname(T, status, pname) vname = Matrix{Cchar}(undef, 10, n) - varnames(T, status, Cint[n], vname) + CUTEst.varnames(T, status, Cint[n], vname) if m == 0 - unames(T, status, Cint[n], pname, vname) + CUTEst.unames(T, status, Cint[n], pname, vname) calls = Vector{T}(undef, 4) time = Vector{T}(undef, 4) - ureport(T, status, calls, time) + CUTEst.ureport(T, status, calls, time) else cname = Matrix{Cchar}(undef, 10, m) - connames(T, status, Cint[m], cname) - cnames(T, status, Cint[n], Cint[m], pname, vname, cname) + CUTEst.connames(T, status, Cint[m], cname) + CUTEst.cnames(T, status, Cint[n], Cint[m], pname, vname, cname) calls = Vector{T}(undef, 7) time = Vector{T}(undef, 4) - creport(T, status, calls, time) + CUTEst.creport(T, status, calls, time) nvo, nvc, ec, lc = Cint[0], Cint[0], Cint[0], Cint[0] - cstats(T, status, nvo, nvc, ec, lc) + CUTEst.cstats(T, status, nvo, nvc, ec, lc) lchp = Cint[0] - cdimchp(T, status, lchp) + CUTEst.cdimchp(T, status, lchp) chp_ind, chp_ptr = Vector{Cint}(undef, lchp[1]), Vector{Cint}(undef, m + 1) - cchprodsp(T, status, Cint[m], lchp, chp_ind, chp_ptr) + CUTEst.cchprodsp(T, status, Cint[m], lchp, chp_ind, chp_ptr) lj, nnzj = Cint[0], Cint[0] - cdimsj(T, status, lj) + CUTEst.cdimsj(T, status, lj) j_var, j_fun = Vector{Cint}(undef, lj[1]), Vector{Cint}(undef, lj[1]) - csgrp(T, status, Cint[n], nnzj, lj, j_var, j_fun) + CUTEst.csgrp(T, status, Cint[n], nnzj, lj, j_var, j_fun) lh, nnzh = Cint[0], Cint[0] - cdimsh(T, status, lh) + CUTEst.cdimsh(T, status, lh) h_row, h_col = Vector{Cint}(undef, lh[1]), Vector{Cint}(undef, lh[1]) - csgrshp(T, status, Cint[n], nnzj, lj, j_var, j_fun, nnzh, lh, h_row, h_col) + CUTEst.csgrshp(T, status, Cint[n], nnzj, lj, j_var, j_fun, nnzh, lh, h_row, h_col) end end diff --git a/test/test_core.jl b/test/test_core.jl index c70da39f..d185a2e8 100644 --- a/test/test_core.jl +++ b/test/test_core.jl @@ -82,24 +82,24 @@ function test_coreinterface( @testset "Core interface" begin if (ncon[1] > 0) - cfn(T, st, nvar, ncon, x0, fx, cx) + CUTEst.cfn(T, st, nvar, ncon, x0, fx, cx) @test isapprox(fx[1], f(x0), rtol = rtol) compare_cons(nlp, cx, comp_nlp, c(x0), rtol) - cifn(T, st, nvar, Cint[0], x0, fx) + CUTEst.cifn(T, st, nvar, Cint[0], x0, fx) @test isapprox(fx[1], f(x0), rtol = rtol) for i = 1:ncon[1] - cifn(T, st, nvar, Cint[i], x0, cx) + CUTEst.cifn(T, st, nvar, Cint[i], x0, cx) #@test isapprox(cx[1], c(x0)[i], rtol = rtol) @test isapprox(cx[1] - nlp.meta.ucon[i], c(x0)[i] - comp_nlp.meta.ucon[i], rtol = rtol) @test isapprox(cx[1] - nlp.meta.lcon[i], c(x0)[i] - comp_nlp.meta.lcon[i], rtol = rtol) end - cofg(T, st, nvar, x0, fx, gx, True) + CUTEst.cofg(T, st, nvar, x0, fx, gx, True) @test isapprox(fx[1], f(x0), rtol = rtol) @test isapprox(gx, g(x0), rtol = rtol) - cofsg(T, st, nvar, x0, fx, nnzg, nvar, gval, gvar, True) + CUTEst.cofsg(T, st, nvar, x0, fx, nnzg, nvar, gval, gvar, True) @test isapprox(fx[1], f(x0), rtol = rtol) gx = zeros(T, nvar[1]) for i = 1:nnzg[1] @@ -107,44 +107,44 @@ function test_coreinterface( end @test isapprox(gx, g(x0), rtol = rtol) - ccfg(T, st, nvar, ncon, x0, cx, True, nvar, ncon, Jtx, True) + CUTEst.ccfg(T, st, nvar, ncon, x0, cx, True, nvar, ncon, Jtx, True) @test isapprox(Jtx, J(x0)', rtol = rtol) - ccfg(T, st, nvar, ncon, x0, cx, False, ncon, nvar, Jx, True) + CUTEst.ccfg(T, st, nvar, ncon, x0, cx, False, ncon, nvar, Jx, True) @test isapprox(Jx, J(x0), rtol = rtol) - clfg(T, st, nvar, ncon, x0, y0, lx, glx, True) + CUTEst.clfg(T, st, nvar, ncon, x0, y0, lx, glx, True) @test isapprox(lx[1], f(x0) + dot(y0, cx), rtol = rtol) @test isapprox(glx, g(x0) + J(x0)' * y0, rtol = rtol) - cgr(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx) @test isapprox(gx, g(x0), rtol = rtol) @test isapprox(Jtx, J(x0)', rtol = rtol) - cgr(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx) @test isapprox(gx, g(x0), rtol = rtol) @test isapprox(Jx, J(x0), rtol = rtol) - cgr(T, st, nvar, ncon, x0, y0, True, glx, True, nvar, ncon, Jtx) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, True, glx, True, nvar, ncon, Jtx) @test isapprox(glx, g(x0) + J(x0)' * y0, rtol = rtol) @test isapprox(Jtx, J(x0)', rtol = rtol) - cgr(T, st, nvar, ncon, x0, y0, True, glx, False, ncon, nvar, Jx) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, True, glx, False, ncon, nvar, Jx) @test isapprox(glx, g(x0) + J(x0)' * y0, rtol = rtol) @test isapprox(Jx, J(x0), rtol = rtol) - cigr(T, st, nvar, Cint[0], x0, gval) + CUTEst.cigr(T, st, nvar, Cint[0], x0, gval) @test isapprox(gval, g(x0), rtol = rtol) for i = 1:ncon[1] - cigr(T, st, nvar, Cint[i], x0, gval) + CUTEst.cigr(T, st, nvar, Cint[i], x0, gval) @test isapprox(gval, J(x0)[i, :], rtol = rtol) end - cisgr(T, st, nvar, Cint[0], x0, nnzg, nvar, gval, gvar) + CUTEst.cisgr(T, st, nvar, Cint[0], x0, nnzg, nvar, gval, gvar) I = 1:nnzg[1] @test isapprox(gval[I], g(x0)[gvar[I]], rtol = rtol) for i = 1:ncon[1] - cisgr(T, st, nvar, Cint[i], x0, nnzg, nvar, gval, gvar) + CUTEst.cisgr(T, st, nvar, Cint[i], x0, nnzg, nvar, gval, gvar) @test isapprox(gval, J(x0)[i, gvar[1:nnzg[1]]], rtol = rtol) end - csgr(T, st, nvar, ncon, x0, y0, True, nnzj, lj, Jval, Jvar, Jfun) + CUTEst.csgr(T, st, nvar, ncon, x0, y0, True, nnzj, lj, Jval, Jvar, Jfun) glx = zeros(T, nvar[1]) Jx = zeros(T, nvar[1], ncon[1]) for k = 1:nnzj[1] @@ -156,7 +156,7 @@ function test_coreinterface( end @test isapprox(glx, g(x0) + J(x0)' * y0, rtol = rtol) @test isapprox(Jtx, J(x0)', rtol = rtol) - csgr(T, st, nvar, ncon, x0, y0, False, nnzj, lj, Jval, Jvar, Jfun) + CUTEst.csgr(T, st, nvar, ncon, x0, y0, False, nnzj, lj, Jval, Jvar, Jfun) gx = zeros(T, nvar[1]) Jx = zeros(T, ncon[1], nvar[1]) for k = 1:nnzj[1] @@ -169,7 +169,7 @@ function test_coreinterface( @test isapprox(gx, g(x0), rtol = rtol) @test isapprox(Jx, J(x0), rtol = rtol) - ccfsg(T, st, nvar, ncon, x0, cx, nnzj, lj, Jval, Jvar, Jfun, True) + CUTEst.ccfsg(T, st, nvar, ncon, x0, cx, nnzj, lj, Jval, Jvar, Jfun, True) Jx = zeros(T, ncon[1], nvar[1]) for k = 1:nnzj[1] Jx[Jfun[k], Jvar[k]] = Jval[k] @@ -178,7 +178,7 @@ function test_coreinterface( @test isapprox(Jx, J(x0), rtol = rtol) for j = 1:ncon[1] - ccifg(T, st, nvar, Cint[j], x0, ci, gci, True) + CUTEst.ccifg(T, st, nvar, Cint[j], x0, ci, gci, True) cx[j] = ci[1] Jx[j, :] = gci' end @@ -187,7 +187,7 @@ function test_coreinterface( Jx = zeros(T, ncon[1], nvar[1]) for j = 1:ncon[1] - ccifsg(T, st, nvar, Cint[j], x0, ci, nnzj, lj, Jval, Jvar, True) + CUTEst.ccifsg(T, st, nvar, Cint[j], x0, ci, nnzj, lj, Jval, Jvar, True) cx[j] = ci[1] for k = 1:nnzj[1] Jx[j, Jvar[k]] = Jval[k] @@ -196,27 +196,27 @@ function test_coreinterface( compare_cons(nlp, cx, comp_nlp, c(x0), rtol) @test isapprox(Jx, J(x0), rtol = rtol) - cgrdh(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx, nvar, Wx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx, nvar, Wx) @test isapprox(gx, g(x0), rtol = rtol) @test isapprox(Jx, J(x0), rtol = rtol) @test isapprox(Wx, W(x0, y0), rtol = rtol) - cgrdh(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx, nvar, Wx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx, nvar, Wx) @test isapprox(gx, g(x0), rtol = rtol) @test isapprox(Jtx, J(x0)', rtol = rtol) @test isapprox(Wx, W(x0, y0), rtol = rtol) - cgrdh(T, st, nvar, ncon, x0, y0, True, gx, False, ncon, nvar, Jx, nvar, Wx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, True, gx, False, ncon, nvar, Jx, nvar, Wx) @test isapprox(gx, g(x0) + J(x0)' * y0, rtol = rtol) @test isapprox(Jx, J(x0), rtol = rtol) @test isapprox(Wx, W(x0, y0), rtol = rtol) - cgrdh(T, st, nvar, ncon, x0, y0, True, gx, True, nvar, ncon, Jtx, nvar, Wx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, True, gx, True, nvar, ncon, Jtx, nvar, Wx) @test isapprox(gx, g(x0) + J(x0)' * y0, rtol = rtol) @test isapprox(Jtx, J(x0)', rtol = rtol) @test isapprox(Wx, W(x0, y0), rtol = rtol) - cdh(T, st, nvar, ncon, x0, y0, nvar, Wx) + CUTEst.cdh(T, st, nvar, ncon, x0, y0, nvar, Wx) @test isapprox(Wx, W(x0, y0), rtol = rtol) - csh(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.csh(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) Wx = zeros(T, nvar[1], nvar[1]) for k = 1:nnzh[1] i = Hrow[k] @@ -226,7 +226,7 @@ function test_coreinterface( end @test isapprox(Wx, W(x0, y0), rtol = rtol) - cshc(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.cshc(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) Cx = zeros(T, nvar[1], nvar[1]) for k = 1:nnzh[1] i = Hrow[k] @@ -236,17 +236,17 @@ function test_coreinterface( end @test isapprox(Cx, (W(x0, y0) - H(x0)), rtol = rtol) - cidh(T, st, nvar, x0, Cint[0], nvar, Hx) + CUTEst.cidh(T, st, nvar, x0, Cint[0], nvar, Hx) @test isapprox(Hx, H(x0), rtol = rtol) y1 = zeros(T, ncon[1]) for k = 1:ncon[1] - cidh(T, st, nvar, x0, Cint[k], nvar, Cx) + CUTEst.cidh(T, st, nvar, x0, Cint[k], nvar, Cx) y1[k] = one(T) @test isapprox(Cx, (W(x0, y1) - H(x0)), rtol = rtol) y1[k] = zero(T) end - cish(T, st, nvar, x0, Cint[0], nnzh, lh, Hval, Hrow, Hcol) + CUTEst.cish(T, st, nvar, x0, Cint[0], nnzh, lh, Hval, Hrow, Hcol) Hx = zeros(T, nvar[1], nvar[1]) for k = 1:nnzh[1] i = Hrow[k] @@ -257,7 +257,7 @@ function test_coreinterface( @test isapprox(Hx, H(x0), rtol = rtol) y1 = zeros(T, ncon[1]) for k = 1:ncon[1] - cish(T, st, nvar, x0, Cint[k], nnzh, lh, Hval, Hrow, Hcol) + CUTEst.cish(T, st, nvar, x0, Cint[k], nnzh, lh, Hval, Hrow, Hcol) Cx = zeros(T, nvar[1], nvar[1]) for k2 = 1:nnzh[1] i = Hrow[k2] @@ -270,7 +270,7 @@ function test_coreinterface( y1[k] = zero(T) end - csgrsh( + CUTEst.csgrsh( T, st, nvar, @@ -308,7 +308,7 @@ function test_coreinterface( @test isapprox(gx, g(x0), rtol = rtol) @test isapprox(Jx, J(x0), rtol = rtol) @test isapprox(Wx, W(x0, y0), rtol = rtol) - csgrsh( + CUTEst.csgrsh( T, st, nvar, @@ -349,32 +349,32 @@ function test_coreinterface( v = ones(T, nvar[1]) Hv = Vector{T}(undef, nvar[1]) - chprod(T, st, nvar, ncon, False, x0, y0, v, Hv) + CUTEst.chprod(T, st, nvar, ncon, False, x0, y0, v, Hv) @test isapprox(Hv, W(x0, y0) * v, rtol = rtol) Hv = Vector{T}(undef, nvar[1]) - chcprod(T, st, nvar, ncon, False, x0, y0, v, Hv) + CUTEst.chcprod(T, st, nvar, ncon, False, x0, y0, v, Hv) @test isapprox(Hv, (W(x0, y0) - H(x0)) * v, rtol = rtol) v = ones(T, nvar[1]) Jv = Vector{T}(undef, ncon[1]) - cjprod(T, st, nvar, ncon, False, False, x0, v, nvar, Jv, ncon) + CUTEst.cjprod(T, st, nvar, ncon, False, False, x0, v, nvar, Jv, ncon) @test isapprox(Jv, J(x0) * v, rtol = rtol) v = ones(T, ncon[1]) Jtv = Vector{T}(undef, nvar[1]) - cjprod(T, st, nvar, ncon, False, True, x0, v, ncon, Jtv, nvar) + CUTEst.cjprod(T, st, nvar, ncon, False, True, x0, v, ncon, Jtv, nvar) @test isapprox(Jtv, J(x0)' * v, rtol = rtol) else - ufn(T, st, nvar, x0, fx) + CUTEst.ufn(T, st, nvar, x0, fx) @test isapprox(fx[1], f(x0), rtol = rtol) - ugr(T, st, nvar, x0, gx) + CUTEst.ugr(T, st, nvar, x0, gx) @test isapprox(gx, g(x0), rtol = rtol) - udh(T, st, nvar, x0, nvar, Hx) + CUTEst.udh(T, st, nvar, x0, nvar, Hx) @test isapprox(Hx, H(x0), rtol = rtol) - ush(T, st, nvar, x0, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.ush(T, st, nvar, x0, nnzh, lh, Hval, Hrow, Hcol) Hx = zeros(T, nvar[1], nvar[1]) for k = 1:nnzh[1] i = Hrow[k] @@ -384,11 +384,11 @@ function test_coreinterface( end @test isapprox(Hx, H(x0), rtol = rtol) - ugrdh(T, st, nvar, x0, gx, nvar, Hx) + CUTEst.ugrdh(T, st, nvar, x0, gx, nvar, Hx) @test isapprox(gx, g(x0), rtol = rtol) @test isapprox(Hx, H(x0), rtol = rtol) - ugrsh(T, st, nvar, x0, gx, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.ugrsh(T, st, nvar, x0, gx, nnzh, lh, Hval, Hrow, Hcol) @test isapprox(gx, g(x0), rtol = rtol) Hx = zeros(T, nvar[1], nvar[1]) for k = 1:nnzh[1] @@ -401,10 +401,10 @@ function test_coreinterface( v = ones(T, nvar[1]) Hv = Vector{T}(undef, nvar[1]) - uhprod(T, st, nvar, False, x0, v, Hv) + CUTEst.uhprod(T, st, nvar, False, x0, v, Hv) @test isapprox(Hv, H(x0) * v, rtol = rtol) - uofg(T, st, nvar, x0, fx, gx, True) + CUTEst.uofg(T, st, nvar, x0, fx, gx, True) @test isapprox(fx[1], f(x0), rtol = rtol) @test isapprox(gx, g(x0), rtol = rtol) end @@ -412,41 +412,41 @@ function test_coreinterface( print("Core interface stress test... ") for i = 1:10000 if (ncon[1] > 0) - cfn(T, st, nvar, ncon, x0, fx, cx) - cofg(T, st, nvar, x0, fx, gx, True) - cofsg(T, st, nvar, x0, fx, nnzg, nvar, gval, gvar, True) - ccfg(T, st, nvar, ncon, x0, cx, True, nvar, ncon, Jtx, True) - ccfg(T, st, nvar, ncon, x0, cx, False, ncon, nvar, Jx, True) - clfg(T, st, nvar, ncon, x0, y0, lx, glx, True) - cgr(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx) - cgr(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx) - cgr(T, st, nvar, ncon, x0, y0, True, glx, True, nvar, ncon, Jtx) - cgr(T, st, nvar, ncon, x0, y0, True, glx, False, ncon, nvar, Jx) - csgr(T, st, nvar, ncon, x0, y0, True, nnzj, lj, Jval, Jvar, Jfun) - csgr(T, st, nvar, ncon, x0, y0, False, nnzj, lj, Jval, Jvar, Jfun) - ccfsg(T, st, nvar, ncon, x0, cx, nnzj, lj, Jval, Jvar, Jfun, True) + CUTEst.cfn(T, st, nvar, ncon, x0, fx, cx) + CUTEst.cofg(T, st, nvar, x0, fx, gx, True) + CUTEst.cofsg(T, st, nvar, x0, fx, nnzg, nvar, gval, gvar, True) + CUTEst.ccfg(T, st, nvar, ncon, x0, cx, True, nvar, ncon, Jtx, True) + CUTEst.ccfg(T, st, nvar, ncon, x0, cx, False, ncon, nvar, Jx, True) + CUTEst.clfg(T, st, nvar, ncon, x0, y0, lx, glx, True) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, True, glx, True, nvar, ncon, Jtx) + CUTEst.cgr(T, st, nvar, ncon, x0, y0, True, glx, False, ncon, nvar, Jx) + CUTEst.csgr(T, st, nvar, ncon, x0, y0, True, nnzj, lj, Jval, Jvar, Jfun) + CUTEst.csgr(T, st, nvar, ncon, x0, y0, False, nnzj, lj, Jval, Jvar, Jfun) + CUTEst.ccfsg(T, st, nvar, ncon, x0, cx, nnzj, lj, Jval, Jvar, Jfun, True) for j = 1:ncon[1] - ccifg(T, st, nvar, Cint[j], x0, ci, gci, True) + CUTEst.ccifg(T, st, nvar, Cint[j], x0, ci, gci, True) end for j = 1:ncon[1] - ccifsg(T, st, nvar, Cint[j], x0, ci, nnzj, lj, Jval, Jvar, True) + CUTEst.ccifsg(T, st, nvar, Cint[j], x0, ci, nnzj, lj, Jval, Jvar, True) end - cgrdh(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx, nvar, Wx) - cgrdh(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx, nvar, Wx) - cgrdh(T, st, nvar, ncon, x0, y0, True, gx, False, ncon, nvar, Jx, nvar, Wx) - cgrdh(T, st, nvar, ncon, x0, y0, True, gx, True, nvar, ncon, Jtx, nvar, Wx) - cdh(T, st, nvar, ncon, x0, y0, nvar, Wx) - csh(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) - cshc(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) - cidh(T, st, nvar, x0, Cint[0], nvar, Hx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, False, gx, False, ncon, nvar, Jx, nvar, Wx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, False, gx, True, nvar, ncon, Jtx, nvar, Wx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, True, gx, False, ncon, nvar, Jx, nvar, Wx) + CUTEst.cgrdh(T, st, nvar, ncon, x0, y0, True, gx, True, nvar, ncon, Jtx, nvar, Wx) + CUTEst.cdh(T, st, nvar, ncon, x0, y0, nvar, Wx) + CUTEst.csh(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.cshc(T, st, nvar, ncon, x0, y0, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.cidh(T, st, nvar, x0, Cint[0], nvar, Hx) for k = 1:ncon[1] - cidh(T, st, nvar, x0, Cint[k], nvar, Cx) + CUTEst.cidh(T, st, nvar, x0, Cint[k], nvar, Cx) end - cish(T, st, nvar, x0, Cint[0], nnzh, lh, Hval, Hrow, Hcol) + CUTEst.cish(T, st, nvar, x0, Cint[0], nnzh, lh, Hval, Hrow, Hcol) for k = 1:ncon[1] - cish(T, st, nvar, x0, Cint[k], nnzh, lh, Hval, Hrow, Hcol) + CUTEst.cish(T, st, nvar, x0, Cint[k], nnzh, lh, Hval, Hrow, Hcol) end - csgrsh( + CUTEst.csgrsh( T, st, nvar, @@ -465,7 +465,7 @@ function test_coreinterface( Hrow, Hcol, ) - csgrsh( + CUTEst.csgrsh( T, st, nvar, @@ -484,19 +484,19 @@ function test_coreinterface( Hrow, Hcol, ) - chprod(T, st, nvar, ncon, False, x0, y0, v, Hv) - chcprod(T, st, nvar, ncon, False, x0, y0, v, Hv) - cjprod(T, st, nvar, ncon, False, False, x0, v, nvar, Jv, ncon) - cjprod(T, st, nvar, ncon, False, True, x0, v, ncon, Jtv, nvar) + CUTEst.chprod(T, st, nvar, ncon, False, x0, y0, v, Hv) + CUTEst.chcprod(T, st, nvar, ncon, False, x0, y0, v, Hv) + CUTEst.cjprod(T, st, nvar, ncon, False, False, x0, v, nvar, Jv, ncon) + CUTEst.cjprod(T, st, nvar, ncon, False, True, x0, v, ncon, Jtv, nvar) else - ufn(T, st, nvar, x0, fx) - ugr(T, st, nvar, x0, gx) - udh(T, st, nvar, x0, nvar, Hx) - ush(T, st, nvar, x0, nnzh, lh, Hval, Hrow, Hcol) - ugrdh(T, st, nvar, x0, gx, nvar, Hx) - ugrsh(T, st, nvar, x0, gx, nnzh, lh, Hval, Hrow, Hcol) - uhprod(T, st, nvar, False, x0, v, Hv) - uofg(T, st, nvar, x0, fx, gx, True) + CUTEst.ufn(T, st, nvar, x0, fx) + CUTEst.ugr(T, st, nvar, x0, gx) + CUTEst.udh(T, st, nvar, x0, nvar, Hx) + CUTEst.ush(T, st, nvar, x0, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.ugrdh(T, st, nvar, x0, gx, nvar, Hx) + CUTEst.ugrsh(T, st, nvar, x0, gx, nnzh, lh, Hval, Hrow, Hcol) + CUTEst.uhprod(T, st, nvar, False, x0, v, Hv) + CUTEst.uofg(T, st, nvar, x0, fx, gx, True) end end println("passed")