The get_solution function returns values for undesired variables if one variable name is contained in another. In the example below we have variable names x and xx. When we solve and call get_solution for x we also get the variable values for xx, but they are still have x in the variable column (x_df has 6 rows instead of 3).
I believe this fixed in the most recent version. In particular I cannot reproduce it with the current master version. Feel free to reopen, if it is still an issue. Thanks a lot for the report!
The get_solution function returns values for undesired variables if one variable name is contained in another. In the example below we have variable names
x
andxx
. When we solve and call get_solution forx
we also get the variable values forxx
, but they are still havex
in the variable column (x_df
has 6 rows instead of 3).