IntervalConstraintProgramming.jl icon indicating copy to clipboard operation
IntervalConstraintProgramming.jl copied to clipboard

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

Open dpsanders opened this issue 5 years ago • 3 comments

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 avatar Nov 04 '20 22:11 dpsanders

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

dpsanders avatar Nov 04 '20 22:11 dpsanders

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

cvanaret avatar Apr 10 '21 19:04 cvanaret

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

dpsanders avatar Apr 12 '21 00:04 dpsanders