Define Constraints on ODE System Parameters #127
-
Hello, lets assume simple system with single input and single state
where the Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, this is possible. You can wrap model parameters or methods in the variable class and then create constraint for the PINN loss function. For simple constraints such as non-negative values or box constraints, you can use ReLU clamping For the future, this type of request is better suited for discussions rather than issues. |
Beta Was this translation helpful? Give feedback.
Yes, this is possible.
You can wrap model parameters or methods in the variable class and then create constraint for the PINN loss function.
See this example:
https://github.com/pnnl/neuromancer/blob/master/examples/ODEs/Part_7_DeepKoopman.py#L156
For simple constraints such as non-negative values or box constraints, you can use ReLU clamping
https://github.com/pnnl/neuromancer/blob/master/src/neuromancer/slim/linear.py#L242
or sigmoid scaling method
https://github.com/pnnl/neuromancer/blob/master/src/neuromancer/modules/blocks.py#L164
For the future, this type of request is better suited for discussions rather than issues.