Gurobi Optimizer Reference Manual#
Introduction#
This is the manual for version 13.0 of the Gurobi Optimizer. It covers Gurobi’s modeling structures, features, and API concepts, and provides a detailed reference for use when developing applications using Gurobi. The manual is written with practitioners in mind. While it provides an overview of the solver, it is not intended as a first course in optimization. It assumes familiarity with the core concepts and terminology of mathematical optimization, as well as with the programming language you intend to develop in.
Concepts
Gurobi follows a model-and-solve paradigm. As a user of Gurobi, you must translate your optimization problem into mathematical programming form. The Gurobi APIs enable you to formulate an instance of your problem in the solver, invoke its algorithms to solve it, and query solution information. The initial sections of this manual cover the core concepts you should be familiar with.
Modeling Components covers the building blocks used to formulate optimization models in Gurobi.
API Usage covers the basic use of Gurobi’s API for formulating and solving models. It also introduces the core concepts of Environments, Parameters, and Attributes.
Logging provides an overview of the log output produced by Gurobi when solving a model. Reading the log can help in understanding solver performance issues and resolving various warnings.
Guidelines for Numerical Issues explains some of the causes of numerical instability which can occur when solving optimization models, and how to remedy them when necessary. Read this guide if you encounter numerical trouble or warnings when solving your models using Gurobi.
Features
The next sections cover specific features of Gurobi Optimizer.
Batch Optimization: submits models to be solved as asynchronous jobs on remote machines.
Concurrent Optimization: a simple approach for exploiting multiple processors.
Gurobi Instant Cloud: solve models synchronously on managed compute instances in the cloud.
Infeasibility Analysis: Gurobi’s tools for determinining the cause of model infeasibility.
Multiple Objectives: specify multiple weighted or hierarchical objectives to be considered in a model.
Multiple Scenarios: evaluate sensitivity of solutions to a model over parameterized data.
Nonlinear Constraints: some details of algorithmic support for nonlinear constraints via expression trees.
Parameter Tuning Tool: automatically determine parameter choices to improve solver performance on a model or group of similar models.
Recording API Calls: a tool for debugging your usage of Gurobi Optimizer.
Solution Pool: control how Gurobi searches for and stores solutions other than the best available one.
Reference
The reference sections provide detailed information required for application development in each of our supported APIs.
Specifications of all classes, methods, functions, etc for each of the APIs: C, C++, Java, .NET, Python, MATLAB, and R.
A reference for the available options in Gurobi’s Command-Line Tool,
gurobi_cl.Descriptions of all Attributes, Parameters, and Numeric Codes, which are common to all language APIs.
A specification of all File Formats read and written by the Optimizer.
The Release Notes, which should be consulted when upgrading from a previous version of Gurobi.
Additional Resources
You can consult the Getting Started Knowledge Base article for a high-level overview of the Gurobi Optimizer, or the Gurobi Example Tour for a quick tour of the examples provided with the Gurobi distribution, or the Gurobi Remote Services Reference Manual for an overview of Gurobi Compute Server, Distributed Algorithms, and Gurobi Remote Services.
Getting Help
If you have a question that is not answered in this document, please visit the Gurobi support site at https://support.gurobi.com. There, you can read knowledge base articles and join the community discussion forum. Also, if you have a current maintenance contract, you can use the Gurobi support site to submit a request to the Gurobi support team.
Trademarks
“Python®” is a registered trademark of the Python Software Foundation. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Concepts#
Features#
- Batch Optimization
- Callbacks
- Concurrent Optimization
- Distributed Optimization
- Gurobi Instant Cloud
- Infeasibility Analysis
- Multiple Objectives
- Multiple Scenarios
- Nonlinear Constraints
- Parameter Tuning Tool
- Recording API Calls
- Solution Pool
Reference#
- Release Notes for Gurobi 13.0
- Additions, Changes and Removals
- Release Highlights
- New Features
- NL Barrier Method for Solving NLPs to Local Optimality
- PDHG Algorithm
- PDHG on NVIDIA GPUs
- NoRel Heuristic for a Limited Number of Solutions
- NoRel Heuristic with Variable Hints
- Specify
whereFlags for Callbacks - Additional Option for Thread Usage
- Additional Operations in Nonlinear Expressions
- Extended Log Output
- Ignore Parameter Settings for Tuning
- Branching Priority and Multiple MIP starts in Tuner
- Control Parameter Inheritance
- Multi-objective attributes
- Barrier Optimization Status before starting Crossover
- Changes to gurobipy
- Changes to MATLAB API
- Changes to R API
- Changes to C++ API
- Changes to JSON solution file format
- Other Notable Changes
- Deprecated functionality
- Removal of deprecated functionality
- Supported Platforms
- Fixed Issues in this Release
- Known Issues in this Release
- Compute Server, Cluster Manager, and Instant Cloud
- Additions, Changes and Removals
- C API
- Overview
- Environments
- Models
- Solving a Model
- Multiple Solutions, Objectives, and Scenarios
- Infeasible Models
- Querying and Modifying Attributes
- Additional Model Modification Information
- Lazy Updates
- Managing Parameters
- Monitoring Progress - Logging and Callbacks
- Modifying Solver Behavior - Callbacks
- Batch Optimization
- Error Handling
- Environment Creation and Destruction
- Model Creation and Modification
GRBloadmodelGRBnewmodelGRBcopymodelGRBcopymodeltoenvGRBaddconstrGRBaddconstrsGRBaddgenconstrMaxGRBaddgenconstrMinGRBaddgenconstrAbsGRBaddgenconstrAndGRBaddgenconstrOrGRBaddgenconstrNormGRBaddgenconstrNLGRBaddgenconstrIndicatorGRBaddgenconstrPWLGRBaddgenconstrPolyGRBaddgenconstrExpGRBaddgenconstrExpAGRBaddgenconstrLogGRBaddgenconstrLogAGRBaddgenconstrLogisticGRBaddgenconstrPowGRBaddgenconstrSinGRBaddgenconstrCosGRBaddgenconstrTanGRBdelgenconstrsGRBaddqconstrGRBaddqptermsGRBaddrangeconstrGRBaddrangeconstrsGRBaddsosGRBaddvarGRBaddvarsGRBchgcoeffsGRBdelconstrsGRBdelqGRBdelqconstrsGRBdelsosGRBdelvarsGRBsetobjectivenGRBsetpwlobjGRBupdatemodelGRBfreemodelGRBXaddconstrsGRBXaddrangeconstrsGRBXaddvarsGRBXchgcoeffsGRBXloadmodel
- Model Solution
- Model Queries
GRBgetcoeffGRBgetconstrbynameGRBgetconstrsGRBgetenvGRBgetgenconstrMaxGRBgetgenconstrMinGRBgetgenconstrAbsGRBgetgenconstrAndGRBgetgenconstrOrGRBgetgenconstrNormGRBgetgenconstrNLGRBgetgenconstrIndicatorGRBgetgenconstrPWLGRBgetgenconstrPolyGRBgetgenconstrExpGRBgetgenconstrExpAGRBgetgenconstrLogGRBgetgenconstrLogAGRBgetgenconstrLogisticGRBgetgenconstrPowGRBgetgenconstrSinGRBgetgenconstrCosGRBgetgenconstrTanGRBgetjsonsolutionGRBgetpwlobjGRBgetqGRBgetqconstrGRBgetqconstrbynameGRBgetsosGRBgetvarbynameGRBgetvarsGRBsinglescenariomodelGRBXgetconstrsGRBXgetvars
- Input-Output
- Attribute Management
GRBgetattrinfoGRBgetintattrGRBsetintattrGRBgetintattrelementGRBsetintattrelementGRBgetintattrarrayGRBsetintattrarrayGRBgetintattrlistGRBsetintattrlistGRBgetdblattrGRBsetdblattrGRBgetdblattrelementGRBsetdblattrelementGRBgetdblattrarrayGRBsetdblattrarrayGRBgetdblattrlistGRBsetdblattrlistGRBgetcharattrelementGRBsetcharattrelementGRBgetcharattrarrayGRBsetcharattrarrayGRBgetcharattrlistGRBsetcharattrlistGRBgetstrattrGRBsetstrattrGRBgetstrattrelementGRBsetstrattrelementGRBgetstrattrarrayGRBsetstrattrarrayGRBgetstrattrlistGRBsetstrattrlistGRBgetbatchattrinfo
- Parameter Management
- Monitoring Progress - Logging and Callbacks
- Modifying Solver Behavior - Callbacks
- Batch Requests
- Error Handling
- Parameter Tuning
- Advanced simplex routines
- Overview
- C++ API
- Overview
- Environments
- Models
- Solving a Model
- Multiple Solutions, Objectives, and Scenarios
- Infeasible Models
- Querying and Modifying Attributes
- Additional Model Modification Information
- Lazy Updates
- Managing Parameters
- Memory Management
- Monitoring Progress - Logging and Callbacks
- Modifying Solver Behavior - Callbacks
- Batch Optimization
- Error Handling
- GRBEnv
- GRBModel
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::write
- GRBVar
- GRBConstr
- GRBQConstr
- GRBSOS
- GRBGenConstr
- GRBExpr
- GRBLinExpr
GRBLinExprGRBLinExpr::GRBLinExprGRBLinExpr::GRBLinExprGRBLinExpr::addTermsGRBLinExpr::clearGRBLinExpr::getConstantGRBLinExpr::getCoeffGRBLinExpr::getValueGRBLinExpr::getVarGRBLinExpr::operator=GRBLinExpr::operator+GRBLinExpr::operator-GRBLinExpr::operator+=GRBLinExpr::operator-=GRBLinExpr::operator*=GRBLinExpr::removeGRBLinExpr::removeGRBLinExpr::size
- GRBQuadExpr
GRBQuadExprGRBQuadExpr::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::size
- GRBTempConstr
- GRBColumn
- GRBCallback
GRBCallbackGRBCallback::GRBCallbackGRBCallback::abortGRBCallback::addCutGRBCallback::addCutGRBCallback::addLazyGRBCallback::addLazyGRBCallback::getDoubleInfoGRBCallback::getIntInfoGRBCallback::getNodeRelGRBCallback::getNodeRelGRBCallback::getSolutionGRBCallback::getSolutionGRBCallback::getStringInfoGRBCallback::proceedGRBCallback::setGRBCallback::setGRBCallback::setGRBCallback::setSolutionGRBCallback::setSolutionGRBCallback::stopOneMultiObjGRBCallback::useSolution
- GRBException
- GRBBatch
- Overloaded Operators
- Enums
- Overview
- Java API
- Overview
- Environments
- Models
- Solving a Model
- Multiple Solutions, Objectives, and Scenarios
- Infeasible Models
- Querying and Modifying Attributes
- Additional Model Modification Information
- Lazy Updates
- Managing Parameters
- Memory Management
- Native Code
- Monitoring Progress - Logging and Callbacks
- Modifying Solver Behavior - Callbacks
- Batch Optimization
- Error Handling
- GRBEnv
- GRBModel
GRBModelGRBModel.GRBModelGRBModel.GRBModelGRBModel.GRBModelGRBModel.GRBModelGRBModel.addConstrGRBModel.addConstrGRBModel.addConstrGRBModel.addConstrGRBModel.addConstrGRBModel.addConstrGRBModel.addConstrGRBModel.addConstrGRBModel.addConstrsGRBModel.addConstrsGRBModel.addConstrsGRBModel.addGenConstrMaxGRBModel.addGenConstrMinGRBModel.addGenConstrAbsGRBModel.addGenConstrAndGRBModel.addGenConstrOrGRBModel.addGenConstrNormGRBModel.addGenConstrNLGRBModel.addGenConstrIndicatorGRBModel.addGenConstrPWLGRBModel.addGenConstrPolyGRBModel.addGenConstrExpGRBModel.addGenConstrExpAGRBModel.addGenConstrLogGRBModel.addGenConstrLogAGRBModel.addGenConstrLogisticGRBModel.addGenConstrPowGRBModel.addGenConstrSinGRBModel.addGenConstrCosGRBModel.addGenConstrTanGRBModel.addQConstrGRBModel.addQConstrGRBModel.addQConstrGRBModel.addQConstrGRBModel.addQConstrGRBModel.addQConstrGRBModel.addQConstrGRBModel.addRangeGRBModel.addRangesGRBModel.addSOSGRBModel.addVarGRBModel.addVarGRBModel.addVarGRBModel.addVarsGRBModel.addVarsGRBModel.addVarsGRBModel.addVarsGRBModel.chgCoeffGRBModel.chgCoeffsGRBModel.computeIISGRBModel.convertToFixedGRBModel.discardConcurrentEnvsGRBModel.discardMultiobjEnvsGRBModel.disposeGRBModel.feasRelaxGRBModel.feasRelaxGRBModel.fixedModelGRBModel.get[Param]GRBModel.get[Attr]GRBModel.get[Attr,1D]GRBModel.get[Attr,1D]GRBModel.get[Attr,2D]GRBModel.get[Attr,3D]GRBModel.getCoeffGRBModel.getColGRBModel.getConcurrentEnvGRBModel.getConstrByNameGRBModel.getConstrsGRBModel.getGenConstrMaxGRBModel.getGenConstrMinGRBModel.getGenConstrAbsGRBModel.getGenConstrAndGRBModel.getGenConstrOrGRBModel.getGenConstrNormGRBModel.getGenConstrNLGRBModel.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.resetGRBModel.resetParamsGRBModel.setCallbackGRBModel.setCallbackGRBModel.set[Param]GRBModel.set[Param]GRBModel.set[Attr]GRBModel.set[Attr,1D]GRBModel.set[Attr,1D]GRBModel.set[Attr,2D]GRBModel.set[Attr,3D]GRBModel.setLogCallbackGRBModel.setObjectiveGRBModel.setObjectiveGRBModel.setObjectiveNGRBModel.setPWLObjGRBModel.singleScenarioModelGRBModel.syncGRBModel.terminateGRBModel.tuneGRBModel.updateGRBModel.write
- GRBVar
- GRBConstr
- GRBQConstr
- GRBSOS
- GRBGenConstr
- GRBExpr
- GRBLinExpr
GRBLinExprGRBLinExpr.GRBLinExprGRBLinExpr.GRBLinExprGRBLinExpr.addGRBLinExpr.addConstantGRBLinExpr.addTermGRBLinExpr.addTermsGRBLinExpr.addTermsGRBLinExpr.clearGRBLinExpr.getConstantGRBLinExpr.getCoeffGRBLinExpr.getValueGRBLinExpr.getVarGRBLinExpr.multAddGRBLinExpr.removeGRBLinExpr.removeGRBLinExpr.size
- GRBQuadExpr
GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.addGRBQuadExpr.addGRBQuadExpr.addConstantGRBQuadExpr.addTermGRBQuadExpr.addTermGRBQuadExpr.addTermsGRBQuadExpr.addTermsGRBQuadExpr.addTermsGRBQuadExpr.addTermsGRBQuadExpr.clearGRBQuadExpr.getCoeffGRBQuadExpr.getLinExprGRBQuadExpr.getValueGRBQuadExpr.getVar1GRBQuadExpr.getVar2GRBQuadExpr.multAddGRBQuadExpr.multAddGRBQuadExpr.removeGRBQuadExpr.removeGRBQuadExpr.size
- GRBColumn
- GRBCallback
GRBCallbackGRBCallback.GRBCallbackGRBCallback.abortGRBCallback.addCutGRBCallback.addLazyGRBCallback.getDoubleInfoGRBCallback.getIntInfoGRBCallback.getNodeRelGRBCallback.getNodeRelGRBCallback.getNodeRelGRBCallback.getSolutionGRBCallback.getSolutionGRBCallback.getSolutionGRBCallback.getStringInfoGRBCallback.proceedGRBCallback.setGRBCallback.setGRBCallback.setGRBCallback.setSolutionGRBCallback.setSolutionGRBCallback.stopOneMultiObjGRBCallback.useSolution
- GRBException
- GRBBatch
- GRB
- Overview
- .NET API
- Overview
- Environments
- Models
- Solving a Model
- Multiple Solutions, Objectives, and Scenarios
- Infeasible Models
- Querying and Modifying Attributes
- Additional Model Modification Information
- Lazy Updates
- Managing Parameters
- Memory Management
- Native Code
- Monitoring Progress - Logging and Callbacks
- Modifying Solver Behavior - Callbacks
- Batch Optimization
- Error Handling
- GRBEnv
- GRBModel
GRBModelGRBModel.GRBModelGRBModel.GRBModelGRBModel.GRBModelGRBModel.GRBModelGRBModel.AddConstrGRBModel.AddConstrGRBModel.AddConstrsGRBModel.AddConstrsGRBModel.AddConstrsGRBModel.AddGenConstrMaxGRBModel.AddGenConstrMinGRBModel.AddGenConstrAbsGRBModel.AddGenConstrAndGRBModel.AddGenConstrOrGRBModel.AddGenConstrNormGRBModel.AddGenConstrNLGRBModel.AddGenConstrIndicatorGRBModel.AddGenConstrIndicatorGRBModel.AddGenConstrPWLGRBModel.AddGenConstrPolyGRBModel.AddGenConstrExpGRBModel.AddGenConstrExpAGRBModel.AddGenConstrLogGRBModel.AddGenConstrLogAGRBModel.AddGenConstrLogisticGRBModel.AddGenConstrPowGRBModel.AddGenConstrSinGRBModel.AddGenConstrCosGRBModel.AddGenConstrTanGRBModel.AddQConstrGRBModel.AddQConstrGRBModel.AddRangeGRBModel.AddRangesGRBModel.AddSOSGRBModel.AddVarGRBModel.AddVarGRBModel.AddVarGRBModel.AddVarsGRBModel.AddVarsGRBModel.AddVarsGRBModel.AddVarsGRBModel.ChgCoeffGRBModel.ChgCoeffsGRBModel.ComputeIISGRBModel.ConvertToFixedGRBModel.DiscardConcurrentEnvsGRBModel.DiscardMultiobjEnvsGRBModel.DisposeGRBModel.FeasRelaxGRBModel.FeasRelaxGRBModel.FixedModelGRBModel.Get[Param]GRBModel.Get[Attr]GRBModel.Get[Attr,1D]GRBModel.Get[Attr,1D]GRBModel.Get[Attr,2D]GRBModel.Get[Attr,3D]GRBModel.GetCoeffGRBModel.GetColGRBModel.GetConcurrentEnvGRBModel.GetConstrByNameGRBModel.GetConstrsGRBModel.GetGenConstrMaxGRBModel.GetGenConstrMinGRBModel.GetGenConstrAbsGRBModel.GetGenConstrAndGRBModel.GetGenConstrOrGRBModel.GetGenConstrNormGRBModel.GetGenConstrNLGRBModel.GetGenConstrIndicatorGRBModel.GetGenConstrPWLGRBModel.GetGenConstrPolyGRBModel.GetGenConstrExpGRBModel.GetGenConstrExpAGRBModel.GetGenConstrLogGRBModel.GetGenConstrLogAGRBModel.GetGenConstrLogisticGRBModel.GetGenConstrPowGRBModel.GetGenConstrSinGRBModel.GetGenConstrCosGRBModel.GetGenConstrTanGRBModel.GetGenConstrsGRBModel.GetJSONSolutionGRBModel.GetMultiobjEnvGRBModel.GetObjectiveGRBModel.GetObjectiveGRBModel.GetPWLObjGRBModel.GetQConstrsGRBModel.GetQCRowGRBModel.GetRowGRBModel.GetSOSGRBModel.GetSOSsGRBModel.GetTuneResultGRBModel.GetVarByNameGRBModel.GetVarsGRBModel.OptimizeGRBModel.OptimizeAsyncGRBModel.OptimizeBatchGRBModel.ParametersGRBModel.PresolveGRBModel.ReadGRBModel.RemoveGRBModel.ResetGRBModel.ResetGRBModel.ResetParamsGRBModel.SetCallbackGRBModel.SetCallbackGRBModel.Set[Param]GRBModel.Set[Attr]GRBModel.Set[Attr,1D]GRBModel.Set[Attr,1D]GRBModel.Set[Attr,2D]GRBModel.Set[Attr,3D]GRBModel.SetObjectiveGRBModel.SetObjectiveGRBModel.SetObjectiveNGRBModel.SetPWLObjGRBModel.SingleScenarioModelGRBModel.SyncGRBModel.TerminateGRBModel.TuneGRBModel.UpdateGRBModel.Write
- GRBVar
- GRBConstr
- GRBQConstr
- GRBSOS
- GRBGenConstr
- GRBExpr
- GRBLinExpr
GRBLinExprGRBLinExpr.GRBLinExprGRBLinExpr.GRBLinExprGRBLinExpr.GRBLinExprGRBLinExpr.AddGRBLinExpr.AddConstantGRBLinExpr.AddTermGRBLinExpr.AddTermsGRBLinExpr.AddTermsGRBLinExpr.ClearGRBLinExpr.ConstantGRBLinExpr.GetCoeffGRBLinExpr.GetVarGRBLinExpr.MultAddGRBLinExpr.RemoveGRBLinExpr.RemoveGRBLinExpr.SizeGRBLinExpr.Value
- GRBQuadExpr
GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.AddGRBQuadExpr.AddGRBQuadExpr.AddConstantGRBQuadExpr.AddTermGRBQuadExpr.AddTermGRBQuadExpr.AddTermsGRBQuadExpr.AddTermsGRBQuadExpr.AddTermsGRBQuadExpr.AddTermsGRBQuadExpr.ClearGRBQuadExpr.GetCoeffGRBQuadExpr.GetVar1GRBQuadExpr.GetVar2GRBQuadExpr.LinExprGRBQuadExpr.MultAddGRBQuadExpr.MultAddGRBQuadExpr.RemoveGRBQuadExpr.RemoveGRBQuadExpr.SizeGRBQuadExpr.Value
- GRBTempConstr
- GRBColumn
- Overloaded Operators
- GRBCallback
GRBCallbackGRBCallback.GRBCallbackGRBCallback.AbortGRBCallback.AddCutGRBCallback.AddCutGRBCallback.AddLazyGRBCallback.AddLazyGRBCallback.GetDoubleInfoGRBCallback.GetIntInfoGRBCallback.GetNodeRelGRBCallback.GetNodeRelGRBCallback.GetNodeRelGRBCallback.GetSolutionGRBCallback.GetSolutionGRBCallback.GetSolutionGRBCallback.GetStringInfoGRBCallback.ProceedGRBCallback.SetGRBCallback.SetGRBCallback.SetGRBCallback.SetSolutionGRBCallback.SetSolutionGRBCallback.StopOneMultiObjGRBCallback.UseSolution
- GRBException
- GRBBatch
- GRB
- Overview
- Python API
- Overview
- Global Functions
- Models
- Environments
- Solving a Model
- Multiple Solutions, Objectives, and Scenarios
- Infeasible Models
- Querying and Modifying Attributes
- Additional Model Modification Information
- Lazy Updates
- Managing Parameters
- Monitoring Progress - Logging
- Monitoring Progress - Callbacks
- Modifying Solver Behavior - Callbacks
- Batch Optimization
- Error Handling
- Global Functions
- Model
ModelModel.ModelModel.addConstrModel.addConstrsModel.addGenConstrMaxModel.addGenConstrMinModel.addGenConstrAbsModel.addGenConstrAndModel.addGenConstrOrModel.addGenConstrNormModel.addGenConstrIndicatorModel.addGenConstrPWLModel.addGenConstrPolyModel.addGenConstrExpModel.addGenConstrExpAModel.addGenConstrLogModel.addGenConstrLogAModel.addGenConstrLogisticModel.addGenConstrPowModel.addGenConstrSinModel.addGenConstrCosModel.addGenConstrTanModel.addGenConstrNLModel.addGenConstrNLAdvModel.addLConstrModel.addMConstrModel.addMQConstrModel.addMVarModel.addQConstrModel.addRangeModel.addSOSModel.addVarModel.addVarsModel.cbCutModel.cbGetModel.cbGetNodeRelModel.cbGetSolutionModel.cbLazyModel.cbProceedModel.cbSetParamModel.cbSetSolutionModel.cbStopOneMultiObjModel.cbUseSolutionModel.chgCoeffModel.closeModel.computeIISModel.convertToFixedModel.copyModel.discardConcurrentEnvsModel.discardMultiobjEnvsModel.disposeModel.feasRelaxSModel.feasRelaxModel.fixedModel.getAModel.getQModel.getQCMatricesModel.getAttrModel.getCoeffModel.getColModel.getConcurrentEnvModel.getConstrByNameModel.getConstrsModel.getGenConstrMaxModel.getGenConstrMinModel.getGenConstrAbsModel.getGenConstrAndModel.getGenConstrOrModel.getGenConstrNormModel.getGenConstrIndicatorModel.getGenConstrPWLModel.getGenConstrPolyModel.getGenConstrExpModel.getGenConstrExpAModel.getGenConstrLogModel.getGenConstrLogAModel.getGenConstrLogisticModel.getGenConstrPowModel.getGenConstrSinModel.getGenConstrCosModel.getGenConstrTanModel.getGenConstrNLModel.getGenConstrNLAdvModel.getGenConstrsModel.getJSONSolutionModel.getMultiobjEnvModel.getObjectiveModel.getParamInfoModel.getPWLObjModel.getQConstrsModel.getQCRowModel.getRowModel.getSOSModel.getSOSsModel.getTuneResultModel.getVarByNameModel.getVarsModel.messageModel.optimizeModel.optimizeAsyncModel.optimizeBatchModel.ParamsModel.presolveModel.printAttrModel.printQualityModel.printStatsModel.readModel.relaxModel.removeModel.resetModel.resetParamsModel.setAttrModel.setMObjectiveModel.setObjectiveModel.setObjectiveNModel.setPWLObjModel.setParamModel.singleScenarioModelModel.syncModel.terminateModel.tuneModel.updateModel.write
- Var
- MVar
- Constr
- MConstr
- MQConstr
- QConstr
- SOS
- GenConstr
- MGenConstr
- LinExpr
- QuadExpr
QuadExprQuadExpr.QuadExprQuadExpr.addQuadExpr.addConstantQuadExpr.addTermsQuadExpr.clearQuadExpr.copyQuadExpr.getCoeffQuadExpr.getLinExprQuadExpr.getValueQuadExpr.getVar1QuadExpr.getVar2QuadExpr.linTermsQuadExpr.quadTermsQuadExpr.removeQuadExpr.sizeQuadExpr.__eq__QuadExpr.__le__QuadExpr.__ge__
- GenExpr
- NLExpr
- MLinExpr
- MQuadExpr
- MNLExpr
- TempConstr
- Column
- Callbacks
- GurobiError
- Env
- Batch
- GRB
- tuplelist
- tupledict
- General Constraint Helper Functions
- Matrix-Friendly API Functions
- Nonlinear Expression Helpers
- Low Level API
- Overview
- MATLAB API
- R API
- Gurobi Command-Line Tool
- Attribute Reference
- Model Attributes
- NumConstrs
- NumVars
- NumSOS
- NumQConstrs
- NumGenConstrs
- NumNZs
- DNumNZs
- NumQNZs
- NumQCNZs
- NumIntVars
- NumBinVars
- NumPWLObjVars
- ModelName
- ModelSense
- ObjCon
- Fingerprint
- ObjVal
- ObjBound
- ObjBoundC
- PoolObjBound
- PoolNObjVal
- PoolObjVal
- MIPGap
- Runtime
- Work
- MemUsed
- MaxMemUsed
- Status
- BarStatus
- SolCount
- IterCount
- BarIterCount
- NLBarIterCount
- PDHGIterCount
- NodeCount
- ConcurrentWinMethod
- IsMIP
- IsQP
- IsQCP
- IsMultiObj
- IISMinimal
- MaxCoeff
- MinCoeff
- MaxBound
- MinBound
- MaxObjCoeff
- MinObjCoeff
- MaxRHS
- MinRHS
- MaxQCCoeff
- MinQCCoeff
- MaxQCLCoeff
- MinQCLCoeff
- MaxQCRHS
- MinQCRHS
- MaxQObjCoeff
- MinQObjCoeff
- OpenNodeCount
- Kappa
- KappaExact
- FarkasProof
- TuneResultCount
- NumStart
- LicenseExpiration
- Variable Attributes
- Linear Constraint Attributes
- SOS Attributes
- Quadratic Constraint Attributes
- General Constraint Attributes
- Quality Attributes
- MaxVio
- BoundVio
- BoundSVio
- BoundVioIndex
- BoundSVioIndex
- BoundVioSum
- BoundSVioSum
- ConstrVio
- ConstrSVio
- ConstrVioIndex
- ConstrSVioIndex
- ConstrVioSum
- ConstrSVioSum
- ConstrResidual
- ConstrSResidual
- ConstrResidualIndex
- ConstrSResidualIndex
- ConstrResidualSum
- ConstrSResidualSum
- DualVio
- DualSVio
- DualVioIndex
- DualSVioIndex
- DualVioSum
- DualSVioSum
- DualResidual
- DualSResidual
- DualResidualIndex
- DualSResidualIndex
- DualResidualSum
- DualSResidualSum
- ComplVio
- ComplVioIndex
- ComplVioSum
- IntVio
- IntVioIndex
- IntVioSum
- PoolNMaxVio
- PoolNBoundVio
- PoolNBoundVioIndex
- PoolNBoundVioSum
- PoolNConstrVio
- PoolNConstrVioIndex
- PoolNConstrVioSum
- PoolNIntVio
- PoolNIntVioIndex
- PoolNIntVioSum
- Multi-objective Attributes
- Multi-Scenario Attributes
- Batch Attributes
- Model Attributes
- Parameter Reference
- AggFill
- Aggregate
- BarConvTol
- BarCorrectors
- BarHomogeneous
- BarIterLimit
- BarOrder
- BarQCPConvTol
- BestBdStop
- BestObjStop
- BQPCuts
- BranchDir
- CliqueCuts
- CloudAccessID
- CloudHost
- CloudSecretKey
- CloudPool
- ComputeServer
- ConcurrentJobs
- ConcurrentMethod
- ConcurrentMIP
- ConcurrentSettings
- CoverCuts
- Crossover
- CrossoverBasis
- CSAPIAccessID
- CSAPISecret
- CSAppName
- CSAuthToken
- CSBatchMode
- CSClientLog
- CSGroup
- CSIdleTimeout
- CSManager
- CSPriority
- CSQueueTimeout
- CSRouter
- CSTLSInsecure
- CutAggPasses
- Cutoff
- CutPasses
- Cuts
- DegenMoves
- Disconnected
- DisplayInterval
- DistributedMIPJobs
- DualImpliedCuts
- DualReductions
- FeasibilityTol
- FeasRelaxBigM
- FixVarsInIndicators
- FlowCoverCuts
- FlowPathCuts
- FuncPieceError
- FuncPieceLength
- FuncPieceRatio
- FuncPieces
- FuncMaxVal
- FuncNonlinear
- GomoryPasses
- GUBCoverCuts
- Heuristics
- IgnoreNames
- IISMethod
- ImpliedCuts
- ImproveStartGap
- ImproveStartNodes
- ImproveStartTime
- ImproveStartWork
- InfProofCuts
- InfUnbdInfo
- InheritParams
- InputFile
- IntegralityFocus
- IntFeasTol
- IterationLimit
- JobID
- JSONSolDetail
- LazyConstraints
- LicenseID
- LiftProjectCuts
- LPWarmStart
- LogFile
- LogToConsole
- MarkowitzTol
- MasterKnapsackCuts
- MemLimit
- Method
- MinRelNodes
- MIPFocus
- MIPGap
- MIPGapAbs
- MIPSepCuts
- MIQCPMethod
- MIRCuts
- MixingCuts
- ModKCuts
- MultiObjMethod
- MultiObjPre
- MultiObjSettings
- NetworkAlg
- NetworkCuts
- NLBarCFeasTol
- NLBarDFeasTol
- NLBarIterLimit
- NLBarPFeasTol
- NLPHeur
- NodefileDir
- NodefileStart
- NodeLimit
- NodeMethod
- NonConvex
- NoRelHeurSolutions
- NoRelHeurTime
- NoRelHeurWork
- NormAdjust
- NumericFocus
- OBBT
- ObjNumber
- ObjPassNumber
- ObjScale
- OptimalityTarget
- OptimalityTol
- OutputFlag
- PartitionPlace
- PDHGAbsTol
- PDHGConvTol
- PDHGGPU
- PDHGIterLimit
- PDHGRelTol
- PerturbValue
- PoolGap
- PoolGapAbs
- PoolSearchMode
- PoolSolutions
- PreCrush
- PreDepRow
- PreDual
- PreMIQCPForm
- PrePasses
- PreQLinearize
- Presolve
- PreSOS1BigM
- PreSOS1Encoding
- PreSOS2BigM
- PreSOS2Encoding
- PreSparsify
- ProjImpliedCuts
- PSDCuts
- PSDTol
- PumpPasses
- QCPDual
- Quad
- Record
- ResultFile
- RINS
- RelaxLiftCuts
- RLTCuts
- ScaleFlag
- ScenarioNumber
- Seed
- ServerPassword
- ServerTimeout
- Sifting
- SiftMethod
- SimplexPricing
- SoftMemLimit
- SolutionLimit
- SolutionTarget
- SolFiles
- SolutionNumber
- StartNodeLimit
- StartNumber
- StartTimeLimit
- StartWorkLimit
- StrongCGCuts
- SubMIPCuts
- SubMIPNodes
- Symmetry
- ThreadLimit
- Threads
- TimeLimit
- TokenServer
- TSPort
- TuneBaseSettings
- TuneCleanup
- TuneCriterion
- TuneDynamicJobs
- TuneIgnoreSettings
- TuneJobs
- TuneMetric
- TuneOutput
- TuneParams
- TuneResults
- TuneTargetMIPGap
- TuneTargetTime
- TuneTimeLimit
- TuneTrials
- TuneUseFilename
- UpdateMode
- Username
- VarBranch
- WLSAccessID
- WLSConfig
- WLSProxy
- WLSSecret
- WLSToken
- WLSTokenDuration
- WLSTokenRefresh
- WorkerPassword
- WorkerPool
- WorkLimit
- ZeroHalfCuts
- ZeroObjNodes
- Numeric Codes
- File Formats