How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Finite-horizon shooting and Runge–Kutta collocation transcription
Definition
Inputs. Supply pointwise smooth data on from Finite-horizon ODE optimal-control transcription data, an original mesh, a piecewise-constant control parameterization, an explicit tableau from Explicit Runge–Kutta tableaus, stage maps, and failure status or a possibly implicit tableau from Runge–Kutta tableaux and stage collocation equations, one of single-shooting, multiple-shooting, or collocation mode, a finite smooth representation of the control constraints when a solver-ready NLP is requested, finite sets of declared path-constraint times, endpoint constraints, the tableau quadrature rule, an initial decision vector and multiplier vector , a stage residual tolerance , a quadrature error tolerance , a stage Newton correction cap , and a maximum number of mesh nodes. For the direct linear-stage branch, optionally supply exact pointwise coefficient maps and satisfying at every queried stage input; only this explicit representation enables that branch. Supply a deterministic derivative evaluator for the actual returned stage maps and resulting finite NLP on an open neighborhood of the queried candidate. On a locally fixed strict stopping branch of the finite stage-iteration procedure, differentiate that finite graph, including when the residual happens to be exactly zero at the queried point. Implicit differentiation as in Implicit differentiation and adjoint formulas under a nonsingular residual Jacobian is permitted only when the selected returned stage map is certified to agree on that neighborhood with the exact local solution branch and its residual Jacobian is nonsingular there; an exact residual at the queried point alone does not establish this agreement. Return derivative-failure when no derivative of the actual returned map is available. Supply a quadrature error evaluator which returns a certified upper bound for the objective quadrature discrepancy or unavailable. Each supplied evaluator returns a value or failure in finite time. An optional trajectory-estimation request supplies the inputs of Finite-budget adaptive Runge–Kutta controller.
Mesh and constraints. Check that the original mesh satisfies and that all declared constraint and quadrature times lie in ; if either check fails, return mesh-domain-failure without evaluation. If the original node count exceeds the supplied cap, return mesh-budget-exhausted. Insert every declared path-constraint time not already a node, unless this exceeds the node cap, in which case return mesh-budget-exhausted. Tie each inserted subcell's control to its original containing cell, so the parameterization is unchanged. On the resulting mesh, check all stage times lie in before querying or ; an invalid time returns mesh-domain-failure with no evaluation. Each tableau stage and its quadrature contribution use the control of that cell, as in the stage equations below. At a declared path- or endpoint-constraint time that is a mesh node before , use the right-hand original-cell value from the half-open representative in Time meshes and piecewise-constant control parameterization; at , use the last original-cell control value unless a separate endpoint-control variable is supplied. Use the same convention at separately declared non-stage quadrature times. An endpoint constraint is evaluated at its declared endpoint. This is finite sampling and does not assert continuous-path feasibility.
Stage evaluation. On each cell write and for its tied constant control. Before forming any stages, check and ; a failed check returns stage-domain-failure with the cell and no objective candidate. For an explicit tableau, form the stages recursively by the displayed equations. Before each query of or , check that the time is in , the state lies in , and the control lies in ; a failed membership check returns stage-domain-failure, and an unavailable function value returns stage-evaluation-failure with the cell and stage index. Apply the same checks to every declared path-constraint evaluation.
For an implicit tableau, do not leave the collocation stages as outer NLP decision variables. Form the coupled slope residual
With the stage times fixed and already checked in , its open evaluation domain consists of stage vectors for which every induced stage state lies in and the cell control lies in ; require to be on this domain. A compact tube used for bounds does not replace this open evaluation domain. If exact coefficient maps were supplied and satisfy at every queried stage input, form the finite matrix with blocks and right-hand side . Use exact Gaussian elimination on the stored sample coefficients: scan columns left to right, pivot on the first nonzero entry at or below the current row, swap, eliminate below, and back-substitute. If no pivot is available, return singular-stage-matrix; otherwise form every induced stage state and check every stage time-state-control input belongs to the smooth-data tube. A failed domain check returns stage-domain-failure with the failing cell and stage index, the partial result record, and no objective candidate. If all checks pass, the exact solution of is the stage vector and the nonlinear-solve status is exact-linear-stage-solve. In all other smooth cases, form the deterministic initial guess after checking that this query is defined. Before calling Newton, check that the entire seed belongs to the declared open domain of , equivalently that every induced stage state lies in and every required control lies in . If this check fails, return stage-domain-failure with the failing cell and stage index, the partial result record, and no objective candidate. Otherwise call Finite-budget Newton for a square vector residual on with that open evaluation domain, tolerance and cap . Record its iterate, residual vector, and exact status for each cell. Only root supplies a stage candidate; it means , not an exact root unless . Any other status returns the partial result record with nlp_status=stage-solve-failure, the failing cell, and no objective candidate. On a returned stage vector use and . A singular stage Jacobian or failed stage query is reported, not interpreted as lack of an exact solution.
Transcription modes. In single shooting, the decision variables are the original-cell controls; set and recursively compute . In multiple shooting, the decision variables are node states and controls; fix and impose the continuity equalities for . In collocation mode, use the same node/control variables, impose the same continuity equalities , and use solved internal stage states; the collocation equations are solved internally by the implicit-stage procedure above. Explicit stages are likewise internal deterministic evaluations. After every interval map in every mode, check before using it as a later start or evaluating a path constraint, terminal cost, or endpoint constraint; otherwise return stage-domain-failure with no objective candidate. Independently of the computed endpoints and defect residuals, check before evaluating or any terminal constraint; in multiple shooting and collocation this node is an independent decision variable even when . Before any endpoint-constraint query, also check every actual state and control argument, including a separately supplied endpoint-control variable, belongs to that function's declared domain. Any failed membership check returns stage-domain-failure with no objective candidate. In every mode the finite feasible set includes for each original cell. The finite objective is , and the finite constraints are exactly the fixed initial-state condition, the continuity equalities in multiple shooting and collocation, the declared node/time constraints, the represented control constraints, and endpoint constraints. Include every continuity defect in the equality residual and its corresponding multiplier in ; in single shooting the initial state and continuity are enforced by recursive elimination. If is available only as a compact set-membership constraint and has no finite smooth representation, return the finite set-constrained model with nlp_status=not-smooth-nlp; the dispatcher must not treat it as an SQP-ready NLP. A QP solver route additionally requires the sampled control constraints to be affine.
Output. Evaluate the supplied initial candidate and return a record containing its ordered decision variables, defect residuals, per-cell implicit-stage residuals, path/endpoint constraint residuals, KKT residuals, and objective value, when available. For equality residual , inequality residual , and multiplier pair , report , , , and . Include a model that can reevaluate these quantities at a later solver candidate. Return separate nlp_status, per-cell implicit_stage_status, optional ivp_status, quadrature_status, mesh_status, and budget_status fields. A quadrature bound at most is bound-met; a larger bound is bound-not-met; an unavailable bound is unavailable. The build-stage budget field is not-run; the solver dispatcher fills its final value. A failed derivative evaluation leaves KKT residuals unavailable with its exact status. An unevaluated optional IVP estimate is not-requested; if requested, report the adaptive controller's exact finite status, not an error certificate.
This direct transcription samples pointwise data; an equivalence class without a chosen representative and sampling rule is not stage-evaluable. For a single-shooting reduced objective represented as the finite state-step graph of Finite parameterized state-step graphs and objectives, its exact real-arithmetic reduced gradient is given by The reverse recursion is the exact gradient of a finite state-step objective. Agreement with the continuous ODE adjoint gradient is only conditional on the weighted discrete-gradient representation and the separate state, adjoint, derivative-data, endpoint, and quadrature estimates in Discrete and continuous ODE gradients agree to order p under augmented error bounds. The optional adaptive RK estimate is separate from the fixed NLP and its embedded difference is not a certified global error bound. If all construction, stage, sample-domain and objective checks succeed, return nlp_status=constructed for a solver-ready NLP, or nlp_status=not-smooth-nlp for a finite set-constrained model without a smooth control representation; set mesh_status=valid and retain budget_status=not-run. The algorithm makes no continuous-path feasibility, convergence-rate, global-optimality, or unconditioned discrete-adjoint accuracy claim.
Depends on
- Finite-horizon ODE optimal-control transcription data
- Time meshes and piecewise-constant control parameterization
- Explicit Runge–Kutta tableaus, stage maps, and failure status
- Runge–Kutta tableaux and stage collocation equations
- Finite-budget Newton for a square vector residual
- Implicit differentiation and adjoint formulas under a nonsingular residual Jacobian
- Finite-budget adaptive Runge–Kutta controller
- The bounded adaptive Runge–Kutta controller terminates
- Inequality constrained programs, tangent cones, constraint qualifications, and KKT
- Finite parameterized state-step graphs and objectives
- The reverse recursion is the exact gradient of a finite state-step objective
- Discrete and continuous ODE gradients agree to order p under augmented error bounds
Used by
- Finite-budget barrier or SQP solve for a transcription NLP Algorithm
- A chemical-dosing model under a constant admissible dose Example
- Two-interval single and multiple shooting for x-prime equals u Example
- A linear-quadratic transcription with affine constraints is a convex QP Lemma
- Exact single and multiple shooting have the same reduced feasible controls Lemma
- Exact-Hessian SQP converges locally to a regular transcription KKT point Theorem
- Mesh-consistent LQR minimizers converge to the unique continuous minimizer Theorem
- Strong convexity converts transcription objective error into a control bound Theorem
Dependency tree · two levels
36 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- S. Gros and M. Diehl, Numerical Optimal Control, draft course manuscript, Chapter 13 §§13.1–13.4 (standard reference, not scraped)
- W. W. Hager, Runge-Kutta methods in optimal control and the transformed adjoint system, Numerische Mathematik 87 (2000) (standard reference, not scraped)