Skip to contents

This function is used to perform the integer optimization using lpSolve::lp.

For more information, please refer to the lpSolve package in R.

Usage

class_optim(s, f.obj, f.con, f.dir, core, elective, moment, class)

Arguments

s

Semester to be considered (numerical)

f.obj

Objective function (to be minimized)

f.con

Constraints matrix

f.dir

Sign of equality of constraints (">=", "<=", ...) (numerical vectors)

core

Core credits chosen by the user by semester (numerical value)

elective

Elective credits chosen by the user (numerical value)

moment

Moments chosen by the user (binary vector)

class

Classes chosen by the user (binary vector)

Value

Final choice of classes of user (binary vector)

Author

Group 2 composed of Matteo Gross, Alessia Di Pietro, Martina Celic, Ana Gabriela Garcia, Laura Lo Priore