Set the model objective

set_objective(model, expression, sense = c("max", "min"))

set_objective_(model, expression, sense = c("max", "min"))

Arguments

model the model the linear objective as a sum of variables and constants the model sense. Must be either "max" or "min".

Value

a Model with a new objective function definition

Examples

library(magrittr)
MIPModel() %>%