Skip to content
Prev 45567 / 398498 Next

maxima

Z P wrote:
If you have function values as matrix, you may simply use:

which(z==max(z), arr.ind=TRUE)

or you can consider to use an optimization algorithm directly on your 
function, see ?optim or ?nlm.

Hope it helps

Thomas P.