September 3rd, 2009, 5:45 pm
Thanks. Let's take tene's benchmark. Quote1. Optimality. So, you got two optimal solutions! And then you do average them, don't you? The BS price is unique and your algorithm assumes otherwiseRight, got itNow I do the exercise on the 'real' solution 'u' but not on U and B at each time level:1. Compute U, V2. u = (U+V)/23. Check (u)4. U = u , V = u for next time level(remark: steps 2 and 3 is what you probably do in your 'LU step').Benchmark answer from tene was 3.0700463 For same steps as tene I get {2.89596, 3.051706, 3.08829, 3.098484, 3.079997, 3.064416}Since I use fits and ADE works best like k/h -> 0 uniformly (I use uniform meshes)100, 100, P = 3.004476200,200, P = 3.059068300,300, P = 3.070758400,400, P = 3.072222500, 500, P = 3.070198600,600, P = 3.070552700,7000, P = 3.0706833000, 4000, P = 3.070456Looks more even than first strategy. So, we wortk with correct BS at each time level.
Last edited by
Cuchulainn on September 2nd, 2009, 10:00 pm, edited 1 time in total.