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

Fixes for transient variables in JANI #666

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

tquatmann
Copy link
Member

When building JANI models with rewards, we employ an optimization that lifts similar transient edge destination assignments to the edge, so that they only have to be evaluated once for a given edge (and not for each destination). This previously would yield incorrect rewards when the initial (default) value of a transient variable is not zero.

We make the decision when to apply the optimization more conservative to avoid such cases.

Also fixes a minor issue in a sanity check.

When building JANI models with rewards, we employ an optimization that lifts similar transient edge destination assignments to the edge, so that they only have to be evaluated once for a given edge (and not for each destination). This previously would yield incorrect rewards when the initial (default) value of a transient variable is not zero.

We make the decision when to apply the optimization more conservative to avoid such cases.

Also fixes a minor issue in a sanity check
@volkm
Copy link
Contributor

volkm commented Feb 6, 2025

LGTM. Thanks for fixing it so quickly.

Also incorporates the fix from #665.

@volkm volkm mentioned this pull request Feb 6, 2025
@volkm volkm merged commit 86fcf8f into moves-rwth:master Feb 6, 2025
14 checks passed
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.

2 participants