minimization.rb now supports for multiple intervals. Computations not done with OpenCL