matbesancon / MathOptSetDistances.jl

Distances to sets for MathOptInterface
MIT License
24 stars 4 forks source link

Domains and inequality consistency #2

Open matbesancon opened 4 years ago

matbesancon commented 4 years ago

Suppose that you have a set defined as: x | x >= 0 & f(x) <= 0

with dom(f) = {x | x >= 0}, this implies f(x) cannot be computed if x >= 0. A first idea was to compute a distance as

if x < 0
    abs(x)
else
    max(f(x), 0)
end

This can result in consistency issues (still haven't formally written down how it appears)