% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{scip_add_indicator_cons}
\alias{scip_add_indicator_cons}
\title{Add an indicator constraint to a SCIP model}
\usage{
scip_add_indicator_cons(model, binvar, vars, coefs, rhs, name = NULL)
}
\arguments{
\item{model}{A SCIP model.}

\item{binvar}{Integer; 1-based index of the binary indicator variable.}

\item{vars}{Integer vector; 1-based variable indices.}

\item{coefs}{Numeric vector; coefficients.}

\item{rhs}{Numeric; right-hand side.}

\item{name}{Character; constraint name.}
}
\value{
Integer; 1-based constraint index.
}
\description{
If \code{binvar = 1} then \code{sum(coefs * x[vars]) <= rhs}.
}
