KatInterview

Financial Payback and Sensitivity Analysis for Renewable Energy

Arrays & HashingAuto-graded · 2 test cases
EasyAuto-gradedArrays & Hashingfinancesensitivity-analysismath

Last updated

Perform quantitative financial modeling and sensitivity analysis for renewable energy pilot projects.

An energy firm is assessing two potential renewable pilot projects operating under a fixed electricity selling price of $40 per MWh.

  1. Solar Facility:

    • Initial Capital Investment: $12.5 million
    • Operating Expenses: $0/MWh
    • Annual Generation: 75% probability of high yield (150,000 MWh/year) and 25% probability of low yield (50,000 MWh/year).
  2. Ethanol Facility:

    • Initial Capital Investment: $2.5 million
    • Operating Expenses (Variable Cost): $30/MWh
    • Annual Generation: Deterministic 100,000 MWh/year.

Write a function evaluate_pilot_sensitivity that calculates key financial baseline figures and sensitivity break-even values for both plants:

  • solar_expected_mwh: The expected annual output for the solar facility (MWh).
  • solar_payback_years: Simple payback period for solar in years ($\frac{\text{Initial Capital}}{\text{Annual Cash Flow}}$).
  • ethanol_expected_mwh: The annual output for the ethanol facility (MWh).
  • ethanol_payback_years: Simple payback period for ethanol in years.
  • ethanol_price_for_2_year_payback: The required electricity selling price ($/MWh) for ethanol to achieve a 2.0-year payback period, holding variable costs constant.
  • solar_minimum_sunny_fraction_for_3_year_payback: The minimum high-yield sunny probability $s$ required for solar to achieve a payback period of at most 3.0 years at $40/MWh.

Constraints

  • The function takes no input arguments and returns a dictionary with exact float values corresponding to the keys specified above.

Examples

Example 1

Input: evaluate_pilot_sensitivity()

Output: {'solar_expected_mwh': 125000, 'solar_payback_years': 2.5, 'ethanol_expected_mwh': 100000, 'ethanol_payback_years': 2.5, 'ethanol_price_for_2_year_payback': 42.5, 'solar_minimum_sunny_fraction_for_3_year_payback': 0.5416666666666667}

Hints

Hint 1

Calculate annual expected MWh by taking the probability-weighted average of generation outputs.

Hint 2

Annual cash flow equals MWh generated multiplied by the unit net margin (Price - Variable Cost).

Hint 3

To solve for break-even parameters, set Payback = Capital / Cash Flow and isolate the target variable.