GRBModel.GetConstrByName()

Retrieve a constraint from its name. If multiple constraints have the same name, this method chooses one arbitrarily.

GRBConstr GetConstrByName ( string name )