DecisioQ System Architecture Decision Concepts Decision List API Guide Client Kit Developer Center Decision Studio Quick Start Playground End-to-End Examples

AUTO-NCD-010 End-to-End Example

Select Vehicles for Stock Order compares candidate vehicles using forecast demand, inventory duration, margin opportunity, carrying cost, and allocation feasibility.

AutomotiveNew Car DealershipInventory PlanningTOPSIS
Sales DataCollect demand and inventory signals
Input SchemaValidate business records
MappingPrepare canonical criteria
Decision EngineRank alternatives
Stock PlanReview the recommended order

Decision Summary

Business question: Which stock order option should be recommended for select vehicles for stock order in the selected New Car Dealership context?

Outcome: a ranked recommendation that supports, but does not replace, accountable business judgment.

Criterion IDMeaningDirectionWeightUnit
forecasted_demandForecasted Demandmaximize25%Rating
days_in_inventoryDays in Inventoryminimize20%Days
gross_margin_opportunityGross Margin Opportunitymaximize20%Currency
carrying_costCarrying Costminimize15%Currency
allocation_feasibilityAllocation Feasibilitymaximize20%Rating

5-Minute Quick Path

Goal

Run Select Vehicles for Stock Order with a complete candidate set.

Recommended mode

Business Data Mode when you have ordinary operational records.

You provide

Candidate business records matching the published input schema.

DecisioQ returns

A ranked recommendation with score evidence.

First working request →

Data Preparation Guide

Business records
Input schema
Preparation profile
Canonical criteria
TOPSIS ranking

Business Data uses domain-shaped records and the published mapping profile. Prepared Criteria bypasses mapping and supplies canonical criterion IDs directly. Never send both modes in one request.

Business sourceCanonical target
option.inventory.management.forecastedDemandforecasted_demand
option.inventory.management.daysInInventorydays_in_inventory
option.financial.grossMarginOpportunitygross_margin_opportunity
option.financial.carryingCostcarrying_cost
option.inventory.management.allocationFeasibilityallocation_feasibility

Business Data Mode

This complete illustrative request comes from certification case valid-generated-business-payload. It demonstrates shape and mapping, not production data.

{
  "decisionId": "AUTO-NCD-010",
  "mappingProfileId": "new-car-dealership-select-vehicles-for-stock-orde-auto-ncd-010",
  "businessData": {
    "requestContext": {
      "sourceSystem": "automotive-profile-factory",
      "correlationId": "factory-auto-ncd-010"
    },
    "salesOpportunities": [
      {
        "optionId": "SALES-010-01",
        "name": "Select Vehicles for Stock Order Option 1",
        "inventory": {
          "management": {
            "forecastedDemand": 2.6,
            "daysInInventory": 226.3,
            "allocationFeasibility": 2.64
          }
        },
        "financial": {
          "grossMarginOpportunity": 65000.0,
          "carryingCost": 165000.0
        }
      },
      {
        "optionId": "SALES-010-02",
        "name": "Select Vehicles for Stock Order Option 2",
        "inventory": {
          "management": {
            "forecastedDemand": 4.32,
            "daysInInventory": 124.1,
            "allocationFeasibility": 4.2
          }
        },
        "financial": {
          "grossMarginOpportunity": 132500.0,
          "carryingCost": 197500.0
        }
      }
    ]
  }
}

Download Business Data request

Prepared Criteria Mode

This complete request is the published expected-canonical artifact. Values and names remain illustrative.

{
  "decisionId": "AUTO-NCD-010",
  "mappingProfileId": "new-car-dealership-select-vehicles-for-stock-orde-auto-ncd-010",
  "mappingProfileVersion": "1.0.0",
  "profileId": "balanced",
  "scenarioId": "standard",
  "algorithm": "TOPSIS",
  "weightStrategy": "Expert",
  "runSensitivity": false,
  "requestContext": {
    "correlationId": "factory-auto-ncd-010"
  },
  "options": [
    {
      "optionId": "SALES-010-01",
      "name": "Select Vehicles for Stock Order Option 1",
      "values": {
        "forecasted_demand": 2.6,
        "days_in_inventory": 226.3,
        "gross_margin_opportunity": 65000.0,
        "carrying_cost": 165000.0,
        "allocation_feasibility": 2.64
      }
    },
    {
      "optionId": "SALES-010-02",
      "name": "Select Vehicles for Stock Order Option 2",
      "values": {
        "forecasted_demand": 4.32,
        "days_in_inventory": 124.1,
        "gross_margin_opportunity": 132500.0,
        "carrying_cost": 197500.0,
        "allocation_feasibility": 4.2
      }
    }
  ]
}

Download Prepared Criteria request

Understanding the Result

The score is a relative TOPSIS closeness coefficient within this candidate set; it is not a probability. The winner below was computed by DecisioQ.DecisionEngine.Services.TopsisEngine in-process from the published canonical request.

RankOptionIDScore
1Select Vehicles for Stock Order Option 2SALES-010-020.740125
2Select Vehicles for Stock Order Option 1SALES-010-010.259875

Winner: SALES-010-02. Download verified local result

Profiles and Scenarios

Profiles: balanced, margin_focused, customer_focused, speed_focused, risk_control

Scenarios: standard, month_end, limited_inventory, high_demand

Profiles change business priorities; scenarios represent operating context. Re-run the same candidate set and compare winner, score gap, and criterion contribution before adopting a change.

Sensitivity Analysis

Vary the highest-weight criteria in small increments and record whether the winner changes. A stable winner across reasonable weight changes is stronger evidence than a large score in one configuration.

Scenario Analysis

Use a published scenario only when it represents the intended operating context: standard, month_end, limited_inventory, high_demand. Compare the winner, ranking gap, and trade-offs with the baseline run.

Integration Examples and Next Steps

Use the API guide and client kit to transport either request mode. This example intentionally does not duplicate authentication, routing, Key Vault, usage accounting, or operational logging guidance.

Review the batch validation report, replace illustrative data with governed business data, and add domain acceptance thresholds before rollout.