# DISPATCH_FCAS_REQ_CONSTRAINT

> The constraint level FCAS cost / price details for constraint FCAS processor runs. This enhanced output table format is established for the constraint FCAS processor release required for the Frequency Performance Payments (FPP) release. This enhanced output is hierarchical in nature, with the parent *_FCAS_REQ_RUN table holding the details about the triggering case run and time, and the child *_FCAS_REQ_CONSTRAINT table holding the constraint level details of FCAS costs / prices.

## Column Schema

### BIDTYPE

> DUID offered type

The SQL type is `VARCHAR2(10)`.
This is actually a factor/enum, with values:

- `ENERGY`

- `LOWERREG`

- `LOWER60SEC`

- `RAISE5MIN`

- `LOWER5MIN`

- `LOWER6SEC`

- `RAISE60SEC`

- `RAISE6SEC`

- `RAISEREG`

- `RAISE1SEC`

- `LOWER1SEC`

This column is mandatory, and a primary key.

### CONSTRAINTID

> ConstraintID join to table GenConData

SQL Type: `VARCHAR2(20)`
Polars Type: `pl.Categorical`

This column is mandatory, and a primary key.

Examples:

- `D_I+BIP_ML2_L1`
- `D_I+NIL_MG2_R1`
- `D_Q+BIP_ML_L1`
- `D_Q+BIP_ML_L6`
- `D_T+NIL_BB_TG_R1`
- `D_T+NIL_MG_R1`
- `D_T+NIL_ML_L1`
- `D_T+NIL_ML_RECL_L1`
- `D_T+NIL_TL_L1_DS`
- `D_T+NIL_WF_TG_R1`

### INTERVAL_DATETIME

> The trading interval date and time of the dispatch interval that was processed by the constraint FCAS processor

SQL Type: `DATE`
Polars Type: `pl.Datetime()`

This column is mandatory, and a primary key.

Example: `2026/09/01 00:05:00`

### REGIONID

> Region identifier

