-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from NREL/rjf/no-stations-charger-search
skip charge instructions with no valid stations
- Loading branch information
Showing
5 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
nrel/hive/resources/scenarios/denver_downtown/bases/denver_demo_no_stations.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
base_id,lat,lon,station_id,stall_count | ||
b1,39.754695,-104.988116,,300 |
101 changes: 101 additions & 0 deletions
101
nrel/hive/resources/scenarios/denver_downtown/denver_no_stations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
sim: | ||
# (required) any name you want to give your simulation (go ahead, be creative); | ||
sim_name: denver_demo | ||
|
||
# (required) the start time of the simulation; | ||
start_time: "1970-01-01T00:00:00" | ||
|
||
# (required) the end time of the simulation; | ||
end_time: "1970-01-02T00:00:00" | ||
|
||
# (optional) how many seconds does a single hive time step represent; | ||
# must be an integer; generally, 60 seconds is the recommended value based on internal testing and validation; | ||
timestep_duration_seconds: 60 | ||
|
||
# (optional) represents how long a request will be active in the simulation; | ||
# after this timeout the request is destroyed; | ||
request_cancel_time_seconds: 600 | ||
|
||
# (optional) what is the atomic unit of the simulation; | ||
# 15 is equivalent to approximately 1 meter; | ||
sim_h3_resolution: 15 | ||
|
||
# (optional) which h3 resolution should we search for entities? | ||
sim_h3_search_resolution: 7 | ||
|
||
# (optional) if using human drivers, what type of schedule should we use? | ||
schedule_type: "time_range" | ||
|
||
network: | ||
# (required) what type of network to use; options: osm_network | euclidean | ||
network_type: osm_network | ||
|
||
# (optional) if no speed exists in the road network data input, we fill it in with this value; | ||
default_speed_kmph: 40.0 | ||
|
||
input: | ||
# (required) | ||
vehicles_file: denver_demo_vehicles_no_stations.csv | ||
|
||
# (required) | ||
requests_file: denver_demo_requests.csv | ||
|
||
# (required) | ||
bases_file: denver_demo_no_stations.csv | ||
|
||
# (required) | ||
stations_file: denver_demo_no_stations.csv | ||
|
||
# (optional) only used with `network_type: osm_network` | ||
road_network_file: downtown_denver_network.json | ||
|
||
# (optional) outline a geofence for control purposes | ||
geofence_file: downtown_denver.geojson | ||
|
||
# (optional) defaults to zero cost if not specified | ||
rate_structure_file: rate_structure.csv | ||
|
||
# (optional) defaults to zero cost if not specified | ||
charging_price_file: denver_charging_prices_by_geoid.csv | ||
|
||
# (optional) default is no demand forecasting | ||
demand_forecast_file: denver_demand.csv | ||
|
||
dispatcher: | ||
# (optional) how often should we issue dispatching instructions? | ||
default_update_interval_seconds: 600 | ||
|
||
# (optional) ingnore searching for any entity beyond this threshold | ||
max_search_radius_km: 100.0 | ||
|
||
## Parameters for the default matching dispatcher | ||
|
||
# (optional) don't match requests to vehicles beyond this range | ||
matching_range_km_threshold: 20 | ||
|
||
# (optional) which states will the default matching dispatcher consider valid? | ||
valid_dispatch_states: | ||
- Idle | ||
- Repositioning | ||
|
||
## Parameters for the default charging dispatcher | ||
|
||
# (optional) how to search for stations? nearest_shortest_queue | shortest_time_to_charge | ||
charging_search_type: nearest_shortest_queue | ||
|
||
# (optional) ignore charging at stations when remaining range is greater than this plus the nearest station distance | ||
charging_range_km_threshold: 20 | ||
|
||
# (optional) ignore charging at stations when remaining range is greater than this | ||
charging_range_km_soft_threshold: 50 | ||
|
||
# (optional) ignore base charging at bases more than this threshold | ||
base_charging_range_km_threshold: 100 | ||
|
||
## Parameters for the driver control | ||
|
||
# (optional) SOC target for fast charging at a station | ||
ideal_fastcharge_soc_limit: 0.8 | ||
|
||
# (optional) how long do drivers idle before returning to a base? | ||
idle_time_out_seconds: 1800 |
1 change: 1 addition & 0 deletions
1
nrel/hive/resources/scenarios/denver_downtown/stations/denver_demo_no_stations.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
station_id,lat,lon,charger_count,charger_id,on_shift_access |
21 changes: 21 additions & 0 deletions
21
nrel/hive/resources/scenarios/denver_downtown/vehicles/denver_demo_vehicles_no_stations.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
vehicle_id,lat,lon,mechatronics_id,initial_soc,schedule_id,home_base_id | ||
v1,39.754695,-104.988116,leaf_50,0.3 | ||
v2,39.754695,-104.988116,leaf_50,0.3 | ||
v3,39.754695,-104.988116,leaf_50,0.3 | ||
v4,39.754695,-104.988116,leaf_50,0.3 | ||
v5,39.754695,-104.988116,leaf_50,0.3 | ||
v6,39.754695,-104.988116,leaf_50,0.3 | ||
v7,39.754695,-104.988116,leaf_50,0.3 | ||
v8,39.754695,-104.988116,leaf_50,0.3 | ||
v9,39.754695,-104.988116,leaf_50,0.3 | ||
v10,39.754695,-104.988116,leaf_50,0.3 | ||
v11,39.754695,-104.988116,leaf_50,0.3 | ||
v12,39.754695,-104.988116,leaf_50,0.3 | ||
v13,39.754695,-104.988116,leaf_50,0.3 | ||
v14,39.754695,-104.988116,toyota_corolla,0.3 | ||
v15,39.754695,-104.988116,toyota_corolla,0.3 | ||
v16,39.754695,-104.988116,toyota_corolla,0.3 | ||
v17,39.754695,-104.988116,toyota_corolla,0.3 | ||
v18,39.754695,-104.988116,toyota_corolla,0.3 | ||
v19,39.754695,-104.988116,toyota_corolla,0.3 | ||
v20,39.754695,-104.988116,toyota_corolla,0.3 |