I think it's randomized at game start.
Some things are set in stone, like all silk originates from Veluca, or Sarranid centers don't produce alcohol (or was it pork?)
But a lot of it is randomized.
If it wasn't, the system would be zero sum, allowing you to calculate objectively most profittable cities to hold, and enterprises that will always net most money.