scip_add_indicator_cons: Add an indicator constraint to a SCIP model

View source: R/model.R

scip_add_indicator_consR Documentation

Add an indicator constraint to a SCIP model

Description

If binvar = 1 then sum(coefs * x[vars]) <= rhs.

Usage

scip_add_indicator_cons(model, binvar, vars, coefs, rhs, name = NULL)

Arguments

model

A SCIP model.

binvar

Integer; 1-based index of the binary indicator variable.

vars

Integer vector; 1-based variable indices.

coefs

Numeric vector; coefficients.

rhs

Numeric; right-hand side.

name

Character; constraint name.

Value

Integer; 1-based constraint index.


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