scip_add_vars: Add multiple variables to a SCIP model

View source: R/model.R

scip_add_varsR Documentation

Add multiple variables to a SCIP model

Description

Add multiple variables to a SCIP model

Usage

scip_add_vars(model, obj, lb = 0, ub = Inf, vtype = "C", names = NULL)

Arguments

model

A SCIP model.

obj

Numeric vector; objective coefficients.

lb

Numeric; lower bounds (scalar or vector). Default 0.

ub

Numeric; upper bounds (scalar or vector). Default Inf.

vtype

Character; variable types (scalar or vector). Default "C".

names

Character vector; variable names. Default auto-generated.

Value

Integer; 1-based index of first variable added.


scip documentation built on Aug. 30, 2026, 5:07 p.m.