fminsearch with integer parameters
Mostrar comentarios más antiguos
Hi, i have problem with fminsearch. One of the parameters is the point on the grid.
When i use fminsearch, the points can get non-integer- not lying on the grid, and then other procedures in the code do not work. When i round my parameter, fminsearch does not work, but just oscillates near some values at some point.
What can be a solution?
Thanks.
Respuestas (1)
John D'Errico
el 2 de Mayo de 2014
0 votos
Sorry, but fminsearch is simply not an integer tool. You cannot use it for this problem. Rounding the parameter inside your objective function will NOT produce a solution. But I guess you found that out yourself.
You need to use a tool designed for integer problems, or mixed integer, if some of your parameters are continuous. Look on the file exchange.
1 comentario
Nathalie
el 6 de Mayo de 2014
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!