Concepts
Features
Reference
This section documents the Gurobi Java 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 prefer Javadoc format, documentation for the Gurobi Java interface isalso available in filegurobi-javadoc.jar. Javadoc format is particularlyhelpful when used from an integrated development environment like Eclipse.Please consult the documentation for your IDE for information on how to importJavadoc files.
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.
You will find instructions on how toinstall the Gurobi Java interface in theGurobi Java API installation guide.
Contents
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.writeGRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.GRBQuadExprGRBQuadExpr.addGRBQuadExpr.addGRBQuadExpr.addConstantGRBQuadExpr.addTermGRBQuadExpr.addTermGRBQuadExpr.addTermsGRBQuadExpr.addTermsGRBQuadExpr.addTermsGRBQuadExpr.addTermsGRBQuadExpr.clearGRBQuadExpr.getCoeffGRBQuadExpr.getLinExprGRBQuadExpr.getValueGRBQuadExpr.getVar1GRBQuadExpr.getVar2GRBQuadExpr.multAddGRBQuadExpr.multAddGRBQuadExpr.removeGRBQuadExpr.removeGRBQuadExpr.sizeGRBCallbackGRBCallback.GRBCallbackGRBCallback.abortGRBCallback.addCutGRBCallback.addLazyGRBCallback.getDoubleInfoGRBCallback.getIntInfoGRBCallback.getNodeRelGRBCallback.getNodeRelGRBCallback.getNodeRelGRBCallback.getSolutionGRBCallback.getSolutionGRBCallback.getSolutionGRBCallback.getStringInfoGRBCallback.proceedGRBCallback.setGRBCallback.setGRBCallback.setGRBCallback.setSolutionGRBCallback.setSolutionGRBCallback.stopOneMultiObjGRBCallback.useSolutionHelp and Feedback