Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify sparsity.jl #1349

Merged
merged 3 commits into from
Apr 4, 2024
Merged

Simplify sparsity.jl #1349

merged 3 commits into from
Apr 4, 2024

Conversation

SouthEndMusic
Copy link
Collaborator

Fixes #1317.

Obtaining the Jacobian takes a coarser (with some false positives) but easier to maintain approach. Special care must still be taken with e.g. continuous control concepts, where basins that are further apart (topologically) than 1 node can depend on each other. This does not fix all stability problems in the model by @harm-nomden-sweco, but achieves the same progress as before without the requirement sparse = false.

Copy link
Member

@visr visr left a comment

Choose a reason for hiding this comment

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

Nice code reduction!

core/src/sparsity.jl Show resolved Hide resolved
core/src/sparsity.jl Show resolved Hide resolved
@SouthEndMusic SouthEndMusic merged commit 7bb354f into main Apr 4, 2024
20 of 21 checks passed
@SouthEndMusic SouthEndMusic deleted the fix_sparsity_bug branch April 4, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify Jacobian sparsity construction
2 participants