Skip to content

Commit 278698b

Browse files
committed
docs(fix): set a u0 within the constraint for the optimization problem
1 parent 6ac545d commit 278698b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorials/optimization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ cons = [
6969
x^2 + y^2 ≲ 1,
7070
]
7171
@named sys = OptimizationSystem(loss, [x, y], [a, b], constraints = cons)
72-
u0 = [x => 1.0
73-
y => 2.0]
72+
u0 = [x => 0.14
73+
y => 0.14]
7474
prob = OptimizationProblem(sys, u0, grad = true, hess = true, cons_j = true, cons_h = true)
7575
solve(prob, IPNewton())
7676
```

0 commit comments

Comments
 (0)