You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notebook: Add TI-DeepONet DPC heat notebook example
Summary
Add a differentiable predictive control (DPC) notebook for the heat equation using a trained TI-DeepONet model within Neuromancer. Demonstrates end-to-end policy learning via long-horizon rollouts with differentiable physics.
Changes
examples/control/Part_7_TIDON_DPC_HEAT.ipynb adds a DPC example for PDE control based on TI-DeepONet, including problem setup, policy parameterization, rollout-based loss construction, and training using Neuromancer.
Context
Recreates the DPC framework for PDE control using TI-DeepONet (time-integrated Deep Operator Network), following the methodology in prior DPC literature and the reference implementation in PDEControl_DPC.
Uses a pretrained TI-DeepONet model from examples/neural_operators/Part_8_TIDON_HEAT.ipynb as a differentiable surrogate of the heat-equation dynamics.
The neural operator enables backpropagation through long rollouts, allowing gradients of the control objective with respect to policy parameters.
The objective is to learn a feedback control policy for a distributed parameter system using differentiable predictive control implemented in Neuromancer.
References
Sarkar, D. R., Drgoňa, J., & Goswami, S. (2025). Learning to Control PDEs with Differentiable Predictive Control and Time-Integrated Neural Operators. arXiv:2511.08992.
@Parv621 the examples also contain custom file paths: data_path = "/home/pk222/projects/PDEControl_DPC/datasets/heat_smooth_f_dataset.npz"
Please remove all unnecessary data loads, the notebooks should be self-contained.
If really necessary to load any sort of file, do it in a similar fashin we handle it in this notebook: neural DAEs
code example:
# Raw URL of area.dat
url = "https://raw.githubusercontent.com/pnnl/NeuralDAEs/master/training/area.dat"
# Download and save the file locally
response = requests.get(url)
with open("area.dat", "wb") as f:
f.write(response.content)
area_data = np.loadtxt('area.dat')
@Parv621 the examples also contain custom file paths: data_path = "/home/pk222/projects/PDEControl_DPC/datasets/heat_smooth_f_dataset.npz"
Please remove all unnecessary data loads, the notebooks should be self-contained. If really necessary to load any sort of file, do it in a similar fashin we handle it in this notebook: neural DAEs
code example:
# Raw URL of area.dat
url = "https://raw.githubusercontent.com/pnnl/NeuralDAEs/master/training/area.dat"
# Download and save the file locally
response = requests.get(url)
with open("area.dat", "wb") as f:
f.write(response.content)
area_data = np.loadtxt('area.dat')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notebook: Add TI-DeepONet DPC heat notebook example
Summary
Changes
examples/control/Part_7_TIDON_DPC_HEAT.ipynbadds a DPC example for PDE control based on TI-DeepONet, including problem setup, policy parameterization, rollout-based loss construction, and training using Neuromancer.Context
examples/neural_operators/Part_8_TIDON_HEAT.ipynbas a differentiable surrogate of the heat-equation dynamics.References
Testing