Thanks very much guys! I will post the entire module in github (maybe this weekend if I have time). It will be slow, but then you can help me :)
@Mauro The size of vars and f are fixed for each problem, thus I don't think it can be immutable. The dummy example is to find the Pareto frontier of f = [ x^2; (x-2)^2 ] given that -10 < x < 10 Thus, the size of f will be 2 and the size of vars will be 1.
