diff options
Diffstat (limited to 'methods')
-rw-r--r-- | methods/conjugate_gradient/conjugate_gradient.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/methods/conjugate_gradient/conjugate_gradient.hpp b/methods/conjugate_gradient/conjugate_gradient.hpp index c22aac8..02ed3b6 100644 --- a/methods/conjugate_gradient/conjugate_gradient.hpp +++ b/methods/conjugate_gradient/conjugate_gradient.hpp @@ -200,6 +200,14 @@ namespace opt_utilities int iter=100; opt_eq(end_point,start_point); rT fret; +#if 0 + for(int i=0;i<get_size(start_point);++i) + { + array1d_type direction(start_point.size()); + direction[i]=1; + linmin(end_point,direction,fret,(*p_fo)); + } +#endif cg(end_point,threshold,iter,fret); return end_point; } |