View source: R/funcs_set-get-scenario.R
set_scenario | R Documentation |
This function takes a scenario object, plus the desired optimisation specification parameters, and updates the scenario object by updating or populating curves_filtered
set_scenario( scenario, period, budget, kpi1, kpi2 = NULL, kpi3 = NULL, constraints_list = NULL )
scenario |
scenario list-object. |
period |
the specified period as a string |
budget |
the specifed budget as a numeric |
kpi1 |
the specified kpilevel1 as a string |
kpi2 |
the specified kpilevel2 as a string |
kpi3 |
the specified kpilevel3 as a string |
constraints_list |
list where each element is a tibble with required constraints |
updated scenario list-object, with curves_filtered ready to pass to optimisation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.