-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
When initializing pv agents we look for the nearest weather coordinates within WeatherSource.getNearestCoordinatesWithDistances. This method calculates the distance to every known coordinate, sorts them and returns the 4 nearest ones. This is painfully slow since for every agent we calculate the distance to 700.000 coordinates and sort them.
Improvement ideas:
- Shrink down the coordinate source for the simulation run to the area that is actually significant
- Find an algorithm that can search for the nearest coordinates much more efficiently
- Do both
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request