optimisation objective function

optim_objective(mortality_rates, target_age_distribution)

Arguments

mortality_rates

Mortality rates

target_age_distribution

Target age distribution

Value

The sum of squared differences between the target and current age distributions