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

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

\item{coefs}{Numeric vector; coefficients (same length as \code{vars}).}

\item{lhs}{Numeric; left-hand side. Default \code{-Inf}.}

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

\item{name}{Character; constraint name. Default auto-generated.}
}
\value{
Integer; 1-based constraint index.
}
\description{
Adds \code{lhs <= sum(coefs * x[vars]) <= rhs}.
}
