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

Bridge from complement to nonlinear #2589

Open
blegat opened this issue Dec 5, 2024 · 1 comment · May be fixed by #2591
Open

Bridge from complement to nonlinear #2589

blegat opened this issue Dec 5, 2024 · 1 comment · May be fixed by #2591

Comments

@blegat
Copy link
Member

blegat commented Dec 5, 2024

We discussed this with @frapac this week. Given 0 <= f ⟂ g >= 0, there are two possibilities: add a constraint that the product is zero or add one that the product is nonpositive. According to @frapac , the latter is more appropriate if the solver is interior point. So it's unclear which one should be added by default but we can start by creating a bridge (probably parametrized by a Bool indicating which approach is employed).

@odow
Copy link
Member

odow commented Dec 5, 2024

Note that we actually model F(x) ⟂ l <= x <= u.

See

Rather than the w' (x - l) <= 0 type constraint, we should add a disaggregated [i in 1:n], w[i] * (x[i] - l[i]) <= 0

Something like this:

F(x) perp l <= x <= u

y == F(x)
if isfinite(l) && isfinite(u)
    (x - l) * y <= 0
    (x - u) * y <= 0
elseif isfinite(l)
    (x - l) * y <= 0
    y >= 0
elseif isfinite(u)
    (x - u) * y <= 0
    y <= 0
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants