ERROR: MethodError: no method matching PhysicsInformedNN(::Float64)

using Flux, DiffEqFluxModeling,ToolkitDiffEqBase, Plots, NeuralPDETest

Example 1, 1D ode

1D ODE

eq = Dt(u(t,θ)) ~ t^3 + 2t + (t^2)((1+3*(t^2))/(1+t+(t^3))) - u(t,θ)(t + ((1+3(t^2))/(1+t+t^3)))

Boundary conditions

bcs = [u(0.) ~ 1.0 , u(1.) ~ 1.202]

Space and time domains

domains = [t ∈ IntervalDomain(0.0,1.0)]

Discretization

dx = 0.1
discretization = PhysicsInformedNN(dx)
ERROR: MethodError: no method matching PhysicsInformedNN(::Float64)
Closest candidates are:
PhysicsInformedNN(::Any, ::Any) at C:\Us\YanWei.julia\packages\NeuralPDE\7SDF6\src\pinns_pde_solve.jl:25
PhysicsInformedNN(::Any, ::Any, ::Any; _phi, autodiff, _derivative, strategy, kwargs…) at
[1] top-level scope at REPL[78]:1

How can I solve this problem?
thanks

You need the second input, the description of your network: https://neuralpde.sciml.ai/dev/examples/ode/

1 Like