The Gurobi .NET interface overloads several arithmetic and comparison
operators. Overloaded arithmetic operators (
+, -, *, /) are used
to create linear and quadratic expressions. Overloaded comparison operators
<=, >=, and ==) are used to build linear and quadratic
Note that the results of overloaded comparison operators are generally never stored in user variables. They are immediately passed to GRBModel.AddConstr or GRBModel.AddQConstr.