# Location constraints

### Overview

Each plan allows for configuring location constraints. The location constraint has two options:

1. An operator - either "in" or "not in"
2. A list of locations

When the constraint is defined, only inventory meeting that constraint can be allocated to the plan. The selected locations include all of their hierarchy, meaning that all child locations are also considered.

<figure><img src="/files/9vVvIFPFPx1lMIoI8dss" alt=""><figcaption></figcaption></figure>

### Location constraints for site planning (distribution requirements planning)

Let's say that you have two sites: one in California and one in Massachusetts. If you are building different products at both sites, you can ensure only material physically located at the site is allocated to the plan. In this case, the setup would like something like the below:

* Plan 1
  * Part A (made in California)
  * Location constraint: "In California"
* Plan 2
  * Part B (made in Massachusetts)
  * Location constraint: "In Massachusetts"

Only Plan 1 will consume inventory located in California locations and only Plan 2 will consume inventory located in Massachusetts locations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.firstresonance.io/plans-and-autoplan/location-constraints.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
