hi_solver_add_vars: Add Variables to the Solver

View source: R/solver-api.R

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


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