{
  "schema_version": 1,
  "parameters": {
    "sessions": 20,
    "alpha": [
      0.3,
      0.1,
      0.1,
      0.1
    ],
    "beta": [
      0.03,
      0.05,
      0.03,
      0.02
    ],
    "effect_scale": [
      22.0,
      2.0,
      2.0,
      2.0
    ],
    "tumor_growth": 0.005,
    "repair": [
      0.0,
      0.01,
      0.04,
      0.1
    ],
    "max_beam": 3.0,
    "dose_weight": 0.01,
    "tolerance_weight": 50.0,
    "cure_weight": 200.0,
    "sparing_weight": 1.0,
    "sharpness": 25.0,
    "uniform_beam": 0.7
  },
  "phantom": {
    "body_axes": [
      15.0,
      12.0
    ],
    "tumor_radius": 2.0,
    "cord": [
      0.0,
      -7.5,
      1.1
    ],
    "heart": [
      -6.06,
      3.5,
      3.0,
      2.6
    ],
    "lung": [
      6.5,
      3.75,
      3.4,
      2.6
    ],
    "beam_sources": [
      -90.0,
      150.0,
      30.0
    ],
    "beam_half_width": 2.2,
    "penumbra": 0.3,
    "attenuation": 0.05,
    "grid": 161,
    "extent": 16.0
  },
  "dose_matrix": [
    [
      1.0,
      1.0,
      0.9999999999999998
    ],
    [
      1.5024969545633517,
      1.9731616730591362e-06,
      1.9748586234687856e-06
    ],
    [
      0.0011469938494316073,
      1.2833339257673644,
      0.0005073199032025299
    ],
    [
      0.000874691179559018,
      0.00017875651042145604,
      1.2849882253064902
    ]
  ],
  "provenance": {
    "sha256": {
      "code/trajectory_optimization.py": "f215a6163457e6889064716e9acee7bf6991575c191af0e5b1327103e2c85eae",
      "code/radiotherapy_fractionation.py": "27b81d1d8ada6b44a54d2ca5690f9dcb0e0dcd8ef3dc9864231430fa2c2624aa",
      "scripts/build_radiotherapy_fractionation_artifacts.py": "634cb5d8a61b88d481d793f16cdd866a159f71dd4f7e9b9322e726d359be8e60"
    },
    "solver_options": {
      "max_iterations": 200,
      "gradient_tolerance": 1e-05,
      "initial_regularization": 0.0001,
      "minimum_regularization": 1e-09,
      "maximum_regularization": 1000000000000.0,
      "line_search_steps": 12
    }
  },
  "runs": [
    {
      "method": "ilqr",
      "status": "converged",
      "accepted_iterations": 53,
      "accepted_costs": [
        108.00082546655617,
        16.065626536271278,
        10.260960972228386,
        8.251001418639426,
        6.934018355473221,
        6.098310212168764,
        4.925501621266996,
        4.145969783826301,
        3.642449948812155,
        3.284232274633316,
        3.127182156954757,
        3.0480763891412983,
        3.011979582745198,
        2.982631944829122,
        2.958982806512033,
        2.955722031182822,
        2.9438967103610776,
        2.941866871421018,
        2.9357600278596534,
        2.9347793398063673,
        2.933646922428058,
        2.933185435520927,
        2.933168904922223,
        2.9324874504781824,
        2.9323545195126117,
        2.9321848601998917,
        2.93216695721144,
        2.9320194432319227,
        2.93199517837629,
        2.931987642466601,
        2.9319598704829253,
        2.9319542894657613,
        2.9319518184402136,
        2.9319447477117038,
        2.931944557417891,
        2.9319418547600424,
        2.931941313046656,
        2.9319401854679943,
        2.9319396895387504,
        2.931939172148803,
        2.9319389763953914,
        2.9319382308010327,
        2.931938218047685,
        2.931937910757328,
        2.9319378534885416,
        2.931937717829938,
        2.931937662207555,
        2.9319375974827584,
        2.931937587722589,
        2.9319374856371665,
        2.931937462181943,
        2.9319374559562963,
        2.9319374193420913,
        2.931937410602381
      ],
      "projected_gradient": 7.889909552943886e-06,
      "forward_evaluations": 163,
      "backward_attempts": 53,
      "solver_seconds_excluding_compilation": 0.23387495893985033,
      "summary": {
        "cost": 2.931937410602381,
        "final_health": {
          "tumor": -0.0014456370396454513,
          "spinal cord": -0.7188771481437066,
          "heart": -0.7554877344951114,
          "lung": -0.7291227868312246
        },
        "lowest_health": {
          "spinal cord": -0.7188771481437066,
          "heart": -0.7554877344951114,
          "lung": -0.7858393046038967
        },
        "course_dose_Gy": {
          "tumor": 56.212341201449526,
          "spinal cord": 12.137338338170451,
          "heart": 21.47578251440322,
          "lung": 40.38382454813326
        },
        "beam_totals": {
          "cord": 8.078048525322174,
          "heart": 16.71472782035407,
          "lung": 31.419564855773302
        }
      },
      "states": [
        [
          1.0,
          0.0,
          0.0,
          0.0
        ],
        [
          0.8621820208753129,
          -0.14737715166809737,
          -0.26396263536488174,
          -0.30902779551241505
        ],
        [
          0.7321524664951936,
          -0.2807900178167253,
          -0.4828468053578306,
          -0.5886368111311013
        ],
        [
          0.6486219444961105,
          -0.3664684989496005,
          -0.6079860876321918,
          -0.7294014460498849
        ],
        [
          0.5948439272024398,
          -0.4218850151151097,
          -0.6759826436652357,
          -0.7855513851649636
        ],
        [
          0.5119291581612754,
          -0.49327233405371684,
          -0.7168861505881939,
          -0.773913747396277
        ],
        [
          0.4886760124999394,
          -0.514097277706417,
          -0.7210071037473538,
          -0.7639162697504498
        ],
        [
          0.46370915037856364,
          -0.5345847790088941,
          -0.7258592089526302,
          -0.7615669794964789
        ],
        [
          0.43706796914280094,
          -0.5546911222138345,
          -0.7319691039141725,
          -0.7654443375616072
        ],
        [
          0.4048997871113608,
          -0.5772139498001201,
          -0.7443452574692008,
          -0.7858393046038967
        ],
        [
          0.3341279152732311,
          -0.6151254020974418,
          -0.7436548782086281,
          -0.7661929931815242
        ],
        [
          0.3137244930676551,
          -0.62381644501825,
          -0.7377249893691307,
          -0.7579263454802113
        ],
        [
          0.290919274321528,
          -0.6331018114602458,
          -0.7358577398246768,
          -0.7567983257584678
        ],
        [
          0.2658745425548076,
          -0.6429013408057732,
          -0.7376435465804425,
          -0.7616835260283621
        ],
        [
          0.23496545746631436,
          -0.6554976027525999,
          -0.7473432419850591,
          -0.7829324500483382
        ],
        [
          0.16517440768723993,
          -0.6782866390740109,
          -0.7439959568761988,
          -0.7619223519179965
        ],
        [
          0.1447620654361052,
          -0.6812955189411531,
          -0.7384356849517942,
          -0.7542918612990663
        ],
        [
          0.12177220790722508,
          -0.6857985213400529,
          -0.7376088785152337,
          -0.7530886184346061
        ],
        [
          0.0962234612523854,
          -0.6919046635632411,
          -0.7415139373204628,
          -0.7572936474161537
        ],
        [
          0.06458204212004992,
          -0.7019302551194682,
          -0.7551744955381114,
          -0.7759537210283818
        ],
        [
          -0.0014456370396454513,
          -0.7188771481437066,
          -0.7554877344951114,
          -0.7291227868312246
        ]
      ],
      "controls": [
        [
          1.089583875760507,
          2.277912783482348,
          2.9999991917305855
        ],
        [
          1.0246647915219826,
          2.0673543507927974,
          2.9999989501389823
        ],
        [
          0.7579329738044583,
          1.4848149166503823,
          2.171499864505876
        ],
        [
          0.5591855187060195,
          1.0572550737724995,
          1.5452297893926354
        ],
        [
          0.7394413040133392,
          1.3533702982653586,
          2.4671758939999155
        ],
        [
          0.284970241785718,
          0.445548737076524,
          0.8906324912819081
        ],
        [
          0.2837433266189807,
          0.4562638609277718,
          0.9685735502435018
        ],
        [
          0.28207042246067965,
          0.47352836730629017,
          1.0367092867110037
        ],
        [
          0.3064639474082149,
          0.5491205504585643,
          1.2204968545480868
        ],
        [
          0.5372014639413468,
          1.0443636980484206,
          2.3932524689567383
        ],
        [
          0.17589650182969205,
          0.333357880907735,
          0.9024506742536641
        ],
        [
          0.18310538316231875,
          0.3820171164445922,
          0.9761211715441646
        ],
        [
          0.18947687502858612,
          0.42625580072916014,
          1.0429891854722495
        ],
        [
          0.21924791115532868,
          0.5210175236735833,
          1.2257988875972552
        ],
        [
          0.4356977379845789,
          1.0217915951686116,
          2.373335240291256
        ],
        [
          0.12031783447354305,
          0.3383408378814562,
          0.9051861126298519
        ],
        [
          0.1374839224014992,
          0.3953923327306818,
          0.9713233545829377
        ],
        [
          0.1556417058508293,
          0.4527972240453214,
          1.0314169664812645
        ],
        [
          0.1979239711868312,
          0.5680337072432262,
          1.1939214274312464
        ],
        [
          0.39799881622772015,
          1.0661911647487492,
          2.103453493980177
        ]
      ]
    },
    {
      "method": "ddp",
      "status": "converged",
      "accepted_iterations": 11,
      "accepted_costs": [
        108.00082546655617,
        60.13364485334066,
        23.737314507383395,
        4.264175554285542,
        3.406517663156321,
        3.07792741521364,
        2.9759740474143075,
        2.94531806219374,
        2.933529835850206,
        2.93198158935661,
        2.9319374263021722,
        2.931937378663103
      ],
      "projected_gradient": 1.3114501018485214e-07,
      "forward_evaluations": 11,
      "backward_attempts": 15,
      "solver_seconds_excluding_compilation": 0.0554343331605196,
      "summary": {
        "cost": 2.931937378663103,
        "final_health": {
          "tumor": -0.0014455614686948543,
          "spinal cord": -0.7188765241661765,
          "heart": -0.7554880556546457,
          "lung": -0.7291234754722615
        },
        "lowest_health": {
          "spinal cord": -0.7188765241661765,
          "heart": -0.7554880556546457,
          "lung": -0.7858390978829264
        },
        "course_dose_Gy": {
          "tumor": 56.21234347177902,
          "spinal cord": 12.137337235034316,
          "heart": 21.475783892568188,
          "lung": 40.38382702867158
        },
        "beam_totals": {
          "cord": 8.078047791116315,
          "heart": 16.71472889414131,
          "lung": 31.419566786521404
        }
      },
      "states": [
        [
          1.0,
          0.0,
          0.0,
          0.0
        ],
        [
          0.8621819801628059,
          -0.14737711425629094,
          -0.26396275246573186,
          -0.30902791497822746
        ],
        [
          0.7321523733961334,
          -0.2807899512884022,
          -0.4828470494435272,
          -0.5886370744077842
        ],
        [
          0.6486221205709614,
          -0.3664681748918251,
          -0.6079858702648054,
          -0.729401018136845
        ],
        [
          0.5948442517425593,
          -0.4218844704395577,
          -0.675982234263767,
          -0.7855506669144032
        ],
        [
          0.511929349128546,
          -0.49327192836041134,
          -0.7168859736589142,
          -0.7739135214384464
        ],
        [
          0.4886763165785926,
          -0.5140959308896887,
          -0.7210070924390758,
          -0.7639161321500254
        ],
        [
          0.4637092072644687,
          -0.5345853409527352,
          -0.7258589550273421,
          -0.7615667333997024
        ],
        [
          0.4370680367968421,
          -0.5546917481251183,
          -0.7319688112091604,
          -0.7654440578346255
        ],
        [
          0.4049003261306239,
          -0.5772115392653039,
          -0.7443452462634651,
          -0.7858390978829264
        ],
        [
          0.3341283990201763,
          -0.6151241995910881,
          -0.743654607856555,
          -0.7661924653562662
        ],
        [
          0.3137247242349919,
          -0.6238167108543449,
          -0.737724640490362,
          -0.7579258846455714
        ],
        [
          0.2909193316634361,
          -0.6331031554659174,
          -0.7358572822911212,
          -0.7567979012774104
        ],
        [
          0.26587546910355375,
          -0.6428966459460908,
          -0.7376438857778508,
          -0.7616836643843445
        ],
        [
          0.23496540655655035,
          -0.6554991979349746,
          -0.7473428582159155,
          -0.782932253615776
        ],
        [
          0.16517490578494023,
          -0.6782848157439826,
          -0.7439959960440263,
          -0.7619223847127482
        ],
        [
          0.14476224613201946,
          -0.6812958518792995,
          -0.7384354324759339,
          -0.7542917004305525
        ],
        [
          0.12177264764314169,
          -0.6857971888234342,
          -0.7376088475952008,
          -0.7530885934103386
        ],
        [
          0.0962238110391824,
          -0.6919040162625456,
          -0.7415137989101137,
          -0.7572935410939782
        ],
        [
          0.0645824331056567,
          -0.7019294054048049,
          -0.7551743767521977,
          -0.7759536185463116
        ],
        [
          -0.0014455614686948543,
          -0.7188765241661765,
          -0.7554880556546457,
          -0.7291234754722615
        ]
      ],
      "controls": [
        [
          1.0895836850191838,
          2.2779134726154004,
          3.0
        ],
        [
          1.0246646354002333,
          2.0673551734360247,
          3.0
        ],
        [
          0.757931350767994,
          1.4848115023071455,
          2.171494452281993
        ],
        [
          0.5591838832470809,
          1.0572532840765871,
          1.5452266173952918
        ],
        [
          0.7394421024639997,
          1.353371897419697,
          2.4671787285334883
        ],
        [
          0.28496134389284844,
          0.44555066048372444,
          0.8906332858596369
        ],
        [
          0.28376119265080774,
          0.4562609290301322,
          0.9685721422609097
        ],
        [
          0.2820710793011143,
          0.473527787888438,
          1.0367086462112123
        ],
        [
          0.306436050986597,
          0.5491236522256541,
          1.2204973633775311
        ],
        [
          0.5372100923092311,
          1.0443611570145193,
          2.393248934016271
        ],
        [
          0.1759119894187949,
          0.333356716959996,
          0.9024508608191822
        ],
        [
          0.18311677929196918,
          0.38201557350274584,
          0.9761210780917502
        ],
        [
          0.18941381281126568,
          0.426265362260466,
          1.0429950770403613
        ],
        [
          0.2193110500464093,
          0.5210092563936368,
          1.2257954520643277
        ],
        [
          0.43566978983076726,
          1.0217953497752867,
          2.373336946255842
        ],
        [
          0.12034217988624517,
          0.33833708495767906,
          0.9051838598301695
        ],
        [
          0.13746540076344607,
          0.39539497981561167,
          0.9713247496805916
        ],
        [
          0.15564902794569507,
          0.45279591090220694,
          1.0314160210439671
        ],
        [
          0.19792180679552535,
          0.5680338693595044,
          1.1939213619671287
        ],
        [
          0.3980005382871072,
          1.066195273716854,
          2.103461209791747
        ]
      ]
    }
  ],
  "uniform_plan": {
    "beam_per_session": 1.0000129504738693,
    "cost": 436.07908633338997,
    "final_health": {
      "tumor": -4.292468713779307e-16,
      "spinal cord": -2.2606218831680427,
      "heart": -1.0069142983209873,
      "lung": -0.4619797603820449
    },
    "lowest_health": {
      "spinal cord": -2.2606218831680427,
      "heart": -1.0462738939784701,
      "lung": -0.5427650718550683
    },
    "course_dose_Gy": {
      "tumor": 60.00077702843215,
      "spinal cord": 30.050407213646512,
      "heart": 25.700097614532336,
      "lung": 25.721166556911037
    },
    "beam_totals": {
      "cord": 20.000259009477396,
      "heart": 20.000259009477396,
      "lung": 20.000259009477396
    }
  },
  "validation_issues": []
}
