howardzzhang

Results 5 comments of howardzzhang

Hi, Thanks, the code works fine with SPX, but with MILX, it returns me the following inexact error ``` ERROR: InexactError: Int64(12.310155117105213) Stacktrace: [1] Int64 @ .\float.jl:788 [inlined] [2] convert...

No, I have been using MIPM throughout. ``` optimizer = GA(; populationSize = npop, selection = tournament(5), crossover = MILX(), mutation = MIPM(lower,upper), mutationRate = 0.05, crossoverRate = 0.8 #epsilon...

This is definitely your code project and so I am not as familiar, but it seems to me that the error is appearing because you can't copy a float into...

Thanks. Exactly, but the paper states that "In order to ensure that, after **crossover** and mutation operations have been performed, the integer restrictions are satisfied, the following truncation procedure is...

I agree; just so we're on the same page, I think you're doing the truncation in `MIPM` already here https://github.com/wildart/Evolutionary.jl/blob/cf3f2fbf5e1be13d6f5db23eabe5dbfab4d5b688/src/mutations.jl#L238 but not in `MILX`! The opposite of what you just...