pub fn read_agent_search_space(
model_dir: &Path,
agents: &AgentMap,
processes: &ProcessMap,
commodity_ids: &HashSet<CommodityID>,
milestone_years: &[u32],
) -> Result<HashMap<AgentID, AgentSearchSpaceMap>>
Expand description
Read agent search space info from the agent_search_space.csv file.
§Arguments
model_dir
- Folder containing model configuration filesagents
- Map of agentsprocesses
- Map of processescommodity_ids
- All possible valid commodity IDsmilestone_years
- The milestone years of the simulation
§Returns
A map of Agents, with the agent ID as the key