aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2012-04-09 18:36:13 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2012-04-09 18:36:13 +0000
commit7aef93d10efbbf8b4a87f9ea0386c4ccc658708d (patch)
tree6bfb0d519db1d0bb43e70ab1c75b2990f2276d47
parentead43a943036a41b306dbfc5fcd5341fb58bdba8 (diff)
downloadopt-utilities-7aef93d10efbbf8b4a87f9ea0386c4ccc658708d.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@236 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--methods/conjugate_gradient/conjugate_gradient.hpp8
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;
}