Skip to main content

Updating the Database

This section will cover three ways to update the database:

  • Automatic update command in a batch file
  • Manual update of the database in Apollo

An up-to-date system database is crucial for accurate Short-Term Forecasting, as the WESM market constantly changes (e.g., new units, upgrades).

Ways to Update the System Input Database

Automatic Update

iPool can analyze market data and automatically update the database using command-line flags, typically when running a historical load (-hist). The flags you combine with -hist determine the action taken.

  • -updatedb -hist (Analyze and Correct) This combination automatically corrects errors for existing units in the database, such as updating an incorrect MW capacity to match the historical data.

  • -genlist -updatedb -hist (Analyze, Correct, and Add) This combination performs both of the above actions and reads IEMOP input files (like MNM_Genlist.csv). This allows iPool to automatically add new units and sites to the database that were not previously listed.

    iPoolx.exe -new BASE -t "7/14/2025" -ndays 7 -rep 3 -spin 1 -pmin 0 -elim 0 -ramp 1 -5mnDisp 1 -stor ALL -GenList mnm_genlist.csv -s -x iPoolx.exe -o BASE -s HISTORICAL -hist -rb -x -updatedb

note

Run a historical load first when using this method, as it ensures that the necessary data is prepared and available before proceeding with the database update.

Primary CSV Files

See each tab to learn more about the primary CSV files.

Storages.csv

The Storages.csv file defines the physical limits of the energy reservoir. It sets the maximum and minimum energy capacity (MWh) and the PcBeg (Beginning %), which determines the initial state of charge at the start of the simulation.

For Battery Energy Storage Systems (BESS), PcBeg is typically set to 50% to provide balanced charging and discharging flexibility.

The table below describes the parameters for storage assets (e.g., STO_CLUZ) as defined in the Storages.csv data structure.

ItemDescriptionExample Value
StorageIDUnique identifier of the storage.STO_CLUZ (user-defined)
RegionRegion associated with the storage.CLUZ, CVIS, or CMIN
StorageTypeClassification of the storage.BAT, HYDRO, GAS
InFlowRate of inflow into the storage (for hydro or similar technologies).0 (for BESS)
Max Cap (MWh)Maximum energy capacity of the storage (MWh).4000 (user-defined)
Min Cap (MWh)Minimum allowable energy level (MWh).1 (user-defined)
Begin Level (%)Initial state of charge at the start of the simulation.50 (user-defined)
MoF0 – MoF12Monthly inflow values (if applicable).0 (for BESS)
Upstream StorageIDUpstream storage ID (if applicable).(No input required for BESS)
Upstream FactorUpstream factor.1
Inflow Time HrsInflow time (hours).0 (for BESS)