Skip to content

Support expressions in routing constraints - #93

Open
willbryant wants to merge 3 commits into
ankane:masterfrom
willbryant:solver_constraints
Open

willbryant wants to merge 3 commits into
ankane:masterfrom
willbryant:solver_constraints

Conversation

@willbryant

Copy link
Copy Markdown
Contributor

This supports all the expressions that can be represented using Expression, which in turn supports Comparison.

Test coverage includes:

  • IntVar + IntVar
  • IntVar - IntVar
  • IntVar + const
  • IntVar - const
  • sum(IntVar[])
  • IntVar + IntVar + const
  • IntVar*IntVar
  • IntVar*const
  • const*IntVar
  • -IntVar

Builds on #92. Simpler at runtime if #91 goes in, though I think I have it working OK without.

This supports all the expressions that can be represented using Expression, which in turn supports Comparison.

Test coverage includes:
* IntVar + IntVar
* IntVar - IntVar
* IntVar + const
* IntVar - const
* sum(IntVar[])
* IntVar + IntVar + const
* IntVar*IntVar
* IntVar*const
* const*IntVar
* -IntVar
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