{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "BV6HGA075P"
    },
    {
      "field": "uses",
      "target": "F64JX05VJX"
    },
    {
      "field": "uses",
      "target": "KREYT31SS1"
    },
    {
      "field": "uses",
      "target": "T5BEKMG5W8"
    },
    {
      "field": "about",
      "target": "KREYT31SS1"
    },
    {
      "field": "about",
      "target": "T5BEKMG5W8"
    }
  ],
  "body": "\n## Summary\n\nThe value function of an optimal control problem gives the optimal cost as a function of the initial time and the initial state.\nIt is the central object of dynamic programming: it satisfies the [[Hamilton–Jacobi–Bellman equation|SJP9HW82VX]], in the [[viscosity|H1ERJ3T75T]] sense when it is not smooth.\nIts gradient, where it exists, is the costate of [[Pontryagin's maximum principle|7RPV2T29CF]] up to sign.\nIn economics the same notion appears as the indirect utility or the optimal value of a maximization problem.\n\n## Explanations\n\n### L1 human\n\nImagine a map that shows, at each place and each time, the least cost to finish a journey from there.\nThat map is the value function.\nIf you know it, you can always choose the move that leads to the cheapest remaining cost.\nFor example, if you can walk at speed at most $1$ and pay the distance to the origin that is left at time $T$, the value at $(t, x)$ is $\\max(\\abs{x} - (T - t), 0)$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "49L20",
      "49L12",
      "93E20"
    ],
    "name": "Value function",
    "same_as": {
      "wikidata": "Q65929180",
      "wikipedia": "Value function"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Value_function"
      }
    ],
    "tag": "K6G0DRQ3CP"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/K6G0DRQ3CP/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/K6G0DRQ3CP.md",
  "msc": [
    "49L20",
    "49L12",
    "93E20"
  ],
  "name": "Value function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/K6G/K6G0DRQ3CP.md",
  "status": null,
  "tag": "K6G0DRQ3CP",
  "uri": "m2://K6G0DRQ3CP",
  "url": "https://tamnd.github.io/math2/wiki/value-function/",
  "writing": {
    "tag": "K6G0DRQ3CP",
    "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
      }
    ]
  }
}
