Skip to content

Conversation

@AntoniaBerger
Copy link
Collaborator

@AntoniaBerger AntoniaBerger commented Jan 16, 2026

This pull request updates the parameter handling for channel cross sections and adds parameter registration in both the LangumirExchangeBase and LinearExchangeBase classes.
The changes ensure that channel cross sections are treated as differentiable parameters (active) and enables sensitivities for this parameter.
The sensitivity path model.root.input.sensitivity.param_001.sens_partype accounts for the channel dependencies.

Fixes #536

- Linear and Langmuir exchange are changed
Copy link
Contributor

@jbreue16 jbreue16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, maybe @hannahlanzrath can test this, didn't you have a test case?

@jbreue16 jbreue16 added the bug label Jan 16, 2026
@AntoniaBerger
Copy link
Collaborator Author

I have run the file @hannahlanzrath send me.
The sensitivies are close to zero (not equal) for the channel_cross_section_arear of the first channel. Which makes sense in my mind.

@hannahlanzrath
Copy link
Collaborator

I can test this in an optimization next week if that helps :)

Copy link
Contributor

@jbreue16 jbreue16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have run the file @hannahlanzrath send me. The sensitivies are close to zero (not equal) for the channel_cross_section_arear of the first channel. Which makes sense in my mind.

Ok I think thats good enough

I can test this in an optimization next week if that helps :)

That'd still be appreciated

@jbreue16 jbreue16 merged commit b2b8fdb into master Jan 16, 2026
4 checks passed
@jbreue16 jbreue16 deleted the fix/sens_channel_cross_section_areas branch January 16, 2026 19:31
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2026
@jbreue16 jbreue16 changed the title Add read and registration function for missing parameters Fix MCT sensitivities for CHANNEL_CROSS_SECTION_AREAS Jan 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sensitivities are not calculated for 'CHANNEL_CROSS_SECTION_AREAS' in MCT

4 participants