Conjugate gradient optimizer

Conjugate gradient optimizer for the unconstrained optimization of functions of n variables.

You are now following this Submission

This function returns the vector x=[x1,...xn] that results in the minimum
objective function value for the given function. Inputs are the function
fcn, the initial x0, the gradient approximation method (1= central diff,
2=fwd. diff.), n for the golden section search, the convergence tolerance
epsilon, and the maximum number of iterations, nmax.
Note that the golden section search is very sensitive to n.

Cite As

Sean Wu (2026). Conjugate gradient optimizer (https://in.mathworks.com/matlabcentral/fileexchange/50141-conjugate-gradient-optimizer), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Included gradient approximation functions

1.0.0.0