Input Data Guide
Overview
The Delivery Schedule Optimization application requires several input data tables to function. All data should be provided in Excel format using the provided template.
Required Input Tables
1. Settings
Contains global planning parameters:
plan_start_date: Start date of the planning horizonplan_horizon_length: Number of days to plan forshipping_rules: JSON configuration for different order types
2. Demand
Contains customer order information:
demand_id: Unique identifier for each ordersite_name: Customer locationproduct_name: Product ordereddemand_date: Date when order was receiveddemand_quantity: Order quantitydemand_type: Type of order (e.g., "urgent", "batch")
3. Product
Contains product information:
product_name: Product identifierunit_measure: Unit of measurementunit_volume: Volume per unit
4. Outbound Site (Warehouses)
Contains warehouse information:
site_name: Warehouse identifiercapacity_ub: Daily capacity upper boundlatitude: Warehouse latitudelongitude: Warehouse longitude
5. Inbound Site (Customers)
Contains customer location information:
site_name: Customer identifierlatitude: Customer latitudelongitude: Customer longitude
6. Transportation Policy
Contains shipping rules and costs:
origin_site_name: Warehouse identifierdestination_site_name: Customer identifiertransportation_mode: Mode of transportationcost: Cost per unitmoq: Minimum order quantity for this route
7. BOH Inventory (Optional)
Contains beginning-of-horizon inventory:
site_name: Warehouse identifierproduct_name: Product identifierinventory_quantity: Available quantity
8. En Route Inventory (Optional)
Contains in-transit inventory:
site_name: Warehouse identifierproduct_name: Product identifiereta_date: Expected arrival dateinventory_quantity: Quantity in transit
Data Requirements
General Rules
- All identifiers must be unique within their respective tables
- Dates must be in YYYY-MM-DD format
- Numeric values must be non-negative
- All required fields must be filled
Specific Requirements
-
Demand
demand_typemust match types defined in shipping rulesdemand_datemust be within planning horizondemand_quantitymust be positive
-
Transportation Policy
costmust be non-negativemoqmust be non-negative- All warehouse-customer pairs must have a policy
-
Sites
- Coordinates must be valid (latitude: -90 to 90, longitude: -180 to 180)
- Warehouse capacities must be positive
Excel Template
A template file (input_sample_delivery_schedule.xlsx) is provided with:
- Pre-formatted sheets for each input table
- Example data
- Data validation rules
- Required column headers
Common Issues
- Missing required fields
- Invalid date formats
- Duplicate identifiers
- Invalid coordinates
- Negative quantities or costs
- Missing transportation policies
Best Practices
- Validate data before upload
- Use consistent naming conventions
- Keep product and site master data up to date
- Review transportation policies regularly
- Include all relevant inventory information