rust-or / rust-lp-modeler

Lp modeler written in Rust
MIT License
95 stars 29 forks source link

Derive Eq, Hash etc. for variables #34

Closed remysucre closed 5 years ago

remysucre commented 5 years ago

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.

jcavat commented 5 years ago

A solution for #35 would fix this one ?

remysucre commented 5 years ago

A solution for #35 would fix this one ?

Agreed!