For more information, see the [dedicated documentation page](../../guide/querying.md#region-id).

The SQL type is `VARCHAR2(20)`.
This is actually a factor/enum, with values:

- `QLD1`

- `VIC1`

- `TAS1`

- `NSW1`

- `SA1`

- `SNOWY1`

This column is mandatory, and a primary key.

### RUN_DATETIME

> The run date and time of the dispatch case that triggers the constraint FCAS processor run

SQL Type: `DATE`
Polars Type: `pl.Datetime()`

This column is mandatory, and a primary key.

Example: `2026/09/01 00:05:00`

### RUNNO

> The dispatch case run number that has triggers the constraint FCAS processor run

SQL Type: `NUMBER(5)`
Polars Type: `pl.UInt32`

This column is mandatory, and a primary key.

Example: `1`

### ADJUSTED_COST

> The adjusted cost of the constraint for this service, after the regulation/contingency split

SQL Type: `NUMBER(18,8)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0.31531698`, `0`, `48.875`

### BASE_COST

> The base cost of the constraint, before the regulation/contingency split

SQL Type: `NUMBER(18,8)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0.31531698`, `0`, `48.875`

### CONSTRAINT_ENABLEMENT

> MW enabled for this bid type within the constraint

SQL Type: `NUMBER(15,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`26.25994`, `0`, `45`, `220`

### LHS

> Constraints summed LHS - aggregate LHS Solution values from the physical run from the DISPATCHCONSTRAINT table

SQL Type: `NUMBER(15,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`-26.87783`, `26.25994`, `0`, `220`

### MARGINALVALUE

> Shadow price of constraint from the DISPATCHCONSTRAINT table from the physical run.

SQL Type: `NUMBER(15,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0.01`, `0`, `5.38`

### P_REGULATION

> The adjusted marginal value of the constraint for FPP recovery (blank for constraints without REG terms)

SQL Type: `NUMBER(18,8)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0.01`, `0`, `5.38`

### REGION_BASE_COST

> The regional payment allocated to the constraint for the interval pro-rated based on marginal value ratios over the binding constraints for that service in that region (this is an intermediate calculation to get to the base cost)

SQL Type: `NUMBER(18,8)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0.00333333`, `0`, `35.3625`

### REGIONAL_ENABLEMENT

> The dispatched MW for the bid type inside the region from the physical run of the DISPATCHREGIONSUM table

SQL Type: `NUMBER(15,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`22.25994`, `0`, `4`, `252`

### RHS

> Constraints RHS value used in the solution - may be either dynamic (calculated) or static from the physical run from the DISPATCHCONSTRAINT table

SQL Type: `NUMBER(15,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`-0.0001`, `19.75664`, `0`, `1390`

### RRP

> Bid type prices for the region coming from the pricing run of the DISPATCHREGIONSUM table

For more information, see the [dedicated documentation page](../../guide/querying.md#rrp).

SQL Type: `NUMBER(15,5)`
Polars Type: `pl.Float64`

This column is not mandatory.

Examples:
`0.01`, `0`, `1`, `5.39`

## New Data Timing

> Public at the completion of a constraint FCAS processor run for a dispatch run

## Code Examples

### Polars

This table is so large that you should explicitly enumerate and cast every column, which will speed things up and prevents some errors.
Although some of the datatypes are inferred, so they may be wrong. In particular, `UInt16` vs `UInt8` vs `Int16` etc. If you get errors, you can swap these for just `int`.

This code deduplicates for you.
Deduplication is normally only required across multiple months.

This code assumes that all columns are present, which may not be true for older files.

```python
import polars as pl
import polars.selectors as cs

# e.g. "2029/03/15 00:05:00"
dt_s_fmt = "%Y/%m/%d %H:%M:%S"

csv_paths = ["SOMEFILE.CSV", "OTHERFILE.CSV"]

lf = (
    pl.concat(
        [
            pl.scan_csv(
                csv_path,  # must be unzipped beforehand
                skip_rows=1,  # skip the header
                infer_schema=False,  # much faster
            )
            .filter(cs.by_index(0) == "D")  # drop the footer
            .select(~cs.by_index(range(4)))  # drop metadata columns
            for csv_path in csv_paths
        ],
        how="diagonal_relaxed",
    )
    .with_columns(
        pl.col("INTERVAL_DATETIME", "RUN_DATETIME").str.strptime(pl.Datetime, dt_s_fmt),
    )
    .cast(
        {
            "BIDTYPE": pl.Enum(
                [
                    "ENERGY",
                    "LOWERREG",
                    "LOWER60SEC",
                    "RAISE5MIN",
                    "LOWER5MIN",
                    "LOWER6SEC",
                    "RAISE60SEC",
                    "RAISE6SEC",
                    "RAISEREG",
                    "RAISE1SEC",
                    "LOWER1SEC",
                ]
            ),
            "CONSTRAINTID": pl.Categorical,
            "REGIONID": pl.Enum(["QLD1", "VIC1", "TAS1", "NSW1", "SA1", "SNOWY1"]),
            "RUNNO": pl.UInt32,
            "ADJUSTED_COST": pl.Float64,
            "BASE_COST": pl.Float64,
            "CONSTRAINT_ENABLEMENT": pl.Float64,
            "LHS": pl.Float64,
            "MARGINALVALUE": pl.Float64,
            "P_REGULATION": pl.Float64,
            "REGION_BASE_COST": pl.Float64,
            "REGIONAL_ENABLEMENT": pl.Float64,
            "RHS": pl.Float64,
            "RRP": pl.Float64,
        }
    )
    # Deduplicate
    # These files are so large that this step may cause your laptop to run out of memory.
    # We want one row per ['BIDTYPE', 'CONSTRAINTID', 'INTERVAL_DATETIME', 'REGIONID', 'RUN_DATETIME', 'RUNNO']
    .unique(
        subset=[
            "BIDTYPE",
            "CONSTRAINTID",
            "INTERVAL_DATETIME",
            "REGIONID",
            "RUN_DATETIME",
            "RUNNO",
        ],
        keep="any",
    )
)

```

### Nemosis

This table is not yet available in [Nemosis](https://github.com/UNSW-CEEM/NEMOSIS/#static_table).

## Example File

From [PUBLIC_ARCHIVE_DISPATCH_FCAS_REQ_CONSTRAINT_FILE01_202609010000.zip](https://www.nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM/2026/MMSDM_2026_09/MMSDM_Historical_Data_SQLLoader/DATA/PUBLIC_ARCHIVE%23DISPATCH_FCAS_REQ_CONSTRAINT%23FILE01%23202609010000.zip)

=== "Raw Text with Metadata"
    ```csv
    C,SETP.WORLD,DVD_DISPATCH_FCAS_REQ_CONSTRAINT,AEMO,PUBLIC,2026/10/09,17:25:58,001791530758083,MONTHLY_ARCHIVE,001791530758083
    I,DISPATCH,FCAS_REQ_CONSTRAINT,1,RUN_DATETIME,RUNNO,INTERVAL_DATETIME,CONSTRAINTID,REGIONID,BIDTYPE,LHS,RHS,MARGINALVALUE,RRP,REGIONAL_ENABLEMENT,CONSTRAINT_ENABLEMENT,REGION_BASE_COST,BASE_COST,ADJUSTED_COST,P_REGULATION
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+BIP_ML2_L1,NSW1,LOWER1SEC,26.28513,-10000,0,0,22.28513,26.28513,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+BIP_ML2_L1,QLD1,LOWER1SEC,26.28513,-10000,0,0,0,26.28513,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+BIP_ML2_L1,SA1,LOWER1SEC,26.28513,-10000,0,0,4,26.28513,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+BIP_ML2_L1,TAS1,LOWER1SEC,26.28513,-10000,0,0,0,26.28513,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+BIP_ML2_L1,VIC1,LOWER1SEC,26.28513,-10000,0,0,0,26.28513,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+NIL_MG2_R1,NSW1,RAISE1SEC,349.86551,-9714.12795,0,0.02,16,349.86551,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+NIL_MG2_R1,QLD1,RAISE1SEC,349.86551,-9714.12795,0,0.02,70,349.86551,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+NIL_MG2_R1,SA1,RAISE1SEC,349.86551,-9714.12795,0,0.02,88,349.86551,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+NIL_MG2_R1,TAS1,RAISE1SEC,349.86551,-9714.12795,0,0.02,0,349.86551,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_I+NIL_MG2_R1,VIC1,RAISE1SEC,349.86551,-9714.12795,0,0.02,175.86551,349.86551,0,0,0,0
    D,DISPATCH,FCAS_REQ_CONSTRAINT,1,"2026/09/01 00:05:00",1,"2026/09/01 00:05:00",D_Q+BIP_ML_L1,QLD1,LOWER1SEC,0,-9844.23579,0,0,0,0,0,0,0,0
    ...
    C,"END OF REPORT",1003
    ```

## Availability

Visibility: Public

This table is in the public monthly [MMSDM archive](https://www.nemweb.com.au/Data_Archive/Wholesale_Electricity/MMSDM/).

I have collated the list of all those files into one place, in [this CSV metadata file](../../manifests/per_table/csv/DISPATCH_FCAS_REQ_CONSTRAINT.csv). (Columns `year`, `month`, `url`, `compressed_size` in bytes).

!!! tip Warning
    There are multiple files per month,
    because this is such a large table.

The earliest available data is month 12 of 2024.
The most recent available data is month 9 of 2026.

 Every month in between has at least one file.

## Data Size

Each year of data is approximately
761 MB when zipped,
8 GB as unzipped CSV.

!!! tip "Tip"
    This table is large.
    Simply calling `pd.read_csv()` might fill up all the memory on your laptop.
    (As a rule of thumb, you need double the amount of memory as the size of the CSV.)
    You will need to think hard about memory optimisation.
    e.g. consider using [Polars](#polars) instead of Pandas, and selecting only the columns you care about.

## Deduplication and PDR Loader Configuration

The primary keys are:

- [`BIDTYPE`](#bidtype)

- [`CONSTRAINTID`](#constraintid)

- [`INTERVAL_DATETIME`](#interval_datetime)

- [`REGIONID`](#regionid)

- [`RUN_DATETIME`](#run_datetime)

- [`RUNNO`](#runno)

The transaction type is ["insert"](https://di-help.docs.public.aemo.com.au/Content/pdrLoader/How_it_works.htm?TocPath=pdrLoader%7CAbout+pdrLoader%7C_____5#INSERT), which means that you will usually not see duplicate data.
If you do, you can deduplicate based on the primary keys, without sorting first.
Rows from different files with the same primary keys should have the same values.

[PDR Loader configuration](https://nemweb.com.au/Reports/Current/MMSDataModelReport/PDRCONFIG/PROD_PUBLIC_PDR_CONFIG_FULL.zip) is:

| Report Name | Report Subtype | Version |
|---------------|-------------------|-----------|
| DISPATCH | FCAS_REQ_CONSTRAINT  | 1 |

This means that the CSV files start with metadata columns:

```csv
I,DISPATCH,FCAS_REQ_CONSTRAINT,1,...
D,DISPATCH,FCAS_REQ_CONSTRAINT,1,...
```

## Links

[This page as JSON](../json/tables/DISPATCH_FCAS_REQ_CONSTRAINT/bespoke.json) (schema documented [here](https://gitlab.com/MatthewDavis/mms-schema/-/blob/master/schema.py?ref_type=heads), but may change)

Download a [JSON Schema](../json/tables/DISPATCH_FCAS_REQ_CONSTRAINT/json-schema.json) specification for this table.

[Official AEMO schema documentation](https://nemweb.com.au/Reports/Current/MMSDataModelReport/Electricity/ElectricityDataModelReport_files/Elec20.htm#24)

## Other Information

Package: [DISPATCH](../packages/DISPATCH.md)
