Skip to content

Commit 9a5d5d9

Browse files
fixup! fixup! test: add extensive modelingtoolkitize tests
1 parent 67f9c7e commit 9a5d5d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/modelingtoolkitize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,13 @@ sys = modelingtoolkitize(prob)
458458
@parameters p=3.0 q=4.0
459459
loss = (p - x)^2 + q * (y - x^2)^2
460460
@mtkbuild optsys = OptimizationSystem(loss, [x, y], [p, q])
461-
prob1 = OptimizationProblem(optsys, [], grad=true, hess=true)
461+
prob1 = OptimizationProblem(optsys, [], grad = true, hess = true)
462462
newsys = complete(modelingtoolkitize(prob1))
463463
@test is_variable(newsys, newsys.x)
464464
@test is_variable(newsys, newsys.y)
465465
@test is_parameter(newsys, newsys.p)
466466
@test is_parameter(newsys, newsys.q)
467-
prob2 = OptimizationProblem(newsys, [], grad=true, hess=true)
467+
prob2 = OptimizationProblem(newsys, [], grad = true, hess = true)
468468

469469
sol1 = solve(prob1, GradientDescent())
470470
sol2 = solve(prob2, GradientDescent())

0 commit comments

Comments
 (0)