{"ref":{"kind":"component","id":"tenant_phase_allocation","key":"sha256:73c084500cd8cd571591d52df85ace1aad37b9f85b58add0633b3a1a58798bc4"},"label":"Tenant phase allocation","description":"Retain one tenant's phase allocation matrix and unassigned capacity.","inputs":[{"label":"Commitment MW","name":"commitment_mw","valueType":{"axes":[],"dtype":"f64","unit":"MW"}},{"label":"Commitment Phase Name","name":"commitment_phase_name","valueType":{"axes":[],"dtype":"str","unit":"text"}},{"label":"Leased","name":"leased","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"One Phase","name":"one_phase","valueType":{"axes":[],"dtype":"f64","unit":"1"}},{"label":"Phase Names","name":"phase_names","valueType":{"axes":[{"extent":null,"name":"capacity_phase","variable":true}],"dtype":"str","unit":"text"}},{"label":"Raw Billed","name":"raw_billed","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}}],"outputs":[{"label":"Billing Contribution","name":"billing_contribution","valueType":{"axes":[{"extent":null,"name":"capacity_phase","variable":true},{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"Leased Contribution","name":"leased_contribution","valueType":{"axes":[{"extent":null,"name":"capacity_phase","variable":true},{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}},{"label":"Unassigned Leased","name":"unassigned_leased","valueType":{"axes":[{"extent":121,"name":"month","variable":false}],"dtype":"f64","unit":"MW"}}],"dependencies":[{"id":"tenant_phase_allocation_period","key":"sha256:7f65afc9506b08bb7451e423c925f4491052a2ff20e3e33b803821b1d1915949","kind":"component"}],"libraries":["data_center_lease_capacity"],"notes":{},"calculation":{"nodes":[{"id":"input-commitment_mw","label":"Commitment MW","kind":"input"},{"id":"input-commitment_phase_name","label":"Commitment Phase Name","kind":"input"},{"id":"input-leased","label":"Leased","kind":"input"},{"id":"input-one_phase","label":"One Phase","kind":"input"},{"id":"input-phase_names","label":"Phase Names","kind":"input"},{"id":"input-raw_billed","label":"Raw Billed","kind":"input"},{"id":"step-value1","label":"Higher of Commitment MW and 0","kind":"step","rule":"Higher of Commitment MW and 0","sources":[{"node":"input-commitment_mw"}]},{"id":"step-allocation_phases","label":"Allocation phases","kind":"step","rule":"Run Tenant phase allocation period for each capacity phase. Carry the closing state into the next period.","sources":[{"node":"input-commitment_phase_name"},{"node":"input-one_phase"},{"node":"input-phase_names"},{"node":"input-commitment_mw"},{"node":"input-leased"},{"node":"input-raw_billed"}],"calls":[{"component":"tenant_phase_allocation_period","label":"Tenant phase allocation period","purpose":"Allocate one tenant commitment once to its first matching capacity phase.","bindings":[{"name":"commitment_phase_name","label":"Commitment Phase Name","value":"Commitment Phase Name"},{"name":"one_phase","label":"One Phase","value":"One Phase"},{"name":"phase_name","label":"Phase Name","value":"Phase Names"}],"carry":[{"input":"commitment_mw","output":"commitment_mw","label":"Commitment MW","initial":"Higher of Commitment MW and 0"},{"input":"leased","output":"leased","label":"Leased","initial":"Leased"},{"input":"raw_billed","output":"raw_billed","label":"Raw Billed","initial":"Raw Billed"},{"input":"remaining_mw","output":"remaining_mw","label":"Remaining MW","initial":"Higher of Commitment MW and 0"}]}]},{"id":"step-value0","label":"(Higher of Commitment MW and 0 > 0)","kind":"step","rule":"(Higher of Commitment MW and 0 > 0)","sources":[{"node":"step-value1"}]},{"id":"step-remaining","label":"Remaining","kind":"step","rule":"Value at index(Allocation phases · Remaining MW, -1)","sources":[{"node":"step-allocation_phases","field":"remaining_mw","fieldLabel":"Remaining MW","url":"/catalog/components/tenant_phase_allocation_period/#output-remaining_mw"}]},{"id":"output-billing_contribution","kind":"output","label":"Billing Contribution","rule":"Allocation phases · Billing Contribution","sources":[{"node":"step-allocation_phases","field":"billing_contribution","fieldLabel":"Billing Contribution","url":"/catalog/components/tenant_phase_allocation_period/#output-billing_contribution"}]},{"id":"output-leased_contribution","kind":"output","label":"Leased Contribution","rule":"Allocation phases · Leased Contribution","sources":[{"node":"step-allocation_phases","field":"leased_contribution","fieldLabel":"Leased Contribution","url":"/catalog/components/tenant_phase_allocation_period/#output-leased_contribution"}]},{"id":"step-unassigned_share","label":"Unassigned share","kind":"step","rule":"if (Higher of Commitment MW and 0 > 0), then (Remaining ÷ if (Higher of Commitment MW and 0 > 0), then Higher of Commitment MW and 0, otherwise 1), otherwise 0","sources":[{"node":"step-value0"},{"node":"step-value1"},{"node":"step-remaining"}],"calls":[{"function":"div_mw_multiple_data_center_lease","label":"Div MW multiple data center lease","bindings":[{"name":"denominator","label":"Denominator","value":"if (Higher of Commitment MW and 0 > 0), then Higher of Commitment MW and 0, otherwise 1"},{"name":"numerator","label":"Numerator","value":"Remaining"}],"rule":"(Remaining ÷ if (Higher of Commitment MW and 0 > 0), then Higher of Commitment MW and 0, otherwise 1)"}]},{"id":"output-unassigned_leased","kind":"output","label":"Unassigned Leased","rule":"(Leased × Unassigned share)","sources":[{"node":"input-leased"},{"node":"step-unassigned_share"}],"calls":[{"function":"mul_mw_multiple_data_center_lease","label":"Mul MW multiple data center lease","bindings":[{"name":"capacity","label":"Capacity","value":"Leased"},{"name":"share","label":"Share","value":"Unassigned share"}],"rule":"(Leased × Unassigned share)"}]}],"topics":[{"label":"Tenant phase allocation period","results":["output-billing_contribution","output-leased_contribution"]},{"label":"Tenant phase allocation","results":["output-unassigned_leased"]}]},"usedBy":[{"kind":"recipe","id":"data_center_acquisition","key":"sha256:a3de19f40187caf36db2e6ce0da98119726e3c4bf05500115912b18e3fc8c1ca"},{"kind":"recipe","id":"data_center_development","key":"sha256:b76434a51896bf65e497e8679d3a1c7a72f5c0ed2705618ed598fbad02e7ef0e"}]}
