Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
operator -
Create a new expression by subtracting one Gurobi object from another.
GRBLinExpr | operator - ( | GRBLinExpr | expr1, |
GRBLinExpr | expr2 ) |
-
Arguments:
expr1: First linear expression argument.
expr2: Second linear expression argument.
Return value:
A linear expression that is equal to the first expression minus the second.
GRBQuadExpr | operator - ( | GRBQuadExpr | expr1, |
GRBQuadExpr | expr2 ) |
-
Arguments:
expr1: First quadratic expression argument.
expr2: Second quadratic expression argument.
Return value:
A quadratic expression that is equal to the first expression minus the second.
![](/wp-content/plugins/hd_documentations/content/images/documentation-ampl-guide.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-cloud.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-example-tour.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-quick-start.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-reference-manuals.webp)
![](/wp-content/plugins/hd_documentations/content/images/documentation-remote-services.webp)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-linux.webp)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-mac-osx.webp)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-windows.webp)