Derive Eq, Hash etc. for variables
remysucre opened this issue · 2 comments
remysucre commented
It's common to map objects to variables, like in the Assignment Problem example. Sometimes one would also like to map a variable back to the object, like the BiMap here. For example, the user might want to look for the object associated with a variable once a solution is found. This inverse mapping would require variables like LpBinary
to implement Eq
and Hash
.