Problem 485. Fletcher-Reeves Conjugate Gradient Method
something strange with test 2, my implementation fails on this test (because two iterations take me considerably closer to the minimum), perhaps this is something to do with the different forms of linesearch we are using?
Test case 2 is changed to account for your subsequent comment and to also to be far enough away from the solution so that it cannot converge in 2 iterations.
Test case 2 still have problems, I have implemented the Fletcher-Reeves Conjugate Gradient Method from 1964, and it got rejected at the 2nd test. I believe the problem is that you are requesting precision from the approximation of an approximation. And this can only be done when we are very close to the solution. Test 1 seems to have the right precision for 1 iteration.
Problem Recent Solvers21
"Low : High - Low : High - Turn around " -- Create a subindices vector
Composite Trapezoidal Rule for Numeric Integration
Remove entire row and column in the matrix containing the input values
More from this Author17
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!