Skip to content

Commit 953fda2

Browse files
Update lib/OptimizationODE/test/runtests.jl
1 parent 36a8590 commit 953fda2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/OptimizationODE/test/runtests.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ using LinearAlgebra, ForwardDiff
55
using OrdinaryDiffEq, DifferentialEquations, SteadyStateDiffEq, Sundials
66

77
# Test helper functions
8-
function rosenbrock(x, p,args...)
8+
function rosenbrock(x, p)
99
return (p[1] - x[1])^2 + p[2] * (x[2] - x[1]^2)^2
1010
end
1111

12-
function rosenbrock_grad!(grad, x, p,args...)
12+
function rosenbrock_grad!(grad, x, p)
1313
grad[1] = -2.0 * (p[1] - x[1]) - 4.0 * p[2] * (x[2] - x[1]^2) * x[1]
1414
grad[2] = 2.0 * p[2] * (x[2] - x[1]^2)
1515
end
1616

17-
function quadratic(x, p,args...)
17+
function quadratic(x, p)
1818
return (x[1] - p[1])^2 + (x[2] - p[2])^2
1919
end
2020

21-
function quadratic_grad!(grad, x, p,args...)
21+
function quadratic_grad!(grad, x, p)
2222
grad[1] = 2.0 * (x[1] - p[1])
2323
grad[2] = 2.0 * (x[2] - p[2])
2424
end
2525

2626
# Constrained optimization problem
27-
function constrained_objective(x, p,args...)
27+
function constrained_objective(x, p)
2828
return x[1]^2 + x[2]^2
2929
end
3030

0 commit comments

Comments
 (0)