optapy / optapy-quickstarts

OptaPy quick starts for AI optimization: showcases many different use cases.
Apache License 2.0
19 stars 13 forks source link

In vehicle routing notebook, make Location + Depot problem facts and include them in solution #15

Closed Christopher-Chianelli closed 1 year ago

Christopher-Chianelli commented 1 year ago

With the jpyinterpreter work done, Location and Depot need to be known to OptaPy so cloning is done correctly. In particular, because Location is used in a map, and Location does not define eq or hash, a Location can only be translated to its Java counterpart once (otherwise, the location cannot be found in the map, since the one in the map would be a different instance than the location queried).