Skip to content

Brianguenter/issue40#78

Merged
brianguenter merged 6 commits intomainfrom
brianguenter/issue40
Apr 25, 2024
Merged

Brianguenter/issue40#78
brianguenter merged 6 commits intomainfrom
brianguenter/issue40

Conversation

@brianguenter
Copy link
Owner

@brianguenter brianguenter commented Apr 25, 2024

This is a partial fix for #40 (comment).

Edges in the derivative graph which lead to constant nodes can cause incorrect reachability results in other edges in the graph. This causes an error of the form "there is more than 1 path from root i to variable j".

This fixes the bug by deleting edges to constant nodes upon derivative graph construction. These edges play no part in the derivative evaluation anyway so it is unnecessary to keep them.

More complex MWE's in the same issue trigger a different bug related to PR #66 (comment). This patch does not fix these problems.

Fixes #40

this is caused by an error in factor_order.
…nstants. These edges don't play a part in derivative computation but they lead to errors in reachability calculations.
…ics and the constant patch edge reachability bug
…change back when fix general problem of errors in reachability caused by factoring.
@brianguenter brianguenter merged commit 7e73d28 into main Apr 25, 2024
@brianguenter brianguenter deleted the brianguenter/issue40 branch April 25, 2024 17:48
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.

1 participant