powered by
This function sets the objective for a given Highs model.
hi_model_set_objective(model, objective)
NULL
an object of class "highs_model".
"highs_model"
a numeric vector giving the objective values to be set for the model.
model <- hi_new_model() objective <- c(1, 2, 3) hi_model_set_objective(model, objective)
Run the code above in your browser using DataLab