Initialise optimisation model (wrapper)
Usage
prepare_model(
df_list,
yaml_list = NULL,
assignment = c("diversity", "preference", "phd", "multirole"),
w1 = 0.5,
w2 = 0.5,
...
)Arguments
- df_list
Model input list.
- yaml_list
Parameter list from
extract_params_yaml(). Optional forassignment = "diversity"andassignment = "preference"for backward compatibility. If supplied, this list is used directly. Ignored forassignment = "phd"andassignment = "multirole".- assignment
Character string indicating model type. Must be one of
"diversity","preference","phd", or"multirole".- w1, w2
Numeric values between 0 and 1. Should sum to 1. Used only for
assignment = "diversity".- ...
Additional arguments:
For
assignment = "diversity"whenyaml_listisNULL: supplyn_topics,R,nmin,nmax,rmin, andrmax.For
assignment = "preference"whenyaml_listisNULL: supplyn_topics,B,R,nmin,nmax,rmin, andrmax.For
assignment = "phd": passed toprepare_phd_model(), includingprotected_yearwhen a cohort other than Year 1 should receive the soft TA-load protection.For
assignment = "multirole": passed toprepare_multirole_model(). Multi-role semester capacity is supplied during extraction and read fromdf_list$C.