Description Usage Arguments Details
View source: R/optimizer_for_max.R
Optimizer for maximizing an outcome assuming constant elasticity and constant random sampling space limit across the trading period
1 | optimizer_for_max(df, limit = 0.1, granularity = 0.05, elasticity = -2)
|
df |
A data frame where first column (df[,1]) contains the volume (PAX) as cumulative, while second column (df[,2]) contains the revenue (price). |
limit |
A numeric of the delta space limit. |
granularity |
A numeric of delta space granularity (i.e. the lenght of "jumps" within the space). |
elas |
A numeric (constant) elasticity. |
NOTE: This function works only for small sample set. It will not produce an output for large input data and may crach your R session.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.