On 1/3/2013 3:31 PM, Allamarein wrote: > Thanks for your kind reply. > Perhaps I will try to use a genetic algorithm or a pattern search and, subsequently, fmincon. > Probably also a multistart algorithm could be useful. > > About this aspect, what are 'DiffMinChange', 'DiffMaxChange' and 'RelLineSrchBnd' for? Suit yourself, but you will likely find the genetic algorithm and pattern search solvers far slower and less accurate than fmincon.