powered by
This function updates the optimization sense for the given solver instance. Use TRUE for maximization and FALSE for minimization.
hi_solver_set_sense(solver, maximum)
The updated solver instance with the new optimization sense.
An object of class "highs_solver".
A boolean indicating whether to set maximization (TRUE) or minimization (FALSE).
solver <- example_solver() hi_solver_set_sense(solver, TRUE)
Run the code above in your browser using DataLab