Skip to content

Commit 36a8590

Browse files
Update lib/OptimizationODE/test/runtests.jl
1 parent 2b03b36 commit 36a8590

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/OptimizationODE/test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ function constrained_objective(x, p,args...)
2828
return x[1]^2 + x[2]^2
2929
end
3030

31-
function constrained_objective_grad!(grad, x, p,args...)
31+
function constrained_objective_grad!(grad, x, p)
3232
grad[1] = 2.0 * x[1]
3333
grad[2] = 2.0 * x[2]
3434
end
3535

36-
function constraint_func(res, x, p,args...)
36+
function constraint_func(res, x, p)
3737
res[1] = x[1] + x[2] - 1.0 # x[1] + x[2] = 1
3838
return x[1] + x[2] - 1.0
3939
end
4040

41-
function constraint_jac!(jac, x, p,args...)
41+
function constraint_jac!(jac, x, p)
4242
jac[1, 1] = 1.0
4343
jac[1, 2] = -1.0
4444
end

0 commit comments

Comments
 (0)