% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{scip_add_quadratic_cons}
\alias{scip_add_quadratic_cons}
\title{Add a quadratic constraint to a SCIP model}
\usage{
scip_add_quadratic_cons(
  model,
  linvars = integer(0),
  lincoefs = double(0),
  quadvars1 = integer(0),
  quadvars2 = integer(0),
  quadcoefs = double(0),
  lhs = -Inf,
  rhs = Inf,
  name = NULL
)
}
\arguments{
\item{model}{A SCIP model.}

\item{linvars}{Integer vector; 1-based variable indices for linear part.}

\item{lincoefs}{Numeric vector; linear coefficients.}

\item{quadvars1, quadvars2}{Integer vectors; 1-based variable indices for
quadratic terms.}

\item{quadcoefs}{Numeric vector; quadratic coefficients.}

\item{lhs, rhs}{Numeric; constraint bounds.}

\item{name}{Character; constraint name.}
}
\value{
Integer; 1-based constraint index.
}
\description{
Adds \code{lhs <= linexpr + quadexpr <= rhs} where
\code{quadexpr = sum(quadcoefs[k] * x[quadvars1[k]] * x[quadvars2[k]])}.
}
