{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "ENA9XD5B77"
    },
    {
      "field": "uses",
      "target": "MW198BJJNK"
    },
    {
      "field": "uses",
      "target": "P0XFYRE9P2"
    },
    {
      "field": "uses",
      "target": "SVXBKKB3T4"
    }
  ],
  "body": "\n## Summary\n\nThe Hamiltonian of an optimal control problem is a function that combines the dynamics and the running cost with a vector of multipliers, the costate.\nIt has the form $H = p \\cdot f - \\lambda_0 L$, or $H = L + p \\cdot f$ in the sign convention of the minimum principle.\n[[Pontryagin's maximum principle|7RPV2T29CF]] says that an optimal control maximizes the Hamiltonian at almost every time.\nIt plays the role that the Hamiltonian of [[Hamiltonian systems|0EDKGA2FAK]] plays in mechanics.\n\n## Explanations\n\n### L1 human\n\nThe Hamiltonian is a bookkeeping device that weighs the immediate cost of a control against its effect on the future.\nThe costate $p$ acts as a price for each unit of change in the state.\nA control is good at an instant if it gives a high value of \"price times rate of change minus cost\".\nFor example, for $x' = u$ with cost $\\int u^2/2 \\, dt$, the Hamiltonian is $H = p u - u^2/2$, which is largest at $u = p$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "49K15",
      "93C15"
    ],
    "name": "Hamiltonian of an optimal control problem",
    "same_as": {
      "wikidata": "Q5645293",
      "wikipedia": "Hamiltonian (control theory)"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Hamiltonian_(control_theory)"
      }
    ],
    "tag": "RACVWG5QTK"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/RACVWG5QTK/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/RACVWG5QTK.md",
  "msc": [
    "49K15",
    "93C15"
  ],
  "name": "Hamiltonian of an optimal control problem",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/RAC/RACVWG5QTK.md",
  "status": null,
  "tag": "RACVWG5QTK",
  "uri": "m2://RACVWG5QTK",
  "url": "https://tamnd.github.io/math2/wiki/hamiltonian-of-an-optimal-control-problem/",
  "writing": {
    "tag": "RACVWG5QTK",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
