Try our new documentation site (beta).
GRBConstr.get()
Query the value of a constraint attribute.
char | get ( | GRB.CharAttr | attr ) |
Query the value of a char-valued attribute.
Arguments:
attr: The attribute being queried.
Return value:
The current value of the requested attribute.
double | get ( | GRB.DoubleAttr | attr ) |
Query the value of a double-valued attribute.
Arguments:
attr: The attribute being queried.
Return value:
The current value of the requested attribute.
int | get ( | GRB.IntAttr | attr ) |
Query the value of an int-valued attribute.
Arguments:
attr: The attribute being queried.
Return value:
The current value of the requested attribute.
String | get ( | GRB.StringAttr | attr ) |
Query the value of a string-valued attribute.
Arguments:
attr: The attribute being queried.
Return value:
The current value of the requested attribute.
![](/wp-content/plugins/hd_documentations/content/images/documentation-ampl-guide.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-cloud.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-example-tour.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-quick-start.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-reference-manuals.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/documentation-remote-services.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-linux.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-mac-osx.webp?x70725)
![](/wp-content/plugins/hd_documentations/content/images/quickstart-os-windows.webp?x70725)