timholy / QuadDIRECT.jl

Global optimization without derivatives
Other
51 stars 7 forks source link

Constrain solutions to integers? #20

Open IanButterworth opened 3 years ago

IanButterworth commented 3 years ago

Is there an existing way to constrain the sampling to integer positions? I have a domain that can't be sampled finer than integers.

I didn't see a convenient way to do so. I did wonder about scaling the domain down to eps steps, setting minwidth to eps, then scaling it back up but haven't got that working yet

timholy commented 3 years ago

Sorry for the delay. There isn't, currently. Do you have a lot of integers you need to try? If not, then just computing the objective for all seems sensible.

I have all these backburner projects to make this package a lot better, but they've never advanced beyond back-burner and are still a long ways from primetime. My JuliaCon poster was one small piece of that effort.