### Quick Start: Run Simulation Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Run a simulation using the generated scenario.json, with the 'greedy' charging strategy, and display plots. ```sh python simulate.py scenario.json --strategy greedy --visual ``` -------------------------------- ### Quick Start: Generate Scenario Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Generate a scenario JSON file using the default 'statistics' mode. The output is saved to scenario.json. ```sh python generate.py --output scenario.json ``` -------------------------------- ### Install SpiceEV Package Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Install the SpiceEV package using pip. This command installs the package in editable mode. ```sh pip install -e . ``` -------------------------------- ### Clone SpiceEV Repository Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Clone the SpiceEV repository from GitHub to your local machine to get started. ```bash git clone https://github.com/rl-institut/spice_ev ``` -------------------------------- ### Checkout and Pull Dev Branch Source: https://github.com/rl-institut/spice_ev/blob/dev/CONTRIBUTING.md Use these commands to get the latest version of the 'dev' branch before starting new work. ```bash git checkout dev git pull ``` -------------------------------- ### Run with Configuration Files Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Execute generate.py and simulate.py using specified configuration files. Input/output paths must still be specified manually. ```sh python generate.py --config examples/configs/generate.cfg ``` ```sh python simulate.py --config examples/configs/simulate.cfg ``` -------------------------------- ### Display Help for simulate.py Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Show all available command-line options for the simulate.py script. ```bash ./simulate.py -h ``` -------------------------------- ### Run simulate.py with Configuration and Scenario File Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Execute the simulate.py script using a configuration file and specifying the input scenario file. ```bash ./simulate.py --config examples/configs/simulate.cfg examples/scenario.json ``` -------------------------------- ### Show Command Line Options Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Display all available command-line options for the generate.py and simulate.py scripts. ```sh python generate.py -h ``` ```sh python simulate.py -h ``` -------------------------------- ### Display Help for generate.py Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Show all available command-line options for the generate.py script. ```bash ./generate.py -h ``` -------------------------------- ### Run Simulation with Configuration File Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Run a simulation using input arguments specified in a configuration file. ```bash ./simulate.py --config ./examples/configs/simulate.cfg ``` -------------------------------- ### Run generate.py with Configuration and Output File Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Execute the generate.py script using a configuration file and specifying an output scenario file. ```bash ./generate.py --config examples/configs/generate.cfg examples/scenario.json ``` -------------------------------- ### Generate Scenario with Command Line Options Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Generate a 7-day scenario with 10 vehicles, 15-minute timesteps, and specified vehicle types using command-line arguments. ```bash ./generate.py statistics --days 7 --vehicles 6 golf --vehicles 4 sprinter --interval 15 --vehicle-types examples/data/vehicle_types.json --output scenario.json ``` -------------------------------- ### Generate Scenario with Configuration File Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Generate a scenario using input arguments defined in a configuration file. ```bash ./generate.py --config ./examples/configs/generate.cfg ``` -------------------------------- ### Run Simulation with Greedy Strategy Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Run a simulation using the generated scenario.json and the 'greedy' charging strategy. Use --visual to plot results. ```bash ./simulate.py scenario.json --strategy greedy --visual ``` -------------------------------- ### Simulate Charging Strategies Source: https://github.com/rl-institut/spice_ev/wiki/Command-line-options Use this script to simulate different charging strategies for a given scenario. The --strategy option allows selection of various strategies like 'greedy' or 'balanced'. ```python python ./simulate.py example.json --strategy balanced -v --eta --margin 1 --strategy-option CONCURRENCY 0.5 --output output.csv --config examples/simulate.cfg ``` -------------------------------- ### Generate Scenario with Specific Parameters Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Create a 7-day scenario with 10 vehicles (6 golf, 4 sprinter) and 15-minute timesteps, saving to scenario.json. ```sh python generate.py --days 7 --vehicles 6 golf --vehicles 4 sprinter --interval 15 --output scenario.json ``` -------------------------------- ### Add and Commit Changes Source: https://github.com/rl-institut/spice_ev/blob/dev/CONTRIBUTING.md Stage a specific file and then commit your changes with a descriptive message, including the issue number. ```bash git add filename.md git commit filename.md ``` -------------------------------- ### Include External Timeseries for Price and Fixed Load Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Generate a scenario JSON including both price and fixed load timeseries from CSV files. Paths are relative to the scenario file. ```sh python generate.py --include-price-csv ../price/price.csv --include-fixed-load-csv fixed_load.csv --output scenario.json ``` -------------------------------- ### Set Feed-in CSV Options Source: https://github.com/rl-institut/spice_ev/wiki/Command-line-options Configure options for including energy feed-in data from a CSV file. The '-fo' flag can set the step duration. ```python --include-feed-in-csv-option step_duration 900 ``` -------------------------------- ### Create New Feature Branch Source: https://github.com/rl-institut/spice_ev/blob/dev/CONTRIBUTING.md Create a new local branch for implementing a feature, following the 'type/short-description' naming convention. ```bash git checkout -b feature/my-feature ``` -------------------------------- ### Set Price CSV Options Source: https://github.com/rl-institut/spice_ev/wiki/Command-line-options Specify options for including energy price data from a CSV file. The '-po' flag allows setting the column for price. ```python --include-price-csv-option column price ``` -------------------------------- ### Push New Local Branch Source: https://github.com/rl-institut/spice_ev/blob/dev/CONTRIBUTING.md Push your local branch to the remote server 'origin' for the first time, setting the upstream tracking. ```bash git push -u origin feature/my_feature_branch ``` -------------------------------- ### Generate Schedule from Scenario Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Calculate and include a schedule in a scenario. This command uses a scenario JSON and a CSV file for grid situation data. ```sh python generate_schedule.py --scenario scenario.json --input examples/data/grid_situation.csv --output schedules/schedule_example.csv ``` -------------------------------- ### Convert SimBEV Output to SpiceEV Scenario Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Use this command to convert SimBEV output files to a SpiceEV scenario JSON file. Ensure you provide the correct path to your SimBEV output directory. ```sh python generate.py simbev --simbev /path/to/simbev/output/ --output scenario.json ``` -------------------------------- ### Set Battery Capacity and C-rate Source: https://github.com/rl-institut/spice_ev/wiki/Command-line-options Configure battery parameters for scenario generation. Use -1 for variable capacity with a fixed maximum power, or specify both capacity and C-rate. ```python --battery 1000 2 ``` ```python --battery -1 50 ``` -------------------------------- ### Push Regular Commits Source: https://github.com/rl-institut/spice_ev/blob/dev/CONTRIBUTING.md Push your regular commits to the remote server 'origin'. ```bash git push ``` -------------------------------- ### Generate Charging Scenarios Source: https://github.com/rl-institut/spice_ev/wiki/Command-line-options This script generates scenarios as JSON files for vehicle charging modeling. Options like --cars, --v2g, and --days control the scenario parameters. ```python ./generate.py scenario.json --cars 100 sprinter --v2g --days 7 --interval 60 --min-soc 50 --battery -1 50 --include-ext-load-csv load.csv --include-ext-csv-option column energy --include-feed-in-csv feed_in.csv --include-feed-in-csv-option step_duration 900 --include-price-csv price.csv --include-price-csv-option column price --config examples/generate.cfg ``` -------------------------------- ### Generate Grid Operator Schedule Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Generate a grid operator schedule from a CSV file and include it in an existing scenario.json. ```bash ./generate_schedule.py scenario.json --input examples/data/grid_situation.csv --output examples/schedule.csv ``` -------------------------------- ### Include External Timeseries for Fixed Load Source: https://github.com/rl-institut/spice_ev/blob/dev/README.md Generate a scenario JSON file that includes a fixed load from a CSV file. The file path is relative to the scenario file location. ```sh python generate.py --include-fixed-load-csv fixed_load.csv --output scenario.json ``` -------------------------------- ### Include External Time Series Data Source: https://github.com/rl-institut/spice_ev/blob/dev/doc/source/getting_started.md Include price, fixed load, or local generation time series from CSV files when generating a scenario.json. ```bash ./generate.py --include-price-csv ../price/price.csv --include-fixed-load-csv fixed_load.csv -o example.json ``` -------------------------------- ### Check Branch Status Source: https://github.com/rl-institut/spice_ev/blob/dev/CONTRIBUTING.md Use this command to view the current status of your working directory and staging area. ```bash git status ``` -------------------------------- ### Set External Load CSV Options Source: https://github.com/rl-institut/spice_ev/wiki/Command-line-options Specify options for including external load data from a CSV file. The '-eo' flag allows setting column names for energy. ```python --include-ext-csv-option column energy ``` -------------------------------- ### Amend Latest Commit Message Source: https://github.com/rl-institut/spice_ev/blob/dev/CONTRIBUTING.md Use this command to edit the commit message of your most recent commit, provided it has not yet been pushed. ```bash git commit --amend ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.