MaxOng99 / ECS-Ridesharing

0 stars 0 forks source link

Logic for computing the utility of a location needs checking #2

Closed MaxOng99 closed 3 years ago

MaxOng99 commented 3 years ago

https://github.com/MaxOng99/ECS-Ridesharing/blob/8e7ad8678ffd6624b27178c8723cd5f753b651a0/src/models/passenger.py#L95-L123

Hi Dr Vahid, the code snippet above is the implementation for computing the utility for any other location, given the current location during the iterative voting process. Could you cross-check if this is what was required?

VahidYazdan commented 3 years ago

The logic seems fine, let's take this as the first approach - then we can play with these assumptions and compare the results.