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

MILX Operator not working with integer solutions #127

Open
ywang552 opened this issue Apr 7, 2024 · 0 comments
Open

MILX Operator not working with integer solutions #127

ywang552 opened this issue Apr 7, 2024 · 0 comments

Comments

@ywang552
Copy link

ywang552 commented Apr 7, 2024

Hi,

The format of a candidate solution is a vector of integers, say x = [x1, x2, x3, ...] where x1,..., x_n are integers.
I'm trying to optimize with MILX operator following the example [mixedint.jl] provided.

For variable size n <= 3, the optimization works, however, for n >3 the code generates the following errors:

InexactError: Int64(27.580148493398855)

But I set tc = fill(Int,dim), which should limit the solution to integers. One assumption is during the optimization process, we don't have valid solutions with better fitness, therefore causing the issue.

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

1 participant