Is that really all the backtrace you get from your error? My guess is you have a problem with your function definition. You may need `.<=` rather than `<=` (note the dot out front, just like .* in Matlab).
Anyway, to help more we'd need a more complete example. In your first post, most of the variables (at least Y,mu_y, sig_y, x_l, x_h, y_l, y_h) are undefined. --Tim On Tuesday, September 30, 2014 08:57:38 AM [email protected] wrote: > Hi Tim, > > thanks again for your detailed reply, I understood what was going wrong > now. > And another thank you for fixing the issue, after doing the Pkg.checkout > the optimization now works with integers as well. > However, I still can't get a result because I'm still getting the error > > alluded to above: > > optimize(f, 0, 2) > > `isless` has no method matching isless(::Array{Float64,1}, > ::Array{Float64,1}) while loading In[15], in expression starting on line 1 > > in <= at operators.jl:34 > > If I understand correctly, this means that two arrays are being passed to > the isless function, which doesn't support arrays. I figured out that > isless is contained in operators.jl, which in itself is part of the julia > base, so it's probably not a bug in the function here. How can I figure out > where the arrays being passed to isless are created? Sorry for bombarding > you with questions here, but my debugging skills in julia are pretty much > non-existant and I have to get used to the logic of the julia error > messages!
