Batch Files
This section discusses what batch files are, how they work and how they are used.
What are Batch Files?
Batch files are plain text scripts that contain list of commands that are executed automatically in sequence. They are designed to automate specific tasks such as initializing databases, running simulations, processing bids, or customizing scenarios. It is one of the ways to utilize iPool and its features.
Purpose and Use
Batch files can be used to run scenarios in iPool such as Historical Load, Backcast, Forecast, and What-if Scenarios.
How Batch Files Work
Batch files are used to create different scenarios and bids. There are different commandlines that can be used in a batch file. Some of the most common commands are:
- Setting the path to the executables:
PATH=C:\Program Files (x86)\iEnergy - Defining start date:
-t "8/11/2025" - Specifying the number of days:
-ndays 7
These are some of the most crucial commands and should be double‑checked before running the batch file
Key Considerations When Running Simulations Using Batch Files
Before executing simulations via batch files, ensure the following items are correctly configured to avoid errors and ensure result integrity:
1. Input Parameters
- Verify that all required input files are correctly specified and up to date.
2. Simulation Start Date
- Confirm the start date aligns with the intended simulation period and available data.
3. Simulation Duration
- Check that the number of simulation days is correctly defined.
4. Scenario Name
- Ensure the scenario name is accurate and consistent with the associated input and output folders.
5. Defaults Configuration
- Review
Defaults.csvand confirm that all directory paths point to the correct locations.
6. System Database Selection
- Verify that the correct SysWESM database is specified in the
DefInit.batfile.