Skip to content

Conversation

@lbutler
Copy link

@lbutler lbutler commented Aug 10, 2025

Adds support for named variables and arithmetic expressions within EPANET's [RULES] section to enhance rule definition flexibility.

This PR integrates a math expression engine and extends EPANET's parsing and evaluation logic to allow users to define VARIABLEs based on model attributes and EXPRESSIONs using arithmetic operations on these variables. These new constructs can then be used in IF/AND/OR clauses within the rules, providing more powerful and dynamic control over the network simulation.


Open in Cursor Open in Web

Co-authored-by: lukepbutler <lukepbutler@gmail.com>
@cursor
Copy link

cursor bot commented Aug 10, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

…d variables and arithmetic expressions support for review in PR
@lbutler lbutler marked this pull request as ready for review August 10, 2025 03:06
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