Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Model
Gurobi model object. Commonly used methods on the model object in the Gurobi shell include optimize (optimizes the model), printStats (prints statistics about the model), printAttr (prints the values of an attribute), and write (writes information about the model to a file). Commonly used methods when building a model include addVar (adds a new variable), addVars (adds multiple new variables), addMVar (adds an a NumPy ndarray of Gurobi variables), addConstr (adds a new constraint), and addConstrs (adds multiple new constraints).
Subsections
- Model()
- Model.addConstr()
- Model.addConstrs()
- Model.addGenConstrXxx()
- Model.addGenConstrMax()
- Model.addGenConstrMin()
- Model.addGenConstrAbs()
- Model.addGenConstrAnd()
- Model.addGenConstrOr()
- Model.addGenConstrIndicator()
- Model.addGenConstrPWL()
- Model.addGenConstrPoly()
- Model.addGenConstrExp()
- Model.addGenConstrExpA()
- Model.addGenConstrLog()
- Model.addGenConstrLogA()
- Model.addGenConstrPow()
- Model.addGenConstrSin()
- Model.addGenConstrCos()
- Model.addGenConstrTan()
- Model.addLConstr()
- Model.addMConstrs()
- Model.addMQConstr()
- Model.addMVar()
- Model.addQConstr()
- Model.addRange()
- Model.addSOS()
- Model.addVar()
- Model.addVars()
- Model.cbCut()
- Model.cbGet()
- Model.cbGetNodeRel()
- Model.cbGetSolution()
- Model.cbLazy()
- Model.cbSetSolution()
- Model.cbStopOneMultiObj()
- Model.cbUseSolution()
- Model.chgCoeff()
- Model.computeIIS()
- Model.copy()
- Model.discardConcurrentEnvs()
- Model.discardMultiobjEnvs()
- Model.dispose()
- Model.feasRelaxS()
- Model.feasRelax()
- Model.fixed()
- Model.getA()
- Model.getAttr()
- Model.getCoeff()
- Model.getCol()
- Model.getConcurrentEnv()
- Model.getConstrByName()
- Model.getConstrs()
- Model.getGenConstrMax()
- Model.getGenConstrMin()
- Model.getGenConstrAbs()
- Model.getGenConstrAnd()
- Model.getGenConstrOr()
- Model.getGenConstrIndicator()
- Model.getGenConstrPWL()
- Model.getGenConstrPoly()
- Model.getGenConstrExp()
- Model.getGenConstrExpA()
- Model.getGenConstrLog()
- Model.getGenConstrLogA()
- Model.getGenConstrPow()
- Model.getGenConstrSin()
- Model.getGenConstrCos()
- Model.getGenConstrTan()
- Model.getGenConstrs()
- Model.getJSONSolution()
- Model.getMultiobjEnv()
- Model.getObjective()
- Model.getParamInfo()
- Model.getPWLObj()
- Model.getQConstrs()
- Model.getQCRow()
- Model.getRow()
- Model.getSOS()
- Model.getSOSs()
- Model.getTuneResult()
- Model.getVarByName()
- Model.getVars()
- Model.message()
- Model.optimize()
- Model.optimizeBatch()
- Model.presolve()
- Model.printAttr()
- Model.printQuality()
- Model.printStats()
- Model.read()
- Model.relax()
- Model.remove()
- Model.reset()
- Model.resetParams()
- Model.setAttr()
- Model.setMObjective()
- Model.setObjective()
- Model.setObjectiveN()
- Model.setPWLObj()
- Model.setParam()
- Model.singleScenarioModel()
- Model.terminate()
- Model.tune()
- Model.update()
- Model.write()