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

C(constraint, X) should return C(X) #171

Open
dpsanders opened this issue Nov 4, 2020 · 3 comments
Open

C(constraint, X) should return C(X) #171

dpsanders opened this issue Nov 4, 2020 · 3 comments

Comments

@dpsanders
Copy link
Member

Currently C(constraint, X) only returns the contracted box.
But it calculates C.forward(X), i.e. the forward image under the function, as the first part of the process.

Given that it calculates this and this info is useful, it should return it.

@dpsanders
Copy link
Member Author

(This would be a breaking change since code currently expects only one item to be returned, not two.)

@cvanaret
Copy link

Hi David,

I was about to post the same comment.
It would be great to get the interval image of the function, so that we know:

  • if the constraint was already satisfied
  • therefore, if the contractor should be called in later iterations
    We can of course evaluate the function itself, but then we perform 2 evaluations. Based on your second message, I gather that this feature is not planned?
    Best,

Charlie

@dpsanders
Copy link
Member Author

I'm planning to return C(X) in the new version of the package!

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

No branches or pull requests

2 participants