Function read_agent_search_space

Source
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 files
  • agents - Map of agents
  • processes - Map of processes
  • commodity_ids - All possible valid commodity IDs
  • milestone_years - The milestone years of the simulation

§Returns

A map of Agents, with the agent ID as the key