Learn R Programming

highs (version 1.10.0-1)

hi_solver_add_vars: 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)

Value

The solver instance with the new variables added.

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.

Examples

Run this code
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