Documentation

GRBModel.GetConstrByName()


GRBModel.GetConstrByName()

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

GRBConstr GetConstrByName ( string name )

    Arguments:

    name: The name of the desired linear constraint.

    Return value:

    The requested linear constraint.