Closed mcolombi closed 2 years ago
Thanks for opening this issue. Unfortunately, in its current state, gurobipy
is not guaranteed to properly handle arbitrary Hashable
objects as variable indices, as this can cause issues with variable names or break helper methods like tupledict.sum
.
It looks like while
gurobipy
allows for anIterable
ofHashable
objects to be passed as index to addVars, the stubs only allow for anIterable
of_Scalar
which is eitherint
,str
orfloat