Description Usage Arguments Value Examples
Computes the optimal portfolio for a price-taking country.
This is done by calling optimisation function optimizeGrid()
by optimising using decreasing step sizes (see step
)
on benefits function countryNetBenefits()
1 2 3 4 5 6 7 8 9 10 11 12 | portfolioPriceTaker(
parameters = NULL,
population,
gdp_pc,
frac_high_risk,
loss2yr,
price,
steps = c(10, 1, 0.1),
candidateFile = NULL,
lambda = 1,
return_benefit_args = FALSE
)
|
parameters |
|
population |
Country population (in millions) |
gdp_pc |
Country GDP per capita (in thousand $) |
frac_high_risk |
Fraction of population that is high risk |
loss2yr |
Cumulative percent of GDP lost because of pandemic over two years |
price |
Market price for manufacturing capacity ($ per course / year) |
steps |
Steps to optimize over. By default three step-sizes are used in succession: 10, 1 and 0.1. |
candidateFile |
File with candidate data |
lambda |
Lagrange multiplier. Should be one, unless trying to solve problem with constrained budget. |
return_benefit_args |
if |
List with information on optimal portfolio. Includes investment in every candidate, benefits, cost, and total capacity.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
population <- 31.99
gdp_pc <- 6.71
frac_high_risk <- 0.131
loss2yr <- 0.269
price <- 4
portfolio <- portfolioPriceTaker(population=population, gdp_pc=gdp_pc,
frac_high_risk=frac_high_risk, loss2yr=loss2yr, price=price)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.