{
  "parameters": {
    "gravity": 9.81,
    "length": 1.0,
    "period": 0.05,
    "u_max": 5.0,
    "theta_max": 0.35,
    "q": [
      10.0,
      1.0
    ],
    "r": 0.05
  },
  "A": [
    [
      1.0122875819811135,
      0.05020462576123477
    ],
    [
      0.49250737871771316,
      1.0122875819811135
    ]
  ],
  "B": [
    0.0012525567768719127,
    0.05020462576123478
  ],
  "P": [
    [
      153.7430424365972,
      27.183733918238083
    ],
    [
      27.183733918238083,
      9.195694336526337
    ]
  ],
  "K": [
    -23.69405732451959,
    -7.548251937576073
  ],
  "alpha": 4.018051904007806,
  "riccati_iteration_gap": 2.4442670110147446e-12,
  "lyapunov_decrease_worst": 1.7763568394002505e-15,
  "x0": [
    0.2,
    0.6
  ],
  "x0_P_x0": 15.98426779899051,
  "replanning": {
    "plant_length": 0.85,
    "tap_rate": 0.5,
    "tap_time": 1.0,
    "open_loop_leaves_limit_at": 0.8500000000000001,
    "replanned_max_angle": 0.2808360838323083,
    "replanned_all_feasible": true,
    "replanned_max_command": 4.999999999914775
  },
  "horizon": {
    "1": {
      "first_infeasible_step": 3,
      "final_angle": 10070.055614584668,
      "cost": null
    },
    "3": {
      "first_infeasible_step": 3,
      "final_angle": 0.34099678088532687,
      "cost": null
    },
    "5": {
      "first_infeasible_step": null,
      "final_angle": 0.3176211557147898,
      "cost": 121.36634830212114
    },
    "10": {
      "first_infeasible_step": null,
      "final_angle": 0.00025386376100389874,
      "cost": 20.829015773171673
    },
    "reference_cost": 20.146570999226963
  },
  "values": {
    "v_inf": 20.146571000279785,
    "first_feasible_horizon_with_set": 9,
    "none": {
      "1": 0.7600000000000356,
      "2": 1.7711976396027844,
      "3": 3.038222554425438,
      "4": 4.521227807940683,
      "5": 6.137012413567585,
      "6": 7.78350192643287,
      "7": 9.364355439250824,
      "8": 10.860627650680808,
      "9": 12.272462891097193,
      "10": 13.565781498448978,
      "11": 14.73539722680536,
      "12": 15.765037764486495,
      "13": 16.655164823564014,
      "14": 17.4029003171825,
      "15": 18.02355851149083,
      "16": 18.521779657670482,
      "17": 18.914517720460363,
      "18": 19.222161879254486,
      "19": 19.458515673784085,
      "20": 19.63744564374798,
      "21": 19.77145547616288,
      "22": 19.871045100358263,
      "23": 19.944642917569173,
      "24": 19.998815553607226,
      "25": 20.038576597901145,
      "26": 20.067700949244752,
      "27": 20.089003481658597,
      "28": 20.104569027654065,
      "29": 20.115934485592195,
      "30": 20.124228965719
    },
    "cost": {
      "1": 17.38377683978868,
      "2": 18.490811041600107,
      "3": 19.298933487777603,
      "4": 19.81681758409517,
      "5": 20.076720013548567,
      "6": 20.14657100215565,
      "7": 20.146571014076883,
      "8": 20.146571013225604,
      "9": 20.146571013006874,
      "10": 20.146571010495297,
      "11": 20.146571007274392,
      "12": 20.146571004496476,
      "13": 20.146571002789848,
      "14": 20.146571001932443,
      "15": 20.146571001528887,
      "16": 20.14657100142215,
      "17": 20.14657100134629,
      "18": 20.14657100127471,
      "19": 20.146571001204165,
      "20": 20.14657100113551,
      "21": 20.146571001069795,
      "22": 20.14657100100766,
      "23": 20.14657100094934,
      "24": 20.146571000890955,
      "25": 20.146571000834236,
      "26": 20.14657100078609,
      "27": 20.146571000744917,
      "28": 20.146571000709432,
      "29": 20.14657100067921,
      "30": 20.14657100065882
    },
    "cost+set": {
      "1": null,
      "2": null,
      "3": null,
      "4": null,
      "5": null,
      "6": null,
      "7": null,
      "8": null,
      "9": 20.14657100070186,
      "10": 20.146571000848024,
      "11": 20.146571010940356,
      "12": 20.14657103167347,
      "13": 20.1465710213062,
      "14": 20.146571007042166,
      "15": 20.14657100489998,
      "16": 20.146571004705294,
      "17": 20.146571004385738,
      "18": 20.14657100447503,
      "19": 20.146571004421197,
      "20": 20.146571004291914,
      "21": 20.146571004124407,
      "22": 20.146571003938146,
      "23": 20.1465710037461,
      "24": 20.146571003556264,
      "25": 20.14657100337319,
      "26": 20.146571003201373,
      "27": 20.146571003043938,
      "28": 20.146571002895804,
      "29": 20.146571002756822,
      "30": 20.146571002626533
    }
  },
  "feasible_sets": {
    "grid_fraction_feasible": {
      "20": 0.48518838078803567,
      "10": 0.43457003163646823,
      "5": 0.3546160483175151
    },
    "max_gap_to_saturated_lqr": 3.473421311195324e-05,
    "slice_rate": 0.8,
    "slice_infeasible_above_theta": 0.20500000000000007
  }
}
