run_optimization: Run optimization

View source: R/funcs_run-optimization.R

run_optimizationR Documentation

Run optimization

Description

This function takes a prepared scenario object, and runs the optimization algorithm, to get the final results.The results are appeneded to the scenario object, plus 4 key columns are populated in curves_full optim_spend, response_at_optim, same_units and net_response_at_optim

Usage

run_optimization(scenario, constant = NULL)

Arguments

scenario

A named list representing a scenario list-object.

constant

Possibility to change the constant used.

Value

An updated scenario list-object.


cath-parkinson/mm.reoptimise documentation built on May 12, 2022, 3:34 p.m.