Skip to contents

Creates one row per student and one column per course-role pair, with units allocated by the solver.

Usage

assign_job(model_result, student_df, course_codes, name_col = "Name")

Arguments

model_result

Result object from `ompr::solve_model()` for a PhD or multi-role workload model.

student_df

A data frame that contains student name information. Every row is a unique student.

course_codes

Character vector of course codes in the same order as preference-matrix columns and `d_mat` rows.

name_col

Student name column name in `student_df`.

Value

A data frame with columns: `Name`, then all `<course>-t`, all `<course>-g`, all `<course>-e`.