)]}'
{
  "commit": "83098e12e8b2252797a6570ba340c181eeddbd07",
  "tree": "4952ba9060a66505b1d2c7ce98a225d8d7c864f8",
  "parents": [
    "df2d882540872a399bb1841798b57d6afdc96e7a"
  ],
  "author": {
    "name": "Sameer Agarwal",
    "email": "sameeragarwal@google.com",
    "time": "Fri Mar 02 17:19:42 2018 -0800"
  },
  "committer": {
    "name": "Sameer Agarwal",
    "email": "sameeragarwal@google.com",
    "time": "Tue Mar 06 19:12:14 2018 +0000"
  },
  "message": "Two changes to how we manage user\u0027s state.\n\n1. When Solver::Options::update_state_every_iteration \u003d true,\n   the StateUpdatingCallback only updates the state on a\n   successful iteration. This works fine but will not work\n   if the user provides an EvaluationCallback, because\n   every call to Evaluator::Evaluate will change the state\n   visible to the user. This means that on unsuccessful\n   iterations when the user\u0027s IterationCallback is called\n   the state visible to the user would be the last evaluation\n   which did not lead to an improved cost. This CL forces\n   the StateUpdatingCallback to unconditionally update\n   the user visible state.\n\n2. When the minimizer terminates, we update the user visible\n   state only if the solution is usable, otherwise the user\u0027s\n   state will remain the same. To maintain this invariant\n   we will now cache the user\u0027s state and make sure we\n   use it to reset it upon return if the solver is not\n   successful.\n\nChange-Id: Ic1f8fa6cb10d2753130ea752c70ff3d6b2f1462f\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "01ada06df7c13b7aca2f2d506315db978fe24b89",
      "old_mode": 33188,
      "old_path": "internal/ceres/callbacks.cc",
      "new_id": "84576e40e7d76bbfa6792880418076de14aa6493",
      "new_mode": 33188,
      "new_path": "internal/ceres/callbacks.cc"
    },
    {
      "type": "modify",
      "old_id": "016d8417ae5a281f0fd7b9f3bb334359a8123afa",
      "old_mode": 33188,
      "old_path": "internal/ceres/solver.cc",
      "new_id": "3de9c69d392ac1ecfac35f941ab59a5abc1ae533",
      "new_mode": 33188,
      "new_path": "internal/ceres/solver.cc"
    }
  ]
}
