powered by
This function adds new variables to the solver with specified bounds.
hi_solver_add_vars(solver, lower, upper)
The solver instance with the new variables added.
An object of class "highs_solver".
A numeric vector of lower bounds for the new variables.
A numeric vector of upper bounds for the new variables.
solver <- example_solver() hi_solver_add_vars(solver, lower = c(0, 0, 0), upper = c(10, 10, 10))
Run the code above in your browser using DataLab