prepare_model {grouper}R Documentation

Initialise optimisation model

Description

Initialise optimisation model

Usage

prepare_model(
  df_list,
  yaml_list,
  assignment = c("diversity", "preference"),
  w1 = 0.5,
  w2 = 0.5
)

Arguments

df_list

The output list from extract_student_info().

yaml_list

The output list from extract_params_yaml().

assignment

Character string indicating the type of model that this dataset is for. The argument is either 'preference' or 'diversity'. Partial matching is fine.

w1, w2

Numeric values between 0 and 1. Should sum to 1. These weights correspond to the importance given to the diversity- and skill-based portions in the objective function.

Value

An ompr model.


[Package grouper version 0.3.1 Index]