Let’s say you’re randomly throwing darts at some range of parameter values, i.e.
a in linspace(0,1)
b from [15,20,40]
some_flag = [true,false]
However the black-box function you put all this into can take orders of magnitude longer for some configuration of variables:
If you know
O(seconds-to-mins), is there a simple way to limit the amount of time one instance of
foo can take?
# run foo for 30 seconds or terminate @quickrun foo(a,b,...,someflag) 30