title: "Changes" author: "Lyndon Estes" output: html_document: highlight: tango theme: spacelab toc: yes
targets
, via tradeoff_mod
, tradeoff_batch
, and pareto
. Switch is made in input_handler
. tradeoff_mod
.tradeoff_batch
. imp_plot
. heat
to create raster showing frequency of conversions.tradeoff_batch
passes out the bcode nowpareto
uses bcode passed from tradeoff_batch
, and saves optitab to batch directory. tradeoff_batch
impact tables now come out as data.frames from both todisk TRUE and FALSE cases. Changes to batch_param
made to accomodate (table rather than list). From the todisk=FALSE case, the output conversion tables are served as a list that is the second element of the output list. imp_sorter
function for selecting subsets of conversion maps and ordering them to correctly match names of selected impact tables. impact
for calculating total travel hours (impact_mod2
), and total biodiversity cost (impact_mod3
). input_key
("ZA") in tradeoff_batch
call to tradeoff_mod
. impacts_tab.rda
output from tradeoff_batch
. tradeoff_batch
so that impacts_tab.rda
is a data.frame not a list. tradeoff_batch
were being re-ordered because of random numbers/time-stamp structure in run_code
. The run/batch/name is simplified and fixed, with corresponding changes to tradeoff_batch
, tradeoff_mod
, pareto
. Current production becomes non-spatial, adjusted with coefficient
Notes:
Status: Done
Fraction available cropland needs to be incorporated
convert
impacts
New biodiversity impact metric incorporated
fetch_inputs
external/data/[ID]
, and are read in directly from there. These changes are designed to separate model from R package structure. input_handler
yield_mod
yield_mod_dt
yield_mod
targets
targets_dt
currprodmod
. constraints
contraints_dt
convert
convert_dt
impact
impact_dt
constraints
); ha of forest reserves losttradeoff_mod
tradeoff_batch
external/output
pareto
pareto_step
function created, removing this portion of code from inside main functionbatch_params
combines parameter permutations into matrix used by pareto
and tradeoff_batch
batch_stat
calculates summarizes impact metrics of interest from a batch run, which are fed to non-dominator
. non-dominator
Separate function created for code that removes non-dominated solutions from output table of impactstradeoff_batch
. Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.