hi_solver_set_sense: Set the optimization sense of the solver instance.

View source: R/solver-api.R

hi_solver_set_senseR 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)


highs documentation built on June 8, 2025, 10:36 a.m.