Dear Will,Thanks for the answer, I have tried couple of options, changing matlab functions for minimization, but range of results is kind of too large. For example volatility is in a range of 0,18-034 or something like that, and drift has even worse results. So, i tried the function for global minimum, asamin, range is smaller but still not what I was expecting - something like 0,23-0,24 (a small range). Actually I don't get it, if someone asks me, estimate volatility and drift using Longstaff&Schwartz, I run this code, come back and say " Sir, volatility is somewhere between 0,18-0,34 and drift 0,05-0,11" what is the point? What do they use this model for? Is it fast, so they use it when they have already estimated parameters through some other method?By the way,nice stuff and articles at
www.commoditymodels.com/:-) great job!