Skip to content

Commit 0c9bb99

Browse files
Update optimizationsystem.jl
1 parent 2031ee9 commit 0c9bb99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/optimizationsystem.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ end
298298
loss = (a - x)^2 + b * (y - x^2)^2
299299
@named sys = OptimizationSystem(loss, [x, y], [a, b], constraints = [x^2 + y^2 0.0])
300300
sys = complete(sys)
301+
OptimizationProblem(sys,
302+
[x => 0.0, y => 0.0],
303+
[a => 1.0, b => 100.0],
304+
lcons = [0.0])
301305
@test_throws ArgumentError OptimizationProblem(sys,
302306
[x => 0.0, y => 0.0],
303307
[a => 1.0, b => 100.0],

0 commit comments

Comments
 (0)