A question about downhill simplex method in multidimensions


wangyg
10-27-2004, 03:25 AM
How to input the initial parameters? In another words, how to input the element of the matrix p(1:ndim+1,1:ndim)? Please gvie me an example for ndim=2.

thanks :confused:

lionchong
10-10-2005, 02:34 PM
seems that u're working in matlab. i don't know whether i get ur question correctly, if ndim = 2, the matrix is a 3x2 matrix and u can input as

M = [a1, a2; a3, a4; a5, a6];

notice the using of comma and semicolon. this is a basic matlab problem and u'd better have a look at the help