Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improvements of IntVar Views #564

Open
2 tasks
arnaud-m opened this issue Oct 31, 2017 · 0 comments
Open
2 tasks

Improvements of IntVar Views #564

arnaud-m opened this issue Oct 31, 2017 · 0 comments

Comments

@arnaud-m
Copy link
Contributor

arnaud-m commented Oct 31, 2017

Let x be a integer variable. The following views are available:

  • scale view: s(x) = a*x (a >= -1)
  • minus view: m(x) = -x
  • offset view: t(x) = x + b

Here are two natural improvements

  • extend the scale view for any a.
  • propose an affine view: f(x) = a*x + b

Experienced with choco-solver-{4.0.6}

cprudhom added a commit that referenced this issue Dec 14, 2017
cprudhom added a commit that referenced this issue Oct 11, 2023
cprudhom added a commit that referenced this issue Oct 13, 2023
* Create IntAffineView (#564)
* Define default behavior for some IntVar's methods
* Remove IntMinusView.java, IntOffsetView.java and IntScaleView.java
* Add shorter-name method for int views (with names close to the ones in expressions)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants