Replies: 2 comments
-
Use |
Beta Was this translation helpful? Give feedback.
-
Dear @kecbh, I'm currently working on implementing an integral constraint to normalize the output of a neural network, specifically using the following condition: (\int_{0}^{\infty} |r^2| , dr = 1) To achieve this, I need to incorporate the integral constraint into the training process (deepxde). I noticed from your earlier query that you were exploring a similar approach. I wanted to reach out and ask if you’ve found a solution or workaround for implementing this constraint effectively. I don't think the functionality of operatorBC helps in adding integral constraint in the implementation. Any insights or suggestions you can share would be greatly appreciated. Best Regards, |
Beta Was this translation helpful? Give feedback.
-
The question is -u''=λu, λ is 1, and 0<x<pi, and u(0)=u(pi)=0.\int_0^{\pi} u(x)dx=\pi,I want to implement integral constraints, and there is currently no solution instability for integral constraint training.
Code as follow,
I want to know how to add integral constraints to the code to guarantee the stability of the solution. I know you can use
model.compile,
but how do I do that? I don't know how deepxde is implemented.Beta Was this translation helpful? Give feedback.
All reactions