Hi everyone! I’m building a workflow in Alteryx Designer to optimize the way we assign our internal maintenance technicians to our stores.
Each technician can cover up to a certain maximum number of stores (capacity constraint)
Each store can be covered by at most one technician
Stage A: Maximize total coverage (assign as many stores as possible under those constraints)
Stage B: Given that maximum coverage level, minimize total driving miles
Setting up a classic two-stage assignment problem (maximum coverage, then minimum cost/distance to travel for tech.)
What I’ve Done
Prepared input data
A “Pairs” table listing every valid (Technician, Store) combination and its distance in miles.
A “Technician” table with maximum stores per tech.
A “Store” table with unique store IDs.
Optimization tool setup
Constraints modeled
The Issue
Looks like I can only “map” fields in the O input, not A or B. (This matches the documentation I've found for the tool, which says A and B rely on exact field names.)
I've tried both sense and dir as the column for constraint direction in B, with values like “<=”.
Every time I run, I get an error from the Optimization tool that the input tables are not recognized properly. The tool seems unable to parse the B (constraint metadata) or A (matrix) streams even though the field names match the documentation (i, j, v for A and constraint, dir, rhs for
.
Even after renaming everything exactly as the Help page specifies, the error persists. I'm stumped and my team as well!
Troubleshooting Completed
Re-checking anchor wiring (O → variables, A → coefficients, B → constraints).
Rebuilding the constraint metadata with clean dir values (<=, >=,
.
Using “dir” instead of “sense” per the documentation.
Confirmed all numeric fields are truly numeric.
Despite this, the Optimization tool continues to reject the inputs... giving the same error:

Question
Has anyone successfully configured the Optimization tool in SLAM matrix form for a mixed integer program?
Are there hidden formatting rules for the dir column (like case sensitivity, symbols v. words)?
Do the field names in A and B have to be exact (e.g., lowercase i, j, v), or are there mapping options I'm missing?
Are there any tricks for debugging when the tool won’t recognize the A or B input streams?