Skip to content

Partial Expression Evaluation #5

Answered by koehlma
RileyLRoberts asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Riley,

Thanks for considering Momba!

Full evaluation of expressions is already possible (for MDPs and PTAs and some other model types) as part of Momba’s explicit state space exploration engine. However, you seem to be interested in partial (or symbolical) evaluation without building the whole state space. Partial or symbolical evaluation are not currently implemented but could certainly and relatively easily be implemented and added to Momba. Do you just need to fold constants, or do you also want to apply some other, more sophisticated, simplification techniques?

I quickly threw together an example how constant folding could be done:

https://github.com/koehlma/momba/blob/main/exam…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@RileyLRoberts
Comment options

@koehlma
Comment options

Answer selected by koehlma
Comment options

You must be logged in to vote
0 replies
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