English
Languages
English
Bengali
Japanese
Spanish



QuadraticProgram.get_variable

QuadraticProgram.get_variable(i)[source]

Returns a variable for a given name or index.

Parameters:

i (Union[int, str]) – the index or name of the variable.

Return type:

Variable

Returns:

The corresponding variable.