% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{scip_add_var}
\alias{scip_add_var}
\title{Add a variable to a SCIP model}
\usage{
scip_add_var(model, obj, lb = 0, ub = Inf, vtype = "C", name = NULL)
}
\arguments{
\item{model}{A SCIP model (external pointer from \code{\link{scip_model}}).}

\item{obj}{Numeric; objective coefficient.}

\item{lb}{Numeric; lower bound. Default \code{0}.}

\item{ub}{Numeric; upper bound. Default \code{Inf}.}

\item{vtype}{Character; variable type: \code{"C"} (continuous),
\code{"B"} (binary), or \code{"I"} (integer). Default \code{"C"}.}

\item{name}{Character; variable name. Default auto-generated.}
}
\value{
Integer; 1-based variable index.
}
\description{
Add a variable to a SCIP model
}
