1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Physics-Informed Neural Networks (PINN) for PDE solving.
//!
//! This module provides a PINN-based approach to solving partial differential equations.
//! PINNs encode physics (the PDE residual) directly into the neural network loss function,
//! enabling mesh-free solutions that can incorporate sparse observational data.
//!
//! # Overview
//!
//! - **`types`**: Configuration, boundary conditions, and result structures
//! - **`network`**: Feed-forward neural network with finite-difference derivatives
//! - **`solver`**: Training loop with Adam optimizer and collocation point generation
//! - **`problems`**: Pre-built residual functions for common PDEs (Laplace, Poisson, Heat, Burgers)
//!
//! # Example
//!
//! ```rust,ignore
//! use scirs2_integrate::pinn::{PINNSolver, PINNConfig, problems};
//!
//! let problem = problems::laplace_problem_2d((0.0, 1.0, 0.0, 1.0));
//! let config = PINNConfig::default();
//! let mut solver = PINNSolver::new(&problem, config).unwrap();
//! let result = solver.train(&problems::laplace_residual, &problem, None).unwrap();
//! ```
pub
pub
pub
pub
pub
pub use ;
pub use PINNNetwork;
pub use ;
pub use ;
pub use ;