hi_solver_set_sense {highs} | R Documentation |
Set the optimization sense of the solver instance.
Description
This function updates the optimization sense for the given solver instance. Use TRUE for maximization and FALSE for minimization.
Usage
hi_solver_set_sense(solver, maximum)
Arguments
solver |
An object of class "highs_solver". |
maximum |
A boolean indicating whether to set maximization (TRUE) or minimization (FALSE). |
Value
The updated solver instance with the new optimization sense.
Examples
solver <- example_solver()
hi_solver_set_sense(solver, TRUE)
[Package highs version 1.10.0-3 Index]