dive-math / deco / bailoutPlan
Function: bailoutPlan()
bailoutPlan(
input,bailout):BailoutResult
Defined in: deco/bailout.ts:48
Plan the bailout at the worst bailout point among the ends of the levels (largest bailout gas requirement; tie: longest runtime): replay the bottom to that level's end, then ascend on open circuit on bailoutGases (gas switches at MOD). GF and ascent rules come from the plan input. Runs one full deco ascent per level, so cost grows with levels.length; profiles near MAX_LEVELS can take several seconds.
Parameters
input
bailout
Returns
Example
ts
bailoutPlan(ccrInput, { bailoutGases: [gas(0.21, 0.35), gas(0.5)], rmvLpm: 20 }).plan.runtimeMinutes