pommes.tests.test_operation_year_weight

operation_year_weight: several operation years as weighted alternatives.

The case: one wind farm, built in 2020 and alive until 2040, operated in 2020 and in 2030. The two operation years share the investment and stand for two WEATHER years of the same planned system – the second one calmer. Load shedding is allowed at a cost, so the invested capacity trades its annuity against the energy it saves from shedding, and the optimum moves with the weather.

Attributes

SHEDDING_COST

Functions

_weather_years(parameters_conversion[, calm, weights, ...])

The wind-farm case over years, 2030 made calm times as windy.

_solve(p)

Validate, build and solve; return the model.

_capacity(model)

Wind capacity invested in 2020.

test_an_absent_weight_is_the_neutral_one(...)

test_two_identical_years_at_half_weight_are_one_year(...)

test_a_weight_of_one_reproduces_that_year_alone(...)

test_the_objective_is_the_weighted_sum_of_the_years(...)

test_an_unusable_weight_is_refused(...)

test_hurdle_costs_are_weighted_like_their_year(...)

The hurdle costs are in annualised_totex (#133), weighted with it.

test_benders_optimises_the_weighted_objective(...)

Module Contents

pommes.tests.test_operation_year_weight.SHEDDING_COST = 90.0
pommes.tests.test_operation_year_weight._weather_years(parameters_conversion, calm=0.5, weights=None, years=(2020, 2030))

The wind-farm case over years, 2030 made calm times as windy.

Parameters:
  • parameters_conversion – The shared conversion fixture.

  • calm – Multiplier on the 2030 availability (1.0 = same weather).

  • weights – operation_year_weight per year, or None to leave it out.

  • years – Operation years to keep.

Returns:

Model parameters, check_inputs NOT yet applied.

Return type:

xarray.Dataset

pommes.tests.test_operation_year_weight._solve(p)

Validate, build and solve; return the model.

pommes.tests.test_operation_year_weight._capacity(model)

Wind capacity invested in 2020.

pommes.tests.test_operation_year_weight.test_an_absent_weight_is_the_neutral_one(parameters_conversion)
pommes.tests.test_operation_year_weight.test_two_identical_years_at_half_weight_are_one_year(parameters_conversion)
pommes.tests.test_operation_year_weight.test_a_weight_of_one_reproduces_that_year_alone(parameters_conversion, weights, alone)
pommes.tests.test_operation_year_weight.test_the_objective_is_the_weighted_sum_of_the_years(parameters_conversion)
pommes.tests.test_operation_year_weight.test_an_unusable_weight_is_refused(parameters_conversion, weights)
pommes.tests.test_operation_year_weight.test_hurdle_costs_are_weighted_like_their_year(parameters_transport)

The hurdle costs are in annualised_totex (#133), weighted with it.

pommes.tests.test_operation_year_weight.test_benders_optimises_the_weighted_objective(parameters_conversion)