JuliaIntervals / IntervalConstraintProgramming.jl

Calculate rigorously the feasible region for a set of real-valued inequalities with Julia
Other
63 stars 16 forks source link

`integerize` contractor and integer solutions #187

Open dpsanders opened 3 years ago

dpsanders commented 3 years ago

Add an integerize contractor as in this code I wrote , discussed in this Discourse post

cvanaret commented 3 years ago

Great idea!

As I mentioned in an email, you can either:

begin (_c, _b, y) = minus_rev(_c, _b, y) (_b, _a, x) = plus_rev(_b, _a, x) x = integerize(x) (_a, x) = exp_rev(_a, x) x = integerize(x) end

for the constraint "exp(x) + x - y = 0" with x integer.