Try our new documentation site (beta).
GRBVar::get()
Query the value of a variable 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)
![](/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)