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

Discontinuous function optimisation #56

Open
mohamed82008 opened this issue Feb 2, 2021 · 4 comments
Open

Discontinuous function optimisation #56

mohamed82008 opened this issue Feb 2, 2021 · 4 comments

Comments

@mohamed82008
Copy link

Hi! Let me start by saying thanks for this great package! I tried the following discontinuous function optimisation where the optimal solution is on the edge of the discontinuous function. However, the output of minimise seems wrong:

using IntervalArithmetic, IntervalOptimisation

obj = x -> log(x) + (x >= 2 ? 0 : Inf)
minimise(obj, 1..10)
# ([1.69833, 1.69839], Interval{Float64}[[5.46484, 5.46535]])

Any idea if there is a way to fix this? If this works, constraints can be trivially modeled with this discontinuous approach.

@dpsanders
Copy link
Member

dpsanders commented Feb 2, 2021

Hi, I'm glad you like the package!

Unfortunately interval methods cannot handle functions with conditionals in, and handling constraints is indeed non-trivial (work in progress).

For discontinuous functions you can use the piecewise approach that I posted here:
https://discourse.julialang.org/t/latest-recommendations-for-global-optimization/17718/45

That would be good to add to IntervalArithmetic.jl.

@mohamed82008
Copy link
Author

Cool, thanks for the suggestion. Really excited for the constraint handling work. Is there a branch I can follow to learn more or is it still private?

@dpsanders
Copy link
Member

dpsanders commented Feb 2, 2021

There have been a couple of attempts and even PRs, but I think they've all been flawed.
Basically you need to integrate interval optimisation methods with IntervalConstraintProgramming.jl.

I showed that a bit at the end of this presentation:
https://www.youtube.com/watch?v=bcm4hKhEfNo

But it turns out to be harder than you would think, unfortunately. It's something we're, let's say, thinking about actively-ish ;)

@mohamed82008
Copy link
Author

I see. Thanks for the link. If this effort goes further, I would be happy to give it a spin then :)

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