object
conjugate_gradient(Problem)
Problem- Problem object implementinglocal_optimization_problem_protocoland defininggradient/2.
Nonlinear conjugate-gradient local optimizer (Fletcher-Reeves and Polak-Ribière). Requires the problem to define gradient/2. Supports optional box constraints via projection, minimization and maximization, and periodic or automatic restarts.
logtalk_load(local_optimization(loader))static, context_switching_calls
Beta formulas: The
beta(fletcher_reeves)andbeta(polak_ribiere)options select the conjugacy coefficient. Polak-Ribière uses the standard non-negative truncationmax(Beta, 0).Restarts: The search direction is reset to steepest descent every
restart(N)iterations (default: dimension) and whenever the new direction is insufficiently downhill.Line search: Backtracking Armijo line search (same parameters as gradient descent).
Bounds: When the problem defines
position_bounds/1, trial points are projected onto the box after each step.
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)