{"id":51117851,"url":"https://github.com/jzmnd/charging_sim_2","last_synced_at":"2026-06-24T23:30:48.907Z","repository":{"id":355284944,"uuid":"1226797319","full_name":"jzmnd/charging_sim_2","owner":"jzmnd","description":"An event-driven simulation of electric vehicle (EV) charging","archived":false,"fork":false,"pushed_at":"2026-05-14T18:43:16.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T20:37:42.943Z","etag":null,"topics":["charging","discrete-event-simulation","electric-vehicles","rust","simulation"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jzmnd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-01T21:03:54.000Z","updated_at":"2026-05-07T18:28:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jzmnd/charging_sim_2","commit_stats":null,"previous_names":["jzmnd/charging_sim_2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jzmnd/charging_sim_2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzmnd%2Fcharging_sim_2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzmnd%2Fcharging_sim_2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzmnd%2Fcharging_sim_2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzmnd%2Fcharging_sim_2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzmnd","download_url":"https://codeload.github.com/jzmnd/charging_sim_2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzmnd%2Fcharging_sim_2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34753781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charging","discrete-event-simulation","electric-vehicles","rust","simulation"],"created_at":"2026-06-24T23:30:48.841Z","updated_at":"2026-06-24T23:30:48.897Z","avatar_url":"https://github.com/jzmnd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EV Charging Simulator\n\nA simulation of electric vehicle (EV) charging.\n\nTwo simulation approaches are implemented:\n\n- A discrete event-driven simulation that is fast but cannot account for charger power sharing or site wide power limits\n- A full time-step simulation that is slower but allows for power sharing algorithms to be implemented\n\n## Features\n\n- Ability to simulate different EV station sizes and configuration\n- Simulate different vehicle mixes with user provided charging profiles (power vs SOC)\n- Specify each vehicle exactly or randomly sample vehicle parameters (SOC start and target, idle times, arrival times)\n- Account for vehicle queuing including maximum wait times and maximum queue lengths\n- Energy delivered and charging time are calculated by integrating the vehicle charge profile\n\n## Outputs\n\nThe simulation outputs data corresponding to each vehicle including:\n\n- Charging, waiting and idling durations\n- Whether the vehicle charged or left the queue early\n- Energy delivered during the charging session\n- Session peak power\n\n## Examples\n\nExample simulations can be found in the `examples` directory and can be run with e.g.:\n\n```bash\ncargo run --example run_example_simulation\n```\n\nLogging can be enabled with e.g. `RUST_LOG=info`.\n\n## Random sampling\n\nWhen using the random samplers to generate vehicles and arrival times the following distributions are implemented.\n\n**Arrival times**: Sampled using user provided hour-of-day and day-of-week distributions then uniform sampling for minutes and seconds.\n\n**Charge profiles**: Weighted sampling from a list of user provided profiles.\n\n**SOC start and target**: Sampled from two beta distribution with user provided mean and kappa.\nGuaranteed to produce targets greater than starts.\n\n**Idle duration**: Sampled from a gamma distribution with user provided mean and shape.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzmnd%2Fcharging_sim_2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjzmnd%2Fcharging_sim_2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzmnd%2Fcharging_sim_2/lists"}