How to use this calculator
Choose a bounded local optimization step along the dogleg path between steepest descent and the Newton step.
- Enter Positive definite Hessian, Gradient, Trust region radius. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Two dimensional dogleg trust region step explained
How the calculation works
pU=−(gᵀg)/(gᵀHg)g and pN=−H⁻¹g; intersect their two-segment path with ||p||₂≤Δ.
A small radius gives a boundary steepest-descent step; a large radius permits the complete Newton step. Intermediate radii intersect the segment joining those points.
Set up the calculation
hessian— Positive definite Hessian- Four row-major components of a symmetric local curvature matrix. Use comma-separated values in the stated order.
g— Gradient- Gradient of the local objective model. Use comma-separated values in the stated order.
radius— Trust region radius- Maximum Euclidean step length.
Limits of this model
Positive definite two-dimensional model only. This implementation requires a nonzero gradient because the Cauchy point formula divides by gᵀHg; an exact stationary point has a zero step and is not evaluated here. The radius must be updated by an external algorithm using actual versus predicted improvement.
Check this example
Positive definite Hessian = [4, 1, 1, 2]; Gradient = [2, 1]; Trust region radius = 0.5.
- First dogleg step coordinate: -0.447214 parameter units
- Second dogleg step coordinate: -0.223607 parameter units
- Predicted model reduction: 0.568034 objective units
For Hessian (4,1;1,2), gradient (2,1) and radius 0.5, the unconstrained Newton step is slightly too long, so the dogleg intersects the trust-region boundary.
Reading the outputs
Two step coordinates and the local quadratic model decrease are reported.
Frequently asked questions
Is dogleg the exact constrained quadratic solution?
Usually not. It is an inexpensive path-based approximation.
Why require positive curvature?
The Cauchy and Newton dogleg construction here assumes a convex local model.
Does the radius limit each coordinate separately?
No. It limits the Euclidean length of the whole step.
How do I use the Two dimensional dogleg trust region step calculator?
Enter Positive definite Hessian, Gradient, Trust region radius. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Two dimensional dogleg trust region step?
Positive definite Hessian = [4, 1, 1, 2]; Gradient = [2, 1]; Trust region radius = 0.5. First dogleg step coordinate: -0.447214 parameter units Second dogleg step coordinate: -0.223607 parameter units Predicted model reduction: 0.568034 objective units For Hessian (4,1;1,2), gradient (2,1) and radius 0.5, the unconstrained Newton step is slightly too long, so the dogleg intersects the trust-region boundary.
Background or definition reference: Boyd and Vandenberghe Convex Optimization.
Read our calculation methodology.