Skip to content

Commit

Permalink
Merge pull request #69 from JuliaNLSolvers/pkm/nonlin
Browse files Browse the repository at this point in the history
Update nonlineareq.md
  • Loading branch information
pkofod authored Feb 3, 2024
2 parents 36f49e7 + 46020cd commit e2908ca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/src/nonlineareq.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Assume that you have a residual system that you want to solve. This means that i
```
function F(x)
x^2
end
function FJ(Jx, x)
x^2, 2x
end
end
prob_obj = NLSolvers.ScalarObjective(
f=F,
fg=FJ,
)
function FJ(Jx, x)
x^2, 2x
end
prob_obj = NLSolvers.ScalarObjective(
f=F,
fg=FJ,
)
prob = NEqProblem(prob_obj; inplace = false)
Expand Down Expand Up @@ -86,7 +86,7 @@ function F_jacobian_powell!(Fx, Jx, x)
Fx, Jx
end
prob_obj = VectorObjective(F=F_powell!, J=F_jacobian_powell!)
prob_obj = VectorObjective(F=F_powell!, FJ=F_jacobian_powell!)
prob = NEqProblem(prob_obj)
x0 = [-1.0, 0.0, 0.0]
Expand Down

0 comments on commit e2908ca

Please sign in to comment.