pub fn read_agent_commodity_portions(
model_dir: &Path,
agents: &AgentMap,
commodities: &CommodityMap,
region_ids: &IndexSet<RegionID>,
milestone_years: &[u32],
) -> Result<HashMap<AgentID, AgentCommodityPortionsMap>>Expand description
Read agent commodity portions info from the agent_commodity_portions.csv file.
§Arguments
model_dir- Folder containing model configuration filesagents- Known agents in the modelcommodities- Known commodities in the modelregion_ids- Known region identifiersmilestone_years- Milestone years used by the model
§Returns
A HashMap mapping AgentID to AgentCommodityPortionsMap.