hi_solver_add_vars {highs} | R Documentation |
Add Variables to the Solver
Description
This function adds new variables to the solver with specified bounds.
Usage
hi_solver_add_vars(solver, lower, upper)
Arguments
solver |
An object of class "highs_solver". |
lower |
A numeric vector of lower bounds for the new variables. |
upper |
A numeric vector of upper bounds for the new variables. |
Value
The solver instance with the new variables added.
Examples
solver <- example_solver()
hi_solver_add_vars(solver, lower = c(0, 0, 0), upper = c(10, 10, 10))
[Package highs version 1.10.0-3 Index]