cubic_interp.m

From Spinach Documentation Wiki
Revision as of 05:41, 30 August 2026 by Kuprov (talk | contribs) (sync with Spinach main f053e432: Parameters block per head header line structure; stray Returns block moved into Outputs; placeholder Outputs line replaced; author link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Finds the extremum of a cubic interpolant built from function values and directional derivatives at two points and returns the best point inside the interpolation interval.

Syntax

      [alpha,fx]=cubic_interp(end_A,end_B,alpha_A,alpha_B,...
                              f_A,dir_deriv_A,f_B,dir_deriv_B)

Parameters

   end_a      - first interpolation boundary in alpha space

   end_b      - second interpolation boundary in alpha space

   alpha_a    - first interpolation anchor point

   alpha_b    - second interpolation anchor point

   f_a        - function value at alpha_a

   dir_der_a  - directional derivative at alpha_a

   f_b        - function value at alpha_b

   dir_der_b  - directional derivative at alpha_b

Outputs

   alpha      - selected maximiser of the cubic model

   fx         - cubic model value at alpha

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also

bracketing.m, sectioning.m, alpha_conds.m, fmaxnewton.m, bfgs.m, aux_mat.m, dirdiff.m, drifts.m, ensemble.m, hess_reorder.m, objeval.m, optimcon.m, trapdiff.m, Optimal_control_module

Version 2.11, authors: David Goodwin, Ilya Kuprov