Concepts
Features
Reference
This section documents the Gurobi C++ interface. This manual begins with aquick overview of the classes exposed in the interfaceand the most important methods on those classes. It then continues with acomprehensive presentation of all of the available classes and methods.
If you are new to the Gurobi Optimizer, we suggest that you start with theGetting Started Knowledge Base article for general information. This alsoincludesTutorials for the different Gurobi APIs. Additionally, ourExample Tour provides concrete examples of howto use the classes and methods described here. We will point to sections orexamples of this tour whenever it fits in this overview.
Contents
GRBModelGRBModel::GRBModelGRBModel::GRBModelGRBModel::GRBModelGRBModel::GRBModelGRBModel::addConstrGRBModel::addConstrGRBModel::addConstrGRBModel::addConstrGRBModel::addConstrGRBModel::addConstrGRBModel::addConstrsGRBModel::addConstrsGRBModel::addGenConstrMaxGRBModel::addGenConstrMinGRBModel::addGenConstrAbsGRBModel::addGenConstrAndGRBModel::addGenConstrOrGRBModel::addGenConstrNormGRBModel::addGenConstrNLGRBModel::addGenConstrIndicatorGRBModel::addGenConstrIndicatorGRBModel::addGenConstrPWLGRBModel::addGenConstrPolyGRBModel::addGenConstrExpGRBModel::addGenConstrExpAGRBModel::addGenConstrLogGRBModel::addGenConstrLogAGRBModel::addGenConstrLogisticGRBModel::addGenConstrPowGRBModel::addGenConstrSinGRBModel::addGenConstrCosGRBModel::addGenConstrTanGRBModel::addQConstrGRBModel::addQConstrGRBModel::addQConstrGRBModel::addRangeGRBModel::addRangesGRBModel::addSOSGRBModel::addVarGRBModel::addVarGRBModel::addVarGRBModel::addVarsGRBModel::addVarsGRBModel::addVarsGRBModel::chgCoeffGRBModel::chgCoeffsGRBModel::computeIISGRBModel::convertToFixedGRBModel::discardConcurrentEnvsGRBModel::discardMultiobjEnvsGRBModel::feasRelaxGRBModel::feasRelaxGRBModel::fixedModelGRBModel::get[Param]GRBModel::get[Attr]GRBModel::get[Attr,1D]GRBModel::getCoeffGRBModel::getColGRBModel::getConcurrentEnvGRBModel::getConstrByNameGRBModel::getConstrsGRBModel::getGenConstrMaxGRBModel::getGenConstrMinGRBModel::getGenConstrNLGRBModel::getGenConstrAbsGRBModel::getGenConstrAndGRBModel::getGenConstrOrGRBModel::getGenConstrNormGRBModel::getGenConstrIndicatorGRBModel::getGenConstrPWLGRBModel::getGenConstrPolyGRBModel::getGenConstrExpGRBModel::getGenConstrExpAGRBModel::getGenConstrLogGRBModel::getGenConstrLogAGRBModel::getGenConstrLogisticGRBModel::getGenConstrPowGRBModel::getGenConstrSinGRBModel::getGenConstrCosGRBModel::getGenConstrTanGRBModel::getGenConstrsGRBModel::getJSONSolutionGRBModel::getMultiobjEnvGRBModel::getObjectiveGRBModel::getObjectiveGRBModel::getPWLObjGRBModel::getQCRowGRBModel::getQConstrsGRBModel::getRowGRBModel::getSOSGRBModel::getSOSsGRBModel::getTuneResultGRBModel::getVarByNameGRBModel::getVarsGRBModel::optimizeGRBModel::optimizeasyncGRBModel::optimizeBatchGRBModel::presolveGRBModel::readGRBModel::removeGRBModel::resetGRBModel::setCallbackGRBModel::resetParamsGRBModel::set[Param]GRBModel::set[Attr]GRBModel::set[Attr,1D]GRBModel::setObjectiveGRBModel::setObjectiveGRBModel::setObjectiveNGRBModel::setPWLObjGRBModel::singleScenarioModelGRBModel::syncGRBModel::terminateGRBModel::tuneGRBModel::updateGRBModel::writeGRBLinExprGRBLinExpr::GRBLinExprGRBLinExpr::GRBLinExprGRBLinExpr::addTermsGRBLinExpr::clearGRBLinExpr::getConstantGRBLinExpr::getCoeffGRBLinExpr::getValueGRBLinExpr::getVarGRBLinExpr::operator=GRBLinExpr::operator+GRBLinExpr::operator-GRBLinExpr::operator+=GRBLinExpr::operator-=GRBLinExpr::operator*=GRBLinExpr::removeGRBLinExpr::removeGRBLinExpr::sizeGRBQuadExprGRBQuadExpr::GRBQuadExprGRBQuadExpr::GRBQuadExprGRBQuadExpr::GRBQuadExprGRBQuadExpr::addTermGRBQuadExpr::addTermGRBQuadExpr::addTermsGRBQuadExpr::addTermsGRBQuadExpr::clearGRBQuadExpr::getCoeffGRBQuadExpr::getLinExprGRBQuadExpr::getValueGRBQuadExpr::getVar1GRBQuadExpr::getVar2GRBQuadExpr::operator=GRBQuadExpr::operator+GRBQuadExpr::operator-GRBQuadExpr::operator+=GRBQuadExpr::operator-=GRBQuadExpr::operator*=GRBQuadExpr::removeGRBQuadExpr::removeGRBQuadExpr::sizeGRBCallbackGRBCallback::GRBCallbackGRBCallback::abortGRBCallback::addCutGRBCallback::addCutGRBCallback::addLazyGRBCallback::addLazyGRBCallback::getDoubleInfoGRBCallback::getIntInfoGRBCallback::getNodeRelGRBCallback::getNodeRelGRBCallback::getSolutionGRBCallback::getSolutionGRBCallback::getStringInfoGRBCallback::proceedGRBCallback::setGRBCallback::setGRBCallback::setGRBCallback::setSolutionGRBCallback::setSolutionGRBCallback::stopOneMultiObjGRBCallback::useSolutionHelp and Feedback