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 2031ee9 commit 0c9bb99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/optimizationsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ 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,
[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],
Expand Down

0 comments on commit 0c9bb99

Please sign in to comment.