Skip to content

Define Constraints on ODE System Parameters #127

Answered by drgona
cerkezoglu asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drgona
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #126 on November 17, 2023 16:35.