Try our new documentation site (beta).
GRBModel
Gurobi model object. Commonly used methods include AddVar (adds a new decision variable to the model), AddConstr (adds a new constraint to the model), Optimize (optimizes the current model), and Get (retrieves the value of an attribute).
Objects of this class have unmanaged resources associated with them.
The class implements the IDisposable
interface.
While the .NET garbage collector will eventually collect an unused
GRBModel
object, the vast majority of the memory associated
with a model is stored outside of the .NET heap. As a result, the
garbage collector can't see this memory usage, and thus it can't take
this quantity into account when deciding whether collection is
necessary. We recommend that you call
GRBModel.Dispose when
you are done using a model (or use the .NET using
statement).
Subsections
- GRBModel()
- GRBModel.AddConstr()
- GRBModel.AddConstrs()
- GRBModel.AddGenConstrXxx()
- GRBModel.AddGenConstrMax()
- GRBModel.AddGenConstrMin()
- GRBModel.AddGenConstrAbs()
- GRBModel.AddGenConstrAnd()
- GRBModel.AddGenConstrOr()
- GRBModel.AddGenConstrNorm()
- GRBModel.AddGenConstrIndicator()
- GRBModel.AddGenConstrPWL()
- GRBModel.AddGenConstrPoly()
- GRBModel.AddGenConstrExp()
- GRBModel.AddGenConstrExpA()
- GRBModel.AddGenConstrLog()
- GRBModel.AddGenConstrLogA()
- GRBModel.AddGenConstrLogistic()
- GRBModel.AddGenConstrPow()
- GRBModel.AddGenConstrSin()
- GRBModel.AddGenConstrCos()
- GRBModel.AddGenConstrTan()
- GRBModel.AddQConstr()
- GRBModel.AddRange()
- GRBModel.AddRanges()
- GRBModel.AddSOS()
- GRBModel.AddVar()
- GRBModel.AddVars()
- GRBModel.ChgCoeff()
- GRBModel.ChgCoeffs()
- GRBModel.ComputeIIS()
- GRBModel.DiscardConcurrentEnvs()
- GRBModel.DiscardMultiobjEnvs()
- GRBModel.Dispose()
- GRBModel.FeasRelax()
- GRBModel.FixedModel()
- GRBModel.Get()
- GRBModel.GetCoeff()
- GRBModel.GetCol()
- GRBModel.GetConcurrentEnv()
- GRBModel.GetConstrByName()
- GRBModel.GetConstrs()
- GRBModel.GetGenConstrXxx()
- GRBModel.GetGenConstrMax
- GRBModel.GetGenConstrMin
- GRBModel.GetGenConstrAbs
- GRBModel.GetGenConstrAnd
- GRBModel.GetGenConstrOr
- GRBModel.GetGenConstrNorm
- GRBModel.GetGenConstrIndicator
- GRBModel.GetGenConstrPWL
- GRBModel.GetGenConstrPoly
- GRBModel.GetGenConstrExp
- GRBModel.GetGenConstrExpA
- GRBModel.GetGenConstrLog
- GRBModel.GetGenConstrLogA
- GRBModel.GetGenConstrLogistic
- GRBModel.GetGenConstrPow
- GRBModel.GetGenConstrSin
- GRBModel.GetGenConstrCos
- GRBModel.GetGenConstrTan
- GRBModel.GetGenConstrs()
- GRBModel.GetJSONSolution()
- GRBModel.GetMultiobjEnv()
- GRBModel.GetObjective()
- GRBModel.GetPWLObj()
- GRBModel.GetQConstr()
- GRBModel.GetQConstrs()
- GRBModel.GetQCRow()
- GRBModel.GetRow()
- GRBModel.GetSOS()
- GRBModel.GetSOSs()
- GRBModel.GetTuneResult()
- GRBModel.GetVarByName()
- GRBModel.GetVars()
- GRBModel.Optimize()
- GRBModel.OptimizeAsync()
- GRBModel.OptimizeBatch()
- GRBModel.Presolve()
- GRBModel.Read()
- GRBModel.Remove()
- GRBModel.Reset()
- GRBModel.SetCallback()
- GRBModel.Set()
- GRBModel.SetObjective()
- GRBModel.SetObjectiveN()
- GRBModel.SetPWLObj()
- GRBModel.SingleScenarioModel()
- GRBModel.Sync()
- GRBModel.Terminate()
- GRBModel.Tune()
- GRBModel.Update()
- GRBModel.Write()