max-val-algos.md 524 B

##The problem

Find the maximum value of some function within a range. For the purposes of this problem, the function is f(X) where X = [x1, x2, ..., xn], its output is k, and each xi is in a range [ai, bi].

###Methodical algorithm

for all xi:
	set xi to rand(ai, bi)

for i in (i,n):
	vary xi in [ai, bi]:
		if f(X) > currmax:
			currmax = f(X)
			top = xi
	xi = top