Skip to content

Commit

Permalink
Update optimizationsystem.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jul 31, 2024
1 parent 6869e92 commit 623f986
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/optimizationsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +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)
OptimizationProblem(sys,
@test_throws ErrorException OptimizationProblem(sys,
[x => 0.0, y => 0.0],
[a => 1.0, b => 100.0],
lcons = [0.0])
@test_throws ArgumentError OptimizationProblem(sys,
[x => 0.0, y => 0.0],
[a => 1.0, b => 100.0],
lcons = [0.0])
@test_throws ArgumentError OptimizationProblem(sys,
@test_throws ErrorException OptimizationProblem(sys,
[x => 0.0, y => 0.0],
[a => 1.0, b => 100.0],
ucons = [0.0])
Expand Down

0 comments on commit 623f986

Please sign in to comment.