Comments (2)
Ideas:
-
check old vs new constraints = Looks similar
-
test minimal preprocessing of CostMatrix (no problem reduction) = No improvement
-
check how the percentage is computed at the final plotting = looks allright
-
could it be the nodes where carNodeID is equal to eventNodeID that are removed in intermediate results?
from response_time_minimization.
Problem happened in extracting the data from the PuLP solution.
- When creating the dictionary with assigned events
car_to_events_assignment
the number of events per car and in total is correct. - However, when converting this dictionary into a dataframe and merging with
CostMatrix_extended
to get the coordinates, there were duplicates again that had to be removed. Added the following to the function before returning thecar_to_events_df
:
def create_car_to_events_df(...)
# drop duplicates and keep first occurrence
car_to_events_df = car_to_events_df.drop_duplicates(subset=['carNodeID', 'eventNodeID'], keep='first')
return car_to_events_df
Also refactored much of the code doing data extracting data from PuLP solution to plotting of optimal solution.
Solved in Commit: solved issue#3 with exceeding car capacity constraint
from response_time_minimization.
Related Issues (9)
- Optimal locations plot: looks like bug with assigned events to each car HOT 5
- East police district needs to include Oslo roads HOT 2
- Expand Oslo analysis to entire Oslo police district HOT 1
- Stability issues with the kernel density function HOT 1
- OSMnx has problems with northern Rogaland roads HOT 1
- How to make model results between districts comparable? HOT 5
- Correct travel time since police cars drive faster than speed limit HOT 3
- Estimate number of cars per district HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from response_time_minimization.