Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support integer optimization? #54

Open
oxinabox opened this issue Nov 19, 2020 · 1 comment
Open

Support integer optimization? #54

oxinabox opened this issue Nov 19, 2020 · 1 comment

Comments

@oxinabox
Copy link

It seems to me like IntervalOptimization would be well suited optimization problems where the variables are constrained to be integers.
AIUI, nothing fundermental about the algorithm means it should not work on integers.
And Integer Optimization is already very expensive so the fact that Interval Optimization is expensive is less of a problem.

one problem is the package is currently hardcoded to use mid and bisect with the default α to perform the bisection.
The choice of α doesn't AIUI effect the correctness of the algorithm.
But the current method does give non-integer values.

@dpsanders
Copy link
Member

Can you give an example of kind of problems you're talking about?

I have solved integer problems using an integerize contractor:

function integerize(X::Interval)
    a = ceil(X.lo)
    b = floor(X.hi)
    
    if a > b
        return emptyinterval(X)
    end

    return Interval(a, b)
end 

Basically after each bisection you apply integerize. After bisecting enough times you're left with just integers.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants