Gurobi Optimizer Reference Manual
This is the reference manual for the GurobiTM Optimizer. It contains documentation for the C, C++, Java®, and Python® library interfaces. The Gurobi interactive shell is also documented in the Python section.
The different Gurobi language interfaces share many common features. These are described at the end of this manual. Two particularly important common features are the Attribute interface and the Gurobi Parameter set. You may wish to bookmark these pages, since you are likely to refer to them frequently as you develop applications that use the Gurobi Optimizer.
If you would like to use the Gurobi Optimizer from the Microsoft .NET framework, you should use Microsoft Solver Foundation. The Solver Foundation framework provides a rich integration between optimization models and the .NET environment. The Gurobi solver is the default MIP solver in Solver Foundation, and it is included with the Solver Foundation distribution. You can download a Solver Foundation trial, which includes Solver Foundation documentation and examples, as well as Gurobi-specific samples and documentation, from the Solver Foundation web site.
If you have purchased maintenance from us and you have a question that is not answered in this document, you can send your question to support@gurobi.com.
- C Reference Manual
- Environment Creation and Destruction
- Model Creation and Modification
- Model Solution
- Model Queries
- Input/Output
- Attribute Management
- GRBgetattrinfo
- GRBgetintattr
- GRBsetintattr
- GRBgetintattrelement
- GRBsetintattrelement
- GRBgetintattrarray
- GRBsetintattrarray
- GRBgetintattrlist
- GRBsetintattrlist
- GRBgetdblattr
- GRBsetdblattr
- GRBgetdblattrelement
- GRBsetdblattrelement
- GRBgetdblattrarray
- GRBsetdblattrarray
- GRBgetdblattrlist
- GRBsetdblattrlist
- GRBgetcharattrelement
- GRBsetcharattrelement
- GRBgetcharattrarray
- GRBsetcharattrarray
- GRBgetcharattrlist
- GRBsetcharattrlist
- GRBgetstrattr
- GRBsetstrattr
- GRBgetstrattrelement
- GRBsetstrattrelement
- GRBgetstrattrarray
- GRBsetstrattrarray
- GRBgetstrattrlist
- GRBsetstrattrlist
- Parameter Management
- Monitoring Progress - Logging and Callbacks
- Modifying Solver Behavior - Callbacks
- Error Handling
- C++ Reference Manual
- GRBEnv
- GRBModel
- GRBModel()
- GRBModel::addConstr()
- GRBModel::addConstrs()
- GRBModel::addRange()
- GRBModel::addRanges()
- GRBModel::addSOS()
- GRBModel::addVar()
- GRBModel::addVars()
- GRBModel::chgCoeff()
- GRBModel::chgCoeffs()
- GRBModel::computeIIS()
- GRBModel::fixedModel()
- GRBModel::get()
- GRBModel::getCoeff()
- GRBModel::getCol()
- GRBModel::getConstrs()
- GRBModel::getEnv()
- GRBModel::getRow()
- GRBModel::getSOS()
- GRBModel::getVars()
- GRBModel::optimize()
- GRBModel::presolve()
- GRBModel::read()
- GRBModel::remove()
- GRBModel::reset()
- GRBModel::setCallback()
- GRBModel::set()
- GRBModel::terminate()
- GRBModel::update()
- GRBModel::write()
- GRBVar
- GRBConstr
- GRBSOS
- GRBLinExpr
- GRBLinExpr()
- GRBLinExpr::addTerms()
- GRBLinExpr::clear()
- GRBLinExpr::getConstant()
- GRBLinExpr::getCoeff()
- GRBLinExpr::getVar()
- GRBLinExpr::operator=
- GRBLinExpr::operator+
- GRBLinExpr::operator-
- GRBLinExpr::operator+=
- GRBLinExpr::operator-=
- GRBLinExpr::operator*=
- GRBLinExpr::remove()
- GRBLinExpr::size()
- GRBTempConstr
- GRBColumn
- GRBCallback
- GRBException
- Non-Member Functions
- Attribute Enums
- Parameter Enums
- Java Reference Manual
- GRBEnv
- GRBModel
- GRBModel()
- GRBModel.addConstr()
- GRBModel.addConstrs()
- GRBModel.addRange()
- GRBModel.addRanges()
- GRBModel.addSOS()
- GRBModel.addVar()
- GRBModel.addVars()
- GRBModel.chgCoeff()
- GRBModel.chgCoeffs()
- GRBModel.computeIIS()
- GRBModel.fixedModel()
- GRBModel.get()
- GRBModel.getCoeff()
- GRBModel.getCol()
- GRBModel.getConstrs()
- GRBModel.getEnv()
- GRBModel.getRow()
- GRBModel.getSOS()
- GRBModel.getVars()
- GRBModel.optimize()
- GRBModel.presolve()
- GRBModel.read()
- GRBModel.remove()
- GRBModel.reset()
- GRBModel.setCallback()
- GRBModel.set()
- GRBModel.terminate()
- GRBModel.update()
- GRBModel.write()
- GRBVar
- GRBConstr
- GRBSOS
- GRBLinExpr
- GRBColumn
- GRBCallback
- GRBException
- GRB
- Python Reference Manual
- Global Functions
- Model
- Model()
- Model.addConstr()
- Model.addRange()
- Model.addSOS()
- Model.addVar()
- Model.chgCoeff()
- Model.computeIIS()
- Model.copy()
- Model.fixed()
- Model.getAttr()
- Model.getCoeff()
- Model.getCol()
- Model.getConstrs()
- Model.getParamInfo()
- Model.getRow()
- Model.getSOS()
- Model.getVars()
- Model.optimize()
- Model.presolve()
- Model.printAttr()
- Model.printQuality()
- Model.printStats()
- Model.cbCut()
- Model.cbGet()
- Model.cbGetNodeRel()
- Model.cbGetSolution()
- Model.cbSetSolution()
- Model.read()
- Model.relax()
- Model.remove()
- Model.reset()
- Model.setAttr()
- Model.setParam()
- Model.terminate()
- Model.update()
- Model.write()
- Var
- Constr
- SOS
- LinExpr
- Column
- Callbacks
- GurobiError
- GRB
- Attributes
- Parameters
- Optimization Status Codes
- Callback Codes
- Error Codes
- File Formats
- Logging
