Skip to content

Commit

Permalink
fixup! docs: use BackTracking in BFGS for linear parabolic example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathvik Bhagavan committed Jan 16, 2024
1 parent 7a73616 commit df96f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/examples/ks.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where $\theta = t - x/2$ and with initial and boundary conditions:
We use physics-informed neural networks.

```@example ks
using NeuralPDE, Lux, ModelingToolkit, Optimization, OptimizationOptimJL
using NeuralPDE, Lux, ModelingToolkit, Optimization, OptimizationOptimJL, LineSearches
import ModelingToolkit: Interval, infimum, supremum
@parameters x, t
Expand Down Expand Up @@ -71,7 +71,7 @@ callback = function (p, l)
return false
end
opt = OptimizationOptimJL.BFGS()
opt = OptimizationOptimJL.LBFGS(linesearch = BackTracking())
res = Optimization.solve(prob, opt; callback = callback, maxiters = 2000)
phi = discretization.phi
```
Expand Down

0 comments on commit df96f3d

Please sign in to comment.