Skip to content

Commit

Permalink
Update optimizationsystem.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Sep 4, 2024
1 parent 90f47ec commit f1b8e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/optimizationsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ end
loss = (a - x)^2 + b * (y - x^2)^2
@named sys = OptimizationSystem(loss, [x, y], [a, b], constraints = [x^2 + y^2 0.0])
sys = complete(sys)
@test_throws ErrorException OptimizationProblem(sys,
@test_throws Any OptimizationProblem(sys,
[x => 0.0, y => 0.0],
[a => 1.0, b => 100.0],
lcons = [0.0])
@test_throws ErrorException OptimizationProblem(sys,
@test_throws Any OptimizationProblem(sys,
[x => 0.0, y => 0.0],
[a => 1.0, b => 100.0],
ucons = [0.0])
Expand Down

0 comments on commit f1b8e72

Please sign in to comment.