NeuralPDE.jl icon indicating copy to clipboard operation
NeuralPDE.jl copied to clipboard

Support compound expressions for integrand

Open KirillZubov opened this issue 2 years ago • 2 comments

@parameters t
@variables i(..)
Di = Differential(t)
Ii = Integral(t in DomainSets.ClosedInterval(0, t))

it is only processing a simple expression with the variable of NN

Ii(i(t))

Need support compound expressions.

Ii(i(t)+1)
Ii(i(t)*exp(t))

KirillZubov avatar Sep 23 '21 09:09 KirillZubov

I'll try to tackle this. Probably involves a change to _transform_expression and build_symbolic_loss_function. Will also think about how we can support compound expressions with two variables

@parameters t
@variables i(..) j(..)
Di = Differential(t)
Ii = Integral(t in DomainSets.ClosedInterval(0, t))

Ii(i(t)*j(t))

It might need some more restructuring for that.

killah-t-cell avatar Sep 28 '21 15:09 killah-t-cell

I think pde_system_transformation! in MOL handles this, I'll move it to base.

xtalax avatar Mar 27 '23 19:03 xtalax