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).
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